Multi Agent Hooks Config • AI Agent SDK
MultiAgentHooksConfig: Configuration for multi-agent orchestration hooks/callbacks.
MultiAgentHooksConfig
Defined in the Feature Configs module.
AI Agent
Configuration for multi-agent orchestration hooks/callbacks.
Consolidates: completion_checker, on_task_start, on_task_complete
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#8B0000', 'primaryTextColor': '#fff', 'primaryBorderColor': '#710101', 'lineColor': '#189AB4', 'secondaryColor': '#189AB4', 'tertiaryColor': '#fff' }}}%%
graph LR
input["Input Data"] --> agent["Agent: MultiAgentHooksConfig"]
agent --> output["Output Result"]
style agent fill:#8B0000,color:#fff
style input fill:#8B0000,color:#fff
style output fill:#8B0000,color:#fffProperties
ResponseField
Optional[Callable]No description available.
ResponseField
Optional[Callable]No description available.
ResponseField
Optional[Callable]No description available.
Internal & Generic Methods
- to_dict: Convert to dictionary.
Usage
AgentManager(
agents=[...],
hooks=MultiAgentHooksConfig(
on_task_start=my_start_callback,
on_task_complete=my_complete_callback,
completion_checker=my_checker,
)
)Source
View on GitHubpraisonaiagents/config/feature_configs.py at line 1505