Expand description
Request and response data types for this context.
Structs§
- Agent
- An Agent in a Workspace
- Agent
Error - Present when a conversation run failed
- Agent
Tool Finished Payload - Payload of an
agent_tool_finishedSSE event - Agent
Tool Progress Payload - Payload of an
agent_tool_progressSSE event, emitted for each inner tool call the delegated Agent makes. - Agent
Tool Started Payload - Payload of an
agent_tool_startedSSE event. When the Agent delegates to another Agent as a tool, that inner run is reported with theagent_tool_*family — the shape mirrors the subagent events. - Agents
Response - Response for
crate::AgentContext::agents - Chat
Finished Payload - Payload of a
chat_finishedSSE event, observed once allmessageevents for this round have been sent, shortly beforeworkflow_finished - Chat
Started Payload - Payload of a
chat_startedSSE event - Chat
Title Updated Payload - Payload of a
chat_title_updatedSSE event — the server auto-generates a short title for the conversation as a UI convenience. Can arrive before or afterworkflow_finished; not tied to the run’s outcome. - Context
Compress Finished Payload - Payload of a
context_compress_finishedSSE event. Unlike other events, the timestamp here is an RFC 3339 string. - Context
Compress Started Payload - Payload of a
context_compress_startedSSE event, marking the start of a context-compression pass triggered by a long conversation. Unlike other events, the timestamp here is an RFC 3339 string. - Conversation
Response - Response for
crate::AgentContext::conversation,crate::AgentContext::continue_conversation, and the final result of the streamed counterparts - GetAgents
Options - Options for
crate::AgentContext::agents - Human
Interaction - A single interaction requested while an Agent workflow is paused.
- Interrupt
- Present when a conversation run is interrupted, waiting for
crate::AgentContext::continue_conversation - Message
Payload - Payload of a
messageSSE event — an incremental text chunk. This is the highest-frequency event; concatenatetextfragments in arrival order. - Node
Tool UseFinished Payload - Payload of a
node_tool_use_finishedSSE event — the tool call has ended. - Node
Tool UseOutputs outputsof aNodeToolUseFinishedPayload— only carries fields meant for display- Node
Tool UseStarted Payload - Payload of a
node_tool_use_startedSSE event — an ordinary tool call has started. Match it to itsNodeToolUseFinishedcounterpart bytool_use_id. - Plan
Changed Payload - Payload of a
plan_changedSSE event — the Agent created or updated its task plan. - Query
Masked Payload - Payload of a
query_maskedSSE event — sensitive content in the user query was masked before processing. Displaymasked_queryinstead of the original query. - Question
- One question the Agent needs you to answer
- Question
Option - One option of a
Question - Reference
- A source referenced by the answer
- Subagent
Finished Payload - Payload of a
subagent_finishedSSE event - Subagent
Outputs outputsof aSubagentFinishedPayload- Subagent
Progress Payload - Payload of a
subagent_progressSSE event, emitted every time the subagent calls one of its own tools. Use it to render a live timeline inside the subagent card. - Subagent
Started Payload - Payload of a
subagent_startedSSE event. When the Agent spawns a subagent to work on a sub-task, the subagent’s lifecycle is reported with this dedicated event family instead ofnode_tool_use_*. - Thinking
Finished Payload - Payload of a
thinking_finishedSSE event — the reasoning phase is over; answer text (Messagewithmessage_type == "answer") follows. - Thinking
Started Payload - Payload of a
thinking_startedSSE event — the Agent has entered the reasoning phase (analyzing the question, planning tool calls). Between this andConversationStreamEvent::ThinkingFinished,Messageevents withmessage_type == "think"and tool-call events may arrive. - Workflow
Finished Payload - Payload of a
workflow_finishedSSE event.statusis neverinterruptedhere — an interrupted run doesn’t emitworkflow_finishedat all; seeConversationStreamEvent::HumanInteractionRequired. - Workflow
Outputs outputsof aworkflow_finishedSSE event- Workflow
Started Inputs inputsof aworkflow_startedSSE event- Workflow
Started Payload - Payload of a
workflow_startedSSE event, observed right afterchat_started - Workspace
- A Workspace the current account belongs to
- Workspaces
Response - Response for
crate::AgentContext::workspaces
Enums§
- Conversation
Status - Final run status of a conversation
- Conversation
Stream Event - One event observed while streaming
crate::AgentContext::conversation_streamedorcrate::AgentContext::continue_conversation_streamed.
Type Aliases§
- Answers
ByTool Call - Answers keyed by
tool_call_id, each value being a map of question text to answer, used as the request body ofcrate::AgentContext::continue_conversationandcrate::AgentContext::continue_conversation_streamed.