Sending a response
Stream text, status updates, prompts, attachments, and errors back to the platform
Every reply your agent sends is an AgentResponse carrying exactly one payload variant.
Node
Python
AgentResponse
AgentResponse payload variants
Streaming text content
Node
Python
ContentChunk
ContentChunk.type lifecycle
MessageOptions
ResponseAttachment (set exactly one variant)
Status updates
Node
Python
StatusUpdate
StatusUpdate.status values: THINKING, SEARCHING, GENERATING, PROCESSING, ANALYZING, CUSTOM.
Suggested prompts
Node
Python
SuggestedPrompts
Prompt
Errors
Node
Python
ErrorResponse
ErrorResponse.code values: RATE_LIMIT, CONTEXT_TOO_LONG, INVALID_REQUEST, AGENT_ERROR, TOOL_ERROR, PLATFORM_ERROR.
Thread metadata
Node
Python
ThreadMetadata
Transcript
Sent after STT to replace the “[audio]” placeholder on the platform.
Node
Python
Transcript
Next steps
- Trace context: correlate a response back to its trace
- Audio: the STT flow that produces a
Transcript - Worked examples: these pieces assembled into an agent