Multi Agent Context Manager • AI Agent SDK
MultiAgentContextManager: Context manager for multi-agent orchestration.
MultiAgentContextManager
Defined in the manager module.
AI Agent
Context manager for multi-agent orchestration.
Provides per-agent isolation with controlled sharing policies.
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#8B0000', 'primaryTextColor': '#fff', 'primaryBorderColor': '#710101', 'lineColor': '#189AB4', 'secondaryColor': '#189AB4', 'tertiaryColor': '#fff' }}}%%
graph LR
input["Input Data"] --> agent["Agent: MultiAgentContextManager"]
agent --> output["Output Result"]
style agent fill:#8B0000,color:#fff
style input fill:#8B0000,color:#fff
style output fill:#8B0000,color:#fffConstructor
ParamField
Optional[ManagerConfig]No description available.
ParamField
Optional[ContextPolicy]No description available.
ParamField
Optional[SessionDeduplicationCache]No description available.
Methods
get_agent_manager()
Get or create context manager for an agent.
get_session_cache()Get the session deduplication cache.
set_agent_policy()Set context policy for an agent.
get_agent_policy()Get context policy for an agent.
prepare_handoff()Prepare context for handoff between agents.
get_combined_stats()Get combined statistics across all agents.
Source
View on GitHubpraisonaiagents/context/manager.py at line 926