changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "$defs": {
+ "ActorID": {
+ "pattern": "^actr_[a-z2-7]{26}$",
+ "type": "string"
+ },
+ "AgentConfigID": {
+ "description": "Agent config ID (acfg_...).",
+ "pattern": "^acfg_[a-z2-7]{26}$",
+ "type": "string"
+ },
+ "AgentControlType": {
+ "enum": [
+ "cancel_current"
+ ],
+ "type": "string"
+ },
+ "AgentEvent": {
+ "discriminator": {
+ "mapping": {
+ "agent_input": "#/$defs/AgentInputEvent",
+ "context_checkpoint": "#/$defs/ContextCheckpointEvent",
+ "model_output": "#/$defs/ModelOutputEvent",
+ "tool_result": "#/$defs/ToolResultEvent"
+ },
+ "propertyName": "event_kind"
+ },
+ "oneOf": [
+ {
+ "$ref": "#/$defs/AgentInputEvent"
+ },
+ {
+ "$ref": "#/$defs/ModelOutputEvent"
+ },
+ {
+ "$ref": "#/$defs/ToolResultEvent"
+ },
+ {
+ "$ref": "#/$defs/ContextCheckpointEvent"
+ }
+ ]
+ },
+ "AgentEventID": {
+ "pattern": "^evt_[a-z2-7]{26}$",
+ "type": "string"
+ },
+ "AgentID": {
+ "pattern": "^agt_[a-z2-7]{26}$",
+ "type": "string"
+ },
+ "AgentInputContentBlock": {
+ "discriminator": {
+ "mapping": {
+ "media_ref": "#/$defs/MediaRefContentBlock",
+ "text": "#/$defs/TextContentBlock"
+ },
+ "propertyName": "type"
+ },
+ "oneOf": [
+ {
+ "$ref": "#/$defs/TextContentBlock"
+ },
+ {
+ "$ref": "#/$defs/MediaRefContentBlock"
+ }
+ ]
+ },
+ "AgentInputEvent": {
+ "properties": {
+ "actor_id": {
+ "$ref": "#/$defs/ActorID",
+ "description": "Actor attributed to the input. Resolve details through the project actors endpoints."
+ },
+ "agent_config_id": {
+ "$ref": "#/$defs/AgentConfigID",
+ "description": "Configuration selected by a config_change input."
+ },
+ "agent_id": {
+ "$ref": "#/$defs/AgentID"
+ },
+ "agent_input_id": {
+ "$ref": "#/$defs/AgentInputID",
+ "description": "Matches the input that produced this event, allowing clients to correlate an input submission with its durable timeline admission."
+ },
+ "agent_profile_id": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AgentProfileID"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The emitting agent's own profile, or null when it has none. This is not the parent agent's or webhook subscription's profile."
+ },
+ "content_blocks": {
+ "items": {
+ "$ref": "#/$defs/AgentInputContentBlock"
+ },
+ "type": "array"
+ },
+ "control_type": {
+ "$ref": "#/$defs/AgentControlType"
+ },
+ "created_at": {
+ "$ref": "#/$defs/Timestamp"
+ },
+ "event_kind": {
+ "enum": [
+ "agent_input"
+ ],
+ "type": "string"
+ },
+ "id": {
+ "$ref": "#/$defs/AgentEventID"
+ },
+ "input_idempotency_key": {
+ "description": "Echoes the Idempotency-Key of a content-input request so its sender can recognize the durable admission. Absent for other input kinds.",
+ "type": "string"
+ },
+ "input_kind": {
+ "$ref": "#/$defs/AgentInputKind"
+ },
+ "interaction_id": {
+ "$ref": "#/$defs/AgentInteractionID",
+ "description": "Interaction answered by an interaction_response input."
+ },
+ "is_opening_event": {
+ "type": "boolean"
+ },
+ "org_id": {
+ "$ref": "#/$defs/OrganizationID"
+ },
+ "parent_agent_id": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AgentID"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The emitting agent's immediate parent, or null for a top-level agent."
+ },
+ "project_id": {
+ "$ref": "#/$defs/ProjectID"
+ },
+ "root_agent_id": {
+ "$ref": "#/$defs/AgentID",
+ "description": "The top-level agent in the emitting agent's tree. Equals agent_id for a top-level agent."
+ },
+ "sequence": {
+ "$ref": "#/$defs/AgentSequence"
+ },
+ "turn_id": {
+ "$ref": "#/$defs/AgentTurnID"
+ },
+ "turn_sequence": {
+ "$ref": "#/$defs/AgentSequence"
+ }
+ },
+ "required": [
+ "id",
+ "org_id",
+ "project_id",
+ "agent_id",
+ "agent_profile_id",
+ "parent_agent_id",
+ "root_agent_id",
+ "turn_id",
+ "turn_sequence",
+ "is_opening_event",
+ "sequence",
+ "event_kind",
+ "agent_input_id",
+ "input_kind",
+ "content_blocks",
+ "created_at"
+ ],
+ "type": "object"
+ },
+ "AgentInputID": {
+ "pattern": "^ain_[a-z2-7]{26}$",
+ "type": "string"
+ },
+ "AgentInputKind": {
+ "enum": [
+ "content",
+ "control",
+ "interaction_response",
+ "config_change"
+ ],
+ "type": "string"
+ },
+ "AgentInteractionID": {
+ "pattern": "^int_[a-z2-7]{26}$",
+ "type": "string"
+ },
+ "AgentProfileID": {
+ "pattern": "^aprf_[a-z2-7]{26}$",
+ "type": "string"
+ },
+ "AgentSequence": {
+ "description": "Positive per-agent event, turn, or live-frame sequence.",
+ "maximum": 9007199254740991,
+ "minimum": 1,
+ "type": "integer"
+ },
+ "AgentTurnID": {
+ "pattern": "^trn_[a-z2-7]{26}$",
+ "type": "string"
+ },
+ "ArtifactID": {
+ "pattern": "^art_[a-z2-7]{26}$",
+ "type": "string"
+ },
+ "ContentBlockMetadata": {
+ "additionalProperties": {
+ "maxLength": 512,
+ "type": "string"
+ },
+ "description": "Arbitrary key-value labels. Keys beginning with `omnara_` are reserved for Omnara and may affect product behavior; use them only when intentionally invoking Omnara-defined behavior.",
+ "maxProperties": 16,
+ "propertyNames": {
+ "maxLength": 64,
+ "minLength": 1
+ },
+ "type": "object"
+ },
+ "ContextCheckpointEvent": {
+ "properties": {
+ "agent_id": {
+ "$ref": "#/$defs/AgentID"
+ },
+ "agent_profile_id": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AgentProfileID"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The emitting agent's own profile, or null when it has none. This is not the parent agent's or webhook subscription's profile."
+ },
+ "context_checkpoint_id": {
+ "$ref": "#/$defs/ContextCheckpointID"
+ },
+ "created_at": {
+ "$ref": "#/$defs/Timestamp"
+ },
+ "event_kind": {
+ "enum": [
+ "context_checkpoint"
+ ],
+ "type": "string"
+ },
+ "id": {
+ "$ref": "#/$defs/AgentEventID"
+ },
+ "is_opening_event": {
+ "enum": [
+ false
+ ],
+ "type": "boolean"
+ },
+ "org_id": {
+ "$ref": "#/$defs/OrganizationID"
+ },
+ "parent_agent_id": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AgentID"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The emitting agent's immediate parent, or null for a top-level agent."
+ },
+ "project_id": {
+ "$ref": "#/$defs/ProjectID"
+ },
+ "root_agent_id": {
+ "$ref": "#/$defs/AgentID",
+ "description": "The top-level agent in the emitting agent's tree. Equals agent_id for a top-level agent."
+ },
+ "sequence": {
+ "$ref": "#/$defs/AgentSequence"
+ },
+ "summarized_through_event_sequence": {
+ "$ref": "#/$defs/AgentSequence"
+ },
+ "summary": {
+ "type": "string"
+ },
+ "turn_id": {
+ "$ref": "#/$defs/AgentTurnID"
+ },
+ "turn_sequence": {
+ "$ref": "#/$defs/AgentSequence"
+ }
+ },
+ "required": [
+ "id",
+ "org_id",
+ "project_id",
+ "agent_id",
+ "agent_profile_id",
+ "parent_agent_id",
+ "root_agent_id",
+ "turn_id",
+ "turn_sequence",
+ "is_opening_event",
+ "sequence",
+ "event_kind",
+ "context_checkpoint_id",
+ "summarized_through_event_sequence",
+ "summary",
+ "created_at"
+ ],
+ "type": "object"
+ },
+ "ContextCheckpointID": {
+ "pattern": "^ccp_[a-z2-7]{26}$",
+ "type": "string"
+ },
+ "ErrorContentBlock": {
+ "properties": {
+ "metadata": {
+ "$ref": "#/$defs/ContentBlockMetadata"
+ },
+ "text": {
+ "type": "string"
+ },
+ "type": {
+ "enum": [
+ "error"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "text"
+ ],
+ "type": "object"
+ },
+ "JSONBlob": {
+ "description": "Public JSON payload whose shape is determined by the event or interaction kind."
+ },
+ "MediaRefContentBlock": {
+ "properties": {
+ "artifact_id": {
+ "$ref": "#/$defs/ArtifactID"
+ },
+ "exclude_from_model_context": {
+ "description": "Whether the referenced artifact is excluded from later model context.",
+ "type": "boolean"
+ },
+ "metadata": {
+ "$ref": "#/$defs/ContentBlockMetadata"
+ },
+ "type": {
+ "enum": [
+ "media_ref"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "artifact_id"
+ ],
+ "type": "object"
+ },
+ "ModelCallContextID": {
+ "pattern": "^mcc_[a-z2-7]{26}$",
+ "type": "string"
+ },
+ "ModelOutputContentBlock": {
+ "discriminator": {
+ "mapping": {
+ "error": "#/$defs/ErrorContentBlock",
+ "media_ref": "#/$defs/MediaRefContentBlock",
+ "reasoning": "#/$defs/ReasoningContentBlock",
+ "text": "#/$defs/TextContentBlock",
+ "tool_call": "#/$defs/ModelToolCallContentBlock"
+ },
+ "propertyName": "type"
+ },
+ "oneOf": [
+ {
+ "$ref": "#/$defs/TextContentBlock"
+ },
+ {
+ "$ref": "#/$defs/MediaRefContentBlock"
+ },
+ {
+ "$ref": "#/$defs/ReasoningContentBlock"
+ },
+ {
+ "$ref": "#/$defs/ModelToolCallContentBlock"
+ },
+ {
+ "$ref": "#/$defs/ErrorContentBlock"
+ }
+ ]
+ },
+ "ModelOutputEvent": {
+ "properties": {
+ "agent_id": {
+ "$ref": "#/$defs/AgentID"
+ },
+ "agent_profile_id": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AgentProfileID"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The emitting agent's own profile, or null when it has none. This is not the parent agent's or webhook subscription's profile."
+ },
+ "content_blocks": {
+ "items": {
+ "$ref": "#/$defs/ModelOutputContentBlock"
+ },
+ "type": "array"
+ },
+ "created_at": {
+ "$ref": "#/$defs/Timestamp"
+ },
+ "event_kind": {
+ "enum": [
+ "model_output"
+ ],
+ "type": "string"
+ },
+ "id": {
+ "$ref": "#/$defs/AgentEventID"
+ },
+ "is_opening_event": {
+ "enum": [
+ false
+ ],
+ "type": "boolean"
+ },
+ "model_call_context_id": {
+ "$ref": "#/$defs/ModelCallContextID"
+ },
+ "org_id": {
+ "$ref": "#/$defs/OrganizationID"
+ },
+ "parent_agent_id": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AgentID"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The emitting agent's immediate parent, or null for a top-level agent."
+ },
+ "project_id": {
+ "$ref": "#/$defs/ProjectID"
+ },
+ "provider_metadata": {
+ "description": "Facts the provider reported about this call, keyed by provider (for example `openrouter.provider` names the upstream that served an OpenRouter request). Present only when the provider reported something.",
+ "type": "object"
+ },
+ "root_agent_id": {
+ "$ref": "#/$defs/AgentID",
+ "description": "The top-level agent in the emitting agent's tree. Equals agent_id for a top-level agent."
+ },
+ "sequence": {
+ "$ref": "#/$defs/AgentSequence"
+ },
+ "stop_reason": {
+ "$ref": "#/$defs/ModelOutputStopReason"
+ },
+ "turn_id": {
+ "$ref": "#/$defs/AgentTurnID"
+ },
+ "turn_sequence": {
+ "$ref": "#/$defs/AgentSequence"
+ },
+ "usage": {
+ "$ref": "#/$defs/ModelUsage"
+ }
+ },
+ "required": [
+ "id",
+ "org_id",
+ "project_id",
+ "agent_id",
+ "agent_profile_id",
+ "parent_agent_id",
+ "root_agent_id",
+ "turn_id",
+ "turn_sequence",
+ "is_opening_event",
+ "sequence",
+ "event_kind",
+ "model_call_context_id",
+ "stop_reason",
+ "content_blocks",
+ "created_at"
+ ],
+ "type": "object"
+ },
+ "ModelOutputStopReason": {
+ "description": "Stop reasons admitted as durable model-output events.",
+ "enum": [
+ "end_turn",
+ "tool_use",
+ "max_tokens",
+ "refusal",
+ "content_filter",
+ "error"
+ ],
+ "type": "string"
+ },
+ "ModelToolCallContentBlock": {
+ "properties": {
+ "input": {
+ "$ref": "#/$defs/ToolInput"
+ },
+ "metadata": {
+ "$ref": "#/$defs/ContentBlockMetadata"
+ },
+ "name": {
+ "type": "string"
+ },
+ "tool_call_id": {
+ "$ref": "#/$defs/ToolCallID"
+ },
+ "tool_type": {
+ "$ref": "#/$defs/ToolCallType"
+ },
+ "type": {
+ "enum": [
+ "tool_call"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "tool_call_id",
+ "tool_type",
+ "name",
+ "input"
+ ],
+ "type": "object"
+ },
+ "ModelUsage": {
+ "description": "Token counts the provider reported for one model call. Cache and reasoning counts are omitted when the provider reported none.",
+ "properties": {
+ "cache_read_input_tokens": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "cache_write_input_tokens": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "input_tokens_total": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "output_tokens_total": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "reasoning_output_tokens": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "uncached_input_tokens": {
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "OrganizationID": {
+ "pattern": "^org_[a-z2-7]{26}$",
+ "type": "string"
+ },
+ "ProjectID": {
+ "description": "Project ID (proj_...).",
+ "pattern": "^proj_[a-z2-7]{26}$",
+ "type": "string"
+ },
+ "ReasoningContentBlock": {
+ "properties": {
+ "metadata": {
+ "$ref": "#/$defs/ContentBlockMetadata"
+ },
+ "text": {
+ "type": "string"
+ },
+ "type": {
+ "enum": [
+ "reasoning"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "text"
+ ],
+ "type": "object"
+ },
+ "StructuredDataContentBlock": {
+ "properties": {
+ "metadata": {
+ "$ref": "#/$defs/ContentBlockMetadata"
+ },
+ "type": {
+ "enum": [
+ "structured_data"
+ ],
+ "type": "string"
+ },
+ "value": {
+ "$ref": "#/$defs/JSONBlob"
+ }
+ },
+ "required": [
+ "type",
+ "value"
+ ],
+ "type": "object"
+ },
+ "TextContentBlock": {
+ "properties": {
+ "metadata": {
+ "$ref": "#/$defs/ContentBlockMetadata",
+ "description": "Key-value metadata. omnara_ keys are reserved."
+ },
+ "text": {
+ "description": "Block text: the message in agent inputs, or text from the model or a tool in events.",
+ "type": "string"
+ },
+ "type": {
+ "description": "text: a plain-text block.",
+ "enum": [
+ "text"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "text"
+ ],
+ "type": "object"
+ },
+ "Timestamp": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "ToolCallID": {
+ "pattern": "^tcl_[a-z2-7]{26}$",
+ "type": "string"
+ },
+ "ToolCallOutcome": {
+ "description": "Terminal outcome, present only when state is completed.",
+ "enum": [
+ "succeeded",
+ "failed",
+ "denied",
+ "canceled"
+ ],
+ "type": "string"
+ },
+ "ToolCallType": {
+ "description": "Identifies who manages execution. Built-in and MCP calls are platform-managed; custom calls wait for an external consumer to submit their result.",
+ "enum": [
+ "built_in",
+ "custom",
+ "mcp"
+ ],
+ "type": "string"
+ },
+ "ToolInput": {
+ "additionalProperties": true,
+ "description": "Non-null JSON object containing the arguments emitted for a tool call.",
+ "type": "object"
+ },
+ "ToolResultContentBlock": {
+ "discriminator": {
+ "mapping": {
+ "media_ref": "#/$defs/MediaRefContentBlock",
+ "structured_data": "#/$defs/StructuredDataContentBlock",
+ "text": "#/$defs/TextContentBlock"
+ },
+ "propertyName": "type"
+ },
+ "oneOf": [
+ {
+ "$ref": "#/$defs/TextContentBlock"
+ },
+ {
+ "$ref": "#/$defs/MediaRefContentBlock"
+ },
+ {
+ "$ref": "#/$defs/StructuredDataContentBlock"
+ }
+ ]
+ },
+ "ToolResultEvent": {
+ "properties": {
+ "agent_id": {
+ "$ref": "#/$defs/AgentID"
+ },
+ "agent_profile_id": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AgentProfileID"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The emitting agent's own profile, or null when it has none. This is not the parent agent's or webhook subscription's profile."
+ },
+ "content_blocks": {
+ "items": {
+ "$ref": "#/$defs/ToolResultContentBlock"
+ },
+ "type": "array"
+ },
+ "created_at": {
+ "$ref": "#/$defs/Timestamp"
+ },
+ "event_kind": {
+ "enum": [
+ "tool_result"
+ ],
+ "type": "string"
+ },
+ "id": {
+ "$ref": "#/$defs/AgentEventID"
+ },
+ "is_opening_event": {
+ "enum": [
+ false
+ ],
+ "type": "boolean"
+ },
+ "org_id": {
+ "$ref": "#/$defs/OrganizationID"
+ },
+ "outcome": {
+ "$ref": "#/$defs/ToolCallOutcome"
+ },
+ "parent_agent_id": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AgentID"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The emitting agent's immediate parent, or null for a top-level agent."
+ },
+ "project_id": {
+ "$ref": "#/$defs/ProjectID"
+ },
+ "root_agent_id": {
+ "$ref": "#/$defs/AgentID",
+ "description": "The top-level agent in the emitting agent's tree. Equals agent_id for a top-level agent."
+ },
+ "sequence": {
+ "$ref": "#/$defs/AgentSequence"
+ },
+ "tool_call_id": {
+ "$ref": "#/$defs/ToolCallID"
+ },
+ "turn_id": {
+ "$ref": "#/$defs/AgentTurnID"
+ },
+ "turn_sequence": {
+ "$ref": "#/$defs/AgentSequence"
+ }
+ },
+ "required": [
+ "id",
+ "org_id",
+ "project_id",
+ "agent_id",
+ "agent_profile_id",
+ "parent_agent_id",
+ "root_agent_id",
+ "turn_id",
+ "turn_sequence",
+ "is_opening_event",
+ "sequence",
+ "event_kind",
+ "tool_call_id",
+ "outcome",
+ "content_blocks",
+ "created_at"
+ ],
+ "type": "object"
+ }
+ },
+ "properties": {
+ "actor_id": {
+ "$ref": "#/$defs/ActorID",
+ "description": "Actor the cancelation was attributed to. Absent when the request had no actor attribution."
+ },
+ "affected": {
+ "description": "Whether this request changed any cancelable work.",
+ "type": "boolean"
+ },
+ "event": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AgentEvent"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "runtime_cancel_requested": {
+ "description": "Whether this request created or observed a durable runtime cancel request. Immediate delivery is best effort; runtime-lock renewal observes the durable request.",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "event",
+ "runtime_cancel_requested",
+ "affected"
+ ],
+ "type": "object"
+}