4ea865f017
- Implemented proactive cron job tools in InternalAgentSubStage for scheduling tasks. - Created SendMessageToUserTool for sending messages to users based on cron job triggers. - Added CreateActiveCronTool, DeleteCronJobTool, and ListCronJobsTool for cron job management. - Introduced CronRoute for handling cron job API requests in the dashboard. - Developed CronJobPage.vue for managing cron jobs in the dashboard UI. - Updated SubAgentPage.vue to include persona selection for subagents.
16 lines
414 B
Python
16 lines
414 B
Python
from dataclasses import dataclass
|
|
from typing import Any, Generic
|
|
|
|
from .hooks import BaseAgentRunHooks
|
|
from .run_context import TContext
|
|
from .tool import FunctionTool
|
|
|
|
|
|
@dataclass
|
|
class Agent(Generic[TContext]):
|
|
name: str
|
|
instructions: str | None = None
|
|
tools: list[str | FunctionTool] | None = None
|
|
run_hooks: BaseAgentRunHooks[TContext] | None = None
|
|
begin_dialogs: list[Any] | None = None
|