Create Session • Rust AI Agent SDK

create_session: Create a new session.

create_session

Method

</div>

This is a method of the GatewayProtocol class in the gateway module.

Create a new session.

Signature

python
def create_session(
        &mut self,
        agent_id: &str,
        client_id: Option<String>,
        session_id: Option<String>,
    ) -> Result<Box<dyn GatewaySessionProtocol>>

Parameters

ParamField &str

No description available.

ParamField Option&lt;String&gt;

No description available.

ParamField Option&lt;String&gt;

No description available.


Related Documentation