Get Stats • AI Agent SDK

get_stats: Get current context statistics.

get_stats

Method

</div>

This is a method of the ContextManager class in the manager module.

Get current context statistics.

Signature

python
def get_stats() -> Dict[str, Any]

Returns

ResponseField Dict[str, Any]

The result of the operation.

Uses

  • to_dict
  • get_utilization
  • get_warnings
  • get_stats

Used By

Source

View on GitHub

praisonaiagents/context/manager.py at line 804