Context Manager • AI Agent SDK
context_manager: ContextManager instance for unified context management across all agents.
context_manager
Method
</div>
This is a method of the AgentTeam class in the agents module.
ContextManager instance for unified context management across all agents.
Lazy initialized on first access when context=True or context=ManagerConfig. Returns None when context=False (zero overhead).
For multi-agent scenarios, uses MultiAgentContextManager for per-agent isolation.
Signature
def context_manager() -> AnyReturns
ResponseField
AnyThe result of the operation.
Uses
MultiAgentContextManager
Source
View on GitHubpraisonaiagents/agents/agents.py at line 1443