Data operations are detailed, real-time events that provide visibility into what agents are doing during execution. They include agent reasoning, tool executions, transfers, delegations, and artifact creation. By default, these operations are hidden from end users to keep the interface clean, but they can be enabled for debugging and monitoring purposes.
The x-emit-operations header controls whether data operations are included in the response stream. When set to true, the system will emit detailed operational events alongside the regular response content.
In the CLI, you can toggle data operations using the operations command:
# Start a chat sessioninkeep chat# Toggle data operations on/off> operations🔧 Emit operations: ONData operations will be shown during responses.> operations🔧 Emit operations: OFFData operations are hidden.
The response is text only — no structured data components were emitted.
object_generation
The response is a structured object only — the agent emitted a data component that matches a dataComponents schema, with no accompanying prose.
mixed_generation
The response contains both text and one or more structured data components. Emitted when an agent configured with dataComponents also produces prose (for example, a reasoning prelude before a structured result, or narration alongside a data component).
data.parts[].type values:
Value
Payload fields
Notes
text
content
Prose emitted by the agent.
data_component
data
A structured data component matching one of the agent's dataComponents schemas.
data_artifact
data
A structured artifact (has both artifactId and toolCallId on data).
tool_call
toolName, args
Internal tool invocation (rare in agent_generate; more common in agent_reasoning).
tool_result
toolName, result
Internal tool result (rare in agent_generate; more common in agent_reasoning).
When generationType is mixed_generation, data.parts is ordered by emission: a text part may precede a data component, appear between components, or follow them. Consumers that render agent responses should iterate parts in order and render each entry according to its type.
The blob:// URI is an internal storage reference. When retrieved via the API or conversation history, these are automatically resolved to accessible media proxy URLs. See Images in Memory.
summaryData — contains the artifact's preview fields (those marked inPreview: true in the schema). These are available immediately in the agent's context and streamed to clients.
fullData — contains all remaining non-preview fields. This data is persisted in storage and retrievable on demand.
See Artifact Components for how to define preview and non-preview fields in your artifact schemas.
data: {"type":"agent_initializing","details":{"sessionId":"session_abc123","agentId":"graph_xyz789"}}data: {"type":"data-operation","data":{"type":"agent_reasoning","label":"Agent coordinator-agent reasoning through request","details":{"timestamp":1726247200000,"agentId":"coordinator-agent","data":{"parts":[{"type":"text","content":"I need to create a sales report for Q4. This will require gathering data and generating a chart."}]}}}}data: {"type":"data-operation","data":{"type":"tool_call","label":"Tool call: get_sales_data","details":{"timestamp":1726247200000,"agentId":"coordinator-agent","data":{"toolName":"get_sales_data","args":{"quarter":"Q4","year":"2023"},"toolCallId":"call_abc123","toolId":"tool_xyz789"}}}}data: {"type":"data-operation","data":{"type":"tool_result","label":"Tool result: get_sales_data","details":{"timestamp":1726247200000,"agentId":"coordinator-agent","data":{"toolName":"get_sales_data","result":{"sales":[...]},"toolCallId":"call_abc123","toolId":"tool_xyz789","duration":850}}}}data: {"type":"data-artifact","data":{ ... }}data: {"type":"data-operation","data":{"type":"artifact_saved","label":"Artifact saved: chart","details":{"timestamp":1726247200000,"agentId":"coordinator-agent","data":{"artifactId":"art_123456","artifactType":"chart","summaryData":{"title":"Q4 Sales Report"}}}}}data: {"type":"text-start","id":"1726247200-abc123"}data: {"type":"text-delta","id":"1726247200-abc123","delta":"I've created a comprehensive Q4 sales report..."}data: {"type":"text-end","id":"1726247200-abc123"}data: {"type":"completion","details":{"agent":"coordinator-agent","iteration":1}}
This provides complete visibility into the agent's execution process, from initialization through reasoning, tool execution, artifact creation, and final response generation.