List Sessions • AI Agent SDK
list_sessions: List session IDs, optionally filtered by agent.
list_sessions
Method
</div>
This is a method of the GatewayProtocol class in the protocols module.
List session IDs, optionally filtered by agent.
Signature
def list_sessions(agent_id: Optional[str]) -> List[str]Parameters
ParamField
Optional[str]No description available.
Returns
ResponseField
List[str]The result of the operation.
Source
View on GitHubpraisonaiagents/gateway/protocols.py at line 1442