List Sessions • Rust 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 gateway module.

List session IDs, optionally filtered by agent.

Signature

python
def list_sessions(&self, agent_id: Option<&str>) -> Vec<String>

Parameters

ParamField Option&lt;&str&gt;

No description available.

Returns

Rust Sessions Rust Memory