Skip to main content

create_session

Method
This is a method of the GatewayProtocol class in the protocols module.
Create a new session.

Signature

def create_session(agent_id: str, client_id: Optional[str], session_id: Optional[str]) -> GatewaySessionProtocol

Parameters

agent_id
str
required
The agent to handle this session
client_id
Optional
Optional client ID
session_id
Optional
Optional custom session ID

Returns

Returns
GatewaySessionProtocol
The created session