Skip to main content

GatewaySessionProtocol

Defined in the gateway module.
Rust AI Agent SDK Protocol for gateway session management. Sessions track conversations between clients and agents, maintaining state and message history.

Methods

session_id

Unique session identifier.

agent_id

ID of the agent handling this session.

client_id

ID of the client in this session.

is_active

Whether the session is currently active.

created_at

Session creation timestamp.

last_activity

Last activity timestamp.

get_state

Get session state.

set_state

Set a session state value. Parameters:

add_message

Add a message to the session history. Parameters:

get_messages

Get session message history. Parameters:

close

Close the session.

Source

View on GitHub

praisonai/src/gateway/mod.rs at line 0

Rust Sessions

Rust Memory

Rust Gateway