mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-16 09:40:30 +08:00
* test(skills): align sandbox cache tests with readonly behavior * ci(release): enforce core quality gate before publish * ci: enforce locked dependency installs in workflows * security: remove curl-pipe-shell installs * chore: align project python baseline to 3.12 * ci(dashboard): add explicit typecheck gate * chore(pre-commit): align ruff hook version with project * ci(codeql): add javascript-typescript analysis * chore(ruff): defer py312 migration lint rules * fix: resolve ruff violations without new ignores * fix: resolve ASYNC230 and ASYNC240 without ignores * fix(auth): replace utcnow with timezone-aware UTC now * fix: avoid blocking file read in file_to_base64
15 lines
362 B
Python
15 lines
362 B
Python
from dataclasses import dataclass
|
|
from typing import Any
|
|
|
|
from .hooks import BaseAgentRunHooks
|
|
from .tool import FunctionTool
|
|
|
|
|
|
@dataclass
|
|
class Agent[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
|