Text Stream WebSocket
WebSocket endpoint for real-time text conversations with an agent, delivering typed frames for session lifecycle, messages, and tool calls.
Connection
Parameter
Type
Required
Description
Frame Format
{"type": "message", "role": "agent", "text": "Hello, how can I help?"}Frame Types
Lifecycle Frames
session_started
session_startedField
Type
Description
session_ended
session_endedField
Type
Description
error
errorField
Type
Description
ping
pingField
Type
Description
typing
typingField
Type
Description
response_complete
response_completeField
Type
Description
message
messageField
Type
Description
Tool Call Frames
tool_call_started
tool_call_startedField
Type
Description
tool_call_completed
tool_call_completedField
Type
Description
Forward Compatibility
Example Session
Last updated
Was this helpful?

