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

# Register Snapshot Callback • AI Agent SDK

> register_snapshot_callback: Register a callback for LLM boundary snapshots.

# register\_snapshot\_callback

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**ContextManager**](../classes/ContextManager) class in the [**manager**](../modules/manager) module.

Register a callback for LLM boundary snapshots.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def register_snapshot_callback(callback: Callable[[SnapshotHookData], None]) -> None
```

## Parameters

<ParamField query="callback" type="Callable" required={true}>
  No description available.
</ParamField>

## Source

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