GatewaySessionProtocol
Defined in the protocols module.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.
add_message()
Add a message to the session history.
get_messages()
Get session message history.
close()
Close the session.

