Session Arguments
Understanding the arguments received by bot entry points
When creating agents with Pipecat Cloud, your bot()
entry point function receives different types of arguments depending on the session type. These classes represent the structure of those arguments.
SessionArguments
Base class for all session argument types, providing common properties.
Properties
The unique identifier for the current session.
PipecatSessionArguments
Standard Pipecat Cloud agent session arguments, used for basic sessions.
Properties
The unique identifier for the current session.
The custom data passed to the agent via the session parameters.
DailySessionArguments
Arguments for sessions that involve Daily WebRTC rooms for voice/video interaction.
Properties
The unique identifier for the current session.
The URL for the Daily room.
The authentication token for the Daily room.
The custom data passed to the agent via the session parameters.
WebSocketSessionArguments
Arguments for sessions that use WebSocket connections for real-time communication.
Properties
The unique identifier for the current session.
The FastAPI WebSocket connection used to communicate with the client.