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.
Arguments for sessions that use WebSocket connections for real-time communication.
Copy
Ask AI
from pipecatcloud.agent import WebSocketSessionArgumentsasync def bot(args: WebSocketSessionArguments): print(f"Session ID: {args.session_id}") await args.websocket.send_text("Hello from the agent!")