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

# Get Stats • AI Agent SDK

> get_stats: Get current context statistics.

# get\_stats

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

Get current context statistics.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def get_stats() -> Dict[str, Any]
```

### Returns

<ResponseField name="Returns" type="Dict[str, Any]">
  The result of the operation.
</ResponseField>

## Uses

* `to_dict`
* `get_utilization`
* `get_warnings`
* `get_stats`

## Used By

* [`ContextManager.get_stats`](../functions/ContextManager-get_stats)
* [`MultiAgentContextManager.get_combined_stats`](../functions/MultiAgentContextManager-get_combined_stats)
* [`MultiAgentContextManager.get_combined_stats`](../functions/MultiAgentContextManager-get_combined_stats)

## Source

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