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
def retrieve_session() -> Dict[str, Any]Returns
ResponseField
Dict[str, Any]Dict with session info (id, status, usage, etc.).
Source
View on GitHubpraisonaiagents/agent/protocols.py at line 433