Retrieve Session • AI Agent SDK

retrieve_session: Retrieve the current managed session's metadata and usage.

retrieve_session

Method

</div>

This is a method of the ManagedBackendProtocol class in the protocols module.

Retrieve the current managed session’s metadata and usage.

Signature

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

Returns

ResponseField Dict[str, Any]

Dict with session info (id, status, usage, etc.).

Source

View on GitHub

praisonaiagents/agent/protocols.py at line 433


Related Documentation