Get Agent Manager • AI Agent SDK
get_agent_manager: Get or create context manager for an agent.
get_agent_manager
Method
</div>
This is a method of the MultiAgentContextManager class in the manager module.
Get or create context manager for an agent.
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#8B0000', 'primaryTextColor': '#fff', 'primaryBorderColor': '#710101', 'lineColor': '#189AB4', 'secondaryColor': '#189AB4', 'tertiaryColor': '#fff' }}}%%
graph LR
input["Input Data"] --> agent["Agent: get_agent_manager"]
agent --> output["Output Result"]
style agent fill:#8B0000,color:#fff
style input fill:#8B0000,color:#fff
style output fill:#8B0000,color:#fffSignature
def get_agent_manager(agent_id: str, model: str) -> ContextManagerParameters
ParamField
strNo description available.
ParamField
strNo description available.
Returns
ResponseField
ContextManagerThe result of the operation.
Uses
ContextManager
Source
View on GitHubpraisonaiagents/context/manager.py at line 968