> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Multi Agent Context Manager • AI Agent SDK

> MultiAgentContextManager: Context manager for multi-agent orchestration.

# MultiAgentContextManager

> Defined in the [**manager**](../modules/manager) module.

<Badge color="blue">AI Agent</Badge>

Context manager for multi-agent orchestration.

Provides per-agent isolation with controlled sharing policies.

```mermaid theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
%%{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:#fff
```

## Constructor

<ParamField query="config" type="Optional" required={false}>
  No description available.
</ParamField>

<ParamField query="default_policy" type="Optional" required={false}>
  No description available.
</ParamField>

<ParamField query="session_cache" type="Optional" required={false}>
  No description available.
</ParamField>

## Methods

<CardGroup cols={2}>
  <Card title="get_agent_manager()" icon="function" href="../functions/MultiAgentContextManager-get_agent_manager">
    Get or create context manager for an agent.
  </Card>

  <Card title="get_session_cache()" icon="function" href="../functions/MultiAgentContextManager-get_session_cache">
    Get the session deduplication cache.
  </Card>

  <Card title="set_agent_policy()" icon="function" href="../functions/MultiAgentContextManager-set_agent_policy">
    Set context policy for an agent.
  </Card>

  <Card title="get_agent_policy()" icon="function" href="../functions/MultiAgentContextManager-get_agent_policy">
    Get context policy for an agent.
  </Card>

  <Card title="prepare_handoff()" icon="function" href="../functions/MultiAgentContextManager-prepare_handoff">
    Prepare context for handoff between agents.
  </Card>

  <Card title="get_combined_stats()" icon="function" href="../functions/MultiAgentContextManager-get_combined_stats">
    Get combined statistics across all agents.
  </Card>
</CardGroup>

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/context/manager.py#L974">
  `praisonaiagents/context/manager.py` at line 974
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Agents Concept" icon="robot" href="/docs/concepts/agents" />

  <Card title="Single Agent Guide" icon="book-open" href="/docs/guides/single-agent" />

  <Card title="Multi-Agent Guide" icon="users" href="/docs/guides/multi-agent" />

  <Card title="Agent Configuration" icon="gear" href="/docs/configuration/agent-config" />

  <Card title="Auto Agents" icon="wand-magic-sparkles" href="/docs/features/autoagents" />
</CardGroup>
