> ## 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**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/manager.md) module.

AI Agent

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

**config** `Optional[ManagerConfig]`

No description available.

**default\_policy** `Optional[ContextPolicy]`

No description available.

**session\_cache** `Optional[SessionDeduplicationCache]`

No description available.

## Methods

> [card] [get\_agent\_manager()](https://praison.ai/docs/sdk/reference/praisonaiagents/functions/MultiAgentContextManager-get_agent_manager.md)
>
> Get or create context manager for an agent.

> [card] [get\_session\_cache()](https://praison.ai/docs/sdk/reference/praisonaiagents/functions/MultiAgentContextManager-get_session_cache.md)
>
> Get the session deduplication cache.

> [card] [set\_agent\_policy()](https://praison.ai/docs/sdk/reference/praisonaiagents/functions/MultiAgentContextManager-set_agent_policy.md)
>
> Set context policy for an agent.

> [card] [get\_agent\_policy()](https://praison.ai/docs/sdk/reference/praisonaiagents/functions/MultiAgentContextManager-get_agent_policy.md)
>
> Get context policy for an agent.

> [card] [prepare\_handoff()](https://praison.ai/docs/sdk/reference/praisonaiagents/functions/MultiAgentContextManager-prepare_handoff.md)
>
> Prepare context for handoff between agents.

> [card] [get\_combined\_stats()](https://praison.ai/docs/sdk/reference/praisonaiagents/functions/MultiAgentContextManager-get_combined_stats.md)
>
> Get combined statistics across all agents.

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/context/manager.py#L926)
>
> `praisonaiagents/context/manager.py` at line 926

***

## Related Documentation

> [card] [Agents Concept](https://praison.ai/docs/docs/concepts/agents)

> [card] [Single Agent Guide](https://praison.ai/docs/docs/guides/single-agent)

> [card] [Multi-Agent Guide](https://praison.ai/docs/docs/guides/multi-agent)

> [card] [Agent Configuration](https://praison.ai/docs/docs/configuration/agent-config)

> [card] [Auto Agents](https://praison.ai/docs/docs/features/autoagents)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.