> ## 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.

# Context Policy • AI Agent SDK

> ContextPolicy: Policy for context sharing during agent handoffs.

# ContextPolicy

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

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

Policy for context sharing during agent handoffs.

Controls how context is passed between agents in multi-agent scenarios.

## Properties

<ResponseField name="share" type="bool">
  No description available.
</ResponseField>

<ResponseField name="share_mode" type="ContextShareMode">
  No description available.
</ResponseField>

<ResponseField name="max_tokens" type="int">
  No description available.
</ResponseField>

<ResponseField name="tools_share" type="ToolShareMode">
  No description available.
</ResponseField>

<ResponseField name="preserve_system" type="bool">
  No description available.
</ResponseField>

<ResponseField name="preserve_recent_turns" type="int">
  No description available.
</ResponseField>

<Accordion title="Internal & Generic Methods">
  * **to\_dict**: Generic utility method.
</Accordion>

## Source

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

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Context Concept" icon="layer-group" href="/docs/concepts/context" />

  <Card title="Context Management" icon="sliders" href="/docs/features/context-management" />

  <Card title="Context Strategies" icon="diagram-project" href="/docs/features/context-strategies" />
</CardGroup>
