{ "$schema": "http://json-schema.org/draft-07/schema#", "definitions": { "AbsolutePathBuf": { "type": "string" }, "AgentMessageInputContent": { "oneOf": [ { "properties": { "text": { "type": "string" }, "type": { "enum": [ "input_text" ], "type": "string" } }, "required": [ "text", "type" ], "type": "object" }, { "properties": { "encrypted_content": { "type": "string" }, "type": { "enum": [ "encrypted_content" ], "type": "string" } }, "required": [ "encrypted_content", "type" ], "type": "object" } ] }, "ApprovalsReviewer": { "enum": [ "user", "auto_review", "guardian_subagent" ], "type": "string" }, "AskForApproval": { "oneOf": [ { "enum": [ "untrusted", "on-request", "never" ], "type": "string" }, { "additionalProperties": false, "properties": { "granular": { "properties": { "mcp_elicitations": { "type": "boolean" }, "request_permissions": { "default": false, "type": "boolean" }, "rules": { "type": "boolean" }, "sandbox_approval": { "type": "boolean" }, "skill_approval": { "default": false, "type": "boolean" } }, "required": [ "mcp_elicitations", "rules", "sandbox_approval" ], "type": "object" } }, "required": [ "granular" ], "type": "object" } ] }, "ConfigurationReasoning": { "properties": { "effort": { "$ref": "#/definitions/ReasoningEffort" } }, "required": [ "effort" ], "type": "object" }, "ContentItem": { "oneOf": [ { "properties": { "text": { "type": "string" }, "type": { "enum": [ "input_text" ], "type": "string" } }, "required": [ "text", "type" ], "type": "object" }, { "anyOf": [ { "properties": { "image_url": { "type": "string" } }, "required": [ "image_url" ], "type": "object" }, { "properties": { "file_id": { "type": "string" } }, "required": [ "file_id" ], "type": "object" } ], "properties": { "detail": { "anyOf": [ { "$ref": "#/definitions/ImageDetail" }, { "type": "null" } ] }, "type": { "enum": [ "input_image" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, { "properties": { "audio_url": { "type": "string" }, "type": { "enum": [ "input_audio" ], "type": "string" } }, "required": [ "audio_url", "type" ], "type": "object" }, { "properties": { "annotations": { "items": true, "type": [ "array", "null" ] }, "logprobs": { "items": true, "type": [ "array", "null" ] }, "text": { "type": "string" }, "type": { "enum": [ "output_text" ], "type": "string" } }, "required": [ "text", "type" ], "type": "object" } ] }, "FunctionCallOutputBody": { "anyOf": [ { "type": "string" }, { "items": { "$ref": "#/definitions/FunctionCallOutputContentItem" }, "type": "array" } ] }, "FunctionCallOutputContentItem": { "oneOf": [ { "properties": { "text": { "type": "string" }, "type": { "enum": [ "input_text" ], "type": "string" } }, "required": [ "text", "type" ], "type": "object" }, { "anyOf": [ { "properties": { "image_url": { "type": "string" } }, "required": [ "image_url" ], "type": "object" }, { "properties": { "file_id": { "type": "string" } }, "required": [ "file_id" ], "type": "object" } ], "properties": { "detail": { "anyOf": [ { "$ref": "#/definitions/ImageDetail" }, { "type": "null" } ] }, "type": { "enum": [ "input_image" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, { "properties": { "audio_url": { "type": "string" }, "type": { "enum": [ "input_audio" ], "type": "string" } }, "required": [ "audio_url", "type" ], "type": "object" }, { "properties": { "encrypted_content": { "type": "string" }, "type": { "enum": [ "encrypted_content" ], "type": "string" } }, "required": [ "encrypted_content", "type" ], "type": "object" } ] }, "ImageDetail": { "enum": [ "auto", "low", "high", "original" ], "type": "string" }, "InternalChatMessageMetadataPassthrough": { "properties": { "turn_id": { "type": [ "string", "null" ] } }, "type": "object" }, "LocalShellAction": { "oneOf": [ { "properties": { "command": { "items": { "type": "string" }, "type": "array" }, "env": { "additionalProperties": { "type": "string" }, "type": [ "object", "null" ] }, "timeout_ms": { "format": "uint64", "minimum": 0.0, "type": [ "integer", "null" ] }, "type": { "enum": [ "exec" ], "type": "string" }, "user": { "type": [ "string", "null" ] }, "working_directory": { "type": [ "string", "null" ] } }, "required": [ "command", "type" ], "type": "object" } ] }, "LocalShellStatus": { "enum": [ "completed", "in_progress", "incomplete" ], "type": "string" }, "MessagePhase": { "oneOf": [ { "enum": [ "commentary" ], "type": "string" }, { "enum": [ "partial_answer" ], "type": "string" }, { "enum": [ "final_answer" ], "type": "string" } ] }, "Personality": { "enum": [ "none", "friendly", "pragmatic" ], "type": "string" }, "ReasoningEffort": { "minLength": 1, "type": "string" }, "ReasoningItemContent": { "oneOf": [ { "properties": { "text": { "type": "string" }, "type": { "enum": [ "reasoning_text" ], "type": "string" } }, "required": [ "text", "type" ], "type": "object" }, { "properties": { "text": { "type": "string" }, "type": { "enum": [ "text" ], "type": "string" } }, "required": [ "text", "type" ], "type": "object" } ] }, "ReasoningItemReasoningSummary": { "oneOf": [ { "properties": { "text": { "type": "string" }, "type": { "enum": [ "summary_text" ], "type": "string" } }, "required": [ "text", "type" ], "type": "object" } ] }, "ResponseItem": { "oneOf": [ { "properties": { "id": { "type": [ "string", "null" ] }, "role": { "type": "string" }, "tools": { "items": true, "type": "array" }, "type": { "enum": [ "additional_tools" ], "type": "string" } }, "required": [ "role", "tools", "type" ], "type": "object" }, { "properties": { "content": { "items": { "$ref": "#/definitions/ContentItem" }, "type": "array" }, "encrypted_content": { "type": [ "string", "null" ] }, "id": { "type": [ "string", "null" ] }, "internal_chat_message_metadata_passthrough": { "anyOf": [ { "$ref": "#/definitions/InternalChatMessageMetadataPassthrough" }, { "type": "null" } ] }, "phase": { "anyOf": [ { "$ref": "#/definitions/MessagePhase" }, { "type": "null" } ] }, "role": { "type": "string" }, "status": { "type": [ "string", "null" ] }, "type": { "enum": [ "message" ], "type": "string" } }, "required": [ "content", "role", "type" ], "type": "object" }, { "properties": { "author": { "type": "string" }, "content": { "items": { "$ref": "#/definitions/AgentMessageInputContent" }, "type": "array" }, "id": { "type": [ "string", "null" ] }, "internal_chat_message_metadata_passthrough": { "anyOf": [ { "$ref": "#/definitions/InternalChatMessageMetadataPassthrough" }, { "type": "null" } ] }, "recipient": { "type": "string" }, "type": { "enum": [ "agent_message" ], "type": "string" } }, "required": [ "author", "content", "recipient", "type" ], "type": "object" }, { "properties": { "content": { "default": null, "items": { "$ref": "#/definitions/ReasoningItemContent" }, "type": [ "array", "null" ] }, "encrypted_content": { "type": [ "string", "null" ] }, "id": { "type": [ "string", "null" ] }, "internal_chat_message_metadata_passthrough": { "anyOf": [ { "$ref": "#/definitions/InternalChatMessageMetadataPassthrough" }, { "type": "null" } ] }, "summary": { "items": { "$ref": "#/definitions/ReasoningItemReasoningSummary" }, "type": "array" }, "type": { "enum": [ "reasoning" ], "type": "string" } }, "required": [ "summary", "type" ], "type": "object" }, { "properties": { "action": { "$ref": "#/definitions/LocalShellAction" }, "call_id": { "type": [ "string", "null" ] }, "encrypted_content": { "type": [ "string", "null" ] }, "id": { "type": [ "string", "null" ] }, "internal_chat_message_metadata_passthrough": { "anyOf": [ { "$ref": "#/definitions/InternalChatMessageMetadataPassthrough" }, { "type": "null" } ] }, "status": { "$ref": "#/definitions/LocalShellStatus" }, "type": { "enum": [ "local_shell_call" ], "type": "string" } }, "required": [ "action", "status", "type" ], "type": "object" }, { "properties": { "arguments": { "type": "string" }, "call_id": { "type": "string" }, "encrypted_content": { "type": [ "string", "null" ] }, "encrypted_function_args": { "items": { "type": "string" }, "type": [ "array", "null" ] }, "id": { "type": [ "string", "null" ] }, "internal_chat_message_metadata_passthrough": { "anyOf": [ { "$ref": "#/definitions/InternalChatMessageMetadataPassthrough" }, { "type": "null" } ] }, "name": { "type": "string" }, "namespace": { "type": [ "string", "null" ] }, "status": { "type": [ "string", "null" ] }, "type": { "enum": [ "function_call" ], "type": "string" } }, "required": [ "arguments", "call_id", "name", "type" ], "type": "object" }, { "properties": { "arguments": true, "call_id": { "type": [ "string", "null" ] }, "encrypted_content": { "type": [ "string", "null" ] }, "execution": { "type": "string" }, "id": { "type": [ "string", "null" ] }, "internal_chat_message_metadata_passthrough": { "anyOf": [ { "$ref": "#/definitions/InternalChatMessageMetadataPassthrough" }, { "type": "null" } ] }, "status": { "type": [ "string", "null" ] }, "type": { "enum": [ "tool_search_call" ], "type": "string" } }, "required": [ "arguments", "execution", "type" ], "type": "object" }, { "properties": { "call_id": { "type": [ "string", "null" ] }, "id": { "type": [ "string", "null" ] }, "internal_chat_message_metadata_passthrough": { "anyOf": [ { "$ref": "#/definitions/InternalChatMessageMetadataPassthrough" }, { "type": "null" } ] }, "name": { "type": [ "string", "null" ] }, "namespace": { "type": [ "string", "null" ] }, "output": { "$ref": "#/definitions/FunctionCallOutputBody" }, "type": { "enum": [ "function_call_output" ], "type": "string" } }, "required": [ "output", "type" ], "type": "object" }, { "properties": { "call_id": { "type": "string" }, "encrypted_content": { "type": [ "string", "null" ] }, "id": { "type": [ "string", "null" ] }, "input": { "type": "string" }, "internal_chat_message_metadata_passthrough": { "anyOf": [ { "$ref": "#/definitions/InternalChatMessageMetadataPassthrough" }, { "type": "null" } ] }, "name": { "type": "string" }, "namespace": { "type": [ "string", "null" ] }, "status": { "type": [ "string", "null" ] }, "type": { "enum": [ "custom_tool_call" ], "type": "string" } }, "required": [ "call_id", "input", "name", "type" ], "type": "object" }, { "properties": { "call_id": { "type": "string" }, "id": { "type": [ "string", "null" ] }, "internal_chat_message_metadata_passthrough": { "anyOf": [ { "$ref": "#/definitions/InternalChatMessageMetadataPassthrough" }, { "type": "null" } ] }, "name": { "type": [ "string", "null" ] }, "output": { "$ref": "#/definitions/FunctionCallOutputBody" }, "type": { "enum": [ "custom_tool_call_output" ], "type": "string" } }, "required": [ "call_id", "output", "type" ], "type": "object" }, { "properties": { "call_id": { "type": [ "string", "null" ] }, "execution": { "type": "string" }, "id": { "type": [ "string", "null" ] }, "internal_chat_message_metadata_passthrough": { "anyOf": [ { "$ref": "#/definitions/InternalChatMessageMetadataPassthrough" }, { "type": "null" } ] }, "status": { "type": "string" }, "tools": { "items": true, "type": "array" }, "type": { "enum": [ "tool_search_output" ], "type": "string" } }, "required": [ "execution", "status", "tools", "type" ], "type": "object" }, { "properties": { "action": { "anyOf": [ { "$ref": "#/definitions/ResponsesApiWebSearchAction" }, { "type": "null" } ] }, "encrypted_content": { "type": [ "string", "null" ] }, "id": { "type": [ "string", "null" ] }, "internal_chat_message_metadata_passthrough": { "anyOf": [ { "$ref": "#/definitions/InternalChatMessageMetadataPassthrough" }, { "type": "null" } ] }, "status": { "type": [ "string", "null" ] }, "type": { "enum": [ "web_search_call" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, { "properties": { "encrypted_content": { "type": [ "string", "null" ] }, "id": { "type": [ "string", "null" ] }, "internal_chat_message_metadata_passthrough": { "anyOf": [ { "$ref": "#/definitions/InternalChatMessageMetadataPassthrough" }, { "type": "null" } ] }, "result": { "type": "string" }, "revised_prompt": { "type": [ "string", "null" ] }, "status": { "type": "string" }, "type": { "enum": [ "image_generation_call" ], "type": "string" } }, "required": [ "result", "status", "type" ], "type": "object" }, { "properties": { "encrypted_content": { "type": "string" }, "id": { "type": [ "string", "null" ] }, "internal_chat_message_metadata_passthrough": { "anyOf": [ { "$ref": "#/definitions/InternalChatMessageMetadataPassthrough" }, { "type": "null" } ] }, "type": { "enum": [ "compaction" ], "type": "string" } }, "required": [ "encrypted_content", "type" ], "type": "object" }, { "properties": { "reasoning": { "$ref": "#/definitions/ConfigurationReasoning" }, "type": { "enum": [ "configuration_update" ], "type": "string" } }, "required": [ "reasoning", "type" ], "type": "object" }, { "properties": { "type": { "enum": [ "compaction_trigger" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, { "properties": { "encrypted_content": { "type": [ "string", "null" ] }, "id": { "type": [ "string", "null" ] }, "internal_chat_message_metadata_passthrough": { "anyOf": [ { "$ref": "#/definitions/InternalChatMessageMetadataPassthrough" }, { "type": "null" } ] }, "type": { "enum": [ "context_compaction" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, { "properties": { "type": { "enum": [ "other" ], "type": "string" } }, "required": [ "type" ], "type": "object" } ] }, "ResponsesApiWebSearchAction": { "oneOf": [ { "properties": { "queries": { "items": { "type": "string" }, "type": [ "array", "null" ] }, "query": { "type": [ "string", "null" ] }, "type": { "enum": [ "search" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, { "properties": { "type": { "enum": [ "open_page" ], "type": "string" }, "url": { "type": [ "string", "null" ] } }, "required": [ "type" ], "type": "object" }, { "properties": { "pattern": { "type": [ "string", "null" ] }, "type": { "enum": [ "find_in_page" ], "type": "string" }, "url": { "type": [ "string", "null" ] } }, "required": [ "type" ], "type": "object" }, { "properties": { "type": { "enum": [ "other" ], "type": "string" } }, "required": [ "type" ], "type": "object" } ] }, "SandboxMode": { "enum": [ "read-only", "workspace-write", "danger-full-access" ], "type": "string" }, "SortDirection": { "enum": [ "asc", "desc" ], "type": "string" }, "ThreadResumeInitialTurnsPageParams": { "properties": { "itemsView": { "anyOf": [ { "$ref": "#/definitions/TurnItemsView" }, { "type": "null" } ] }, "limit": { "format": "uint32", "minimum": 0.0, "type": [ "integer", "null" ] }, "sortDirection": { "anyOf": [ { "$ref": "#/definitions/SortDirection" }, { "type": "null" } ] } }, "type": "object" }, "TurnItemsView": { "oneOf": [ { "enum": [ "notLoaded" ], "type": "string" }, { "enum": [ "summary" ], "type": "string" }, { "enum": [ "full" ], "type": "string" } ] } }, "properties": { "approvalPolicy": { "anyOf": [ { "$ref": "#/definitions/AskForApproval" }, { "type": "null" } ] }, "approvalsReviewer": { "anyOf": [ { "$ref": "#/definitions/ApprovalsReviewer" }, { "type": "null" } ] }, "baseInstructions": { "type": [ "string", "null" ] }, "config": { "additionalProperties": true, "type": [ "object", "null" ] }, "cwd": { "type": [ "string", "null" ] }, "developerInstructions": { "type": [ "string", "null" ] }, "excludeTurns": { "type": "boolean" }, "history": { "items": { "$ref": "#/definitions/ResponseItem" }, "type": [ "array", "null" ] }, "initialTurnsPage": { "anyOf": [ { "$ref": "#/definitions/ThreadResumeInitialTurnsPageParams" }, { "type": "null" } ] }, "model": { "type": [ "string", "null" ] }, "modelProvider": { "type": [ "string", "null" ] }, "path": { "default": null, "type": [ "string", "null" ] }, "permissions": { "type": [ "string", "null" ] }, "personality": { "anyOf": [ { "$ref": "#/definitions/Personality" }, { "type": "null" } ] }, "runtimeWorkspaceRoots": { "items": { "$ref": "#/definitions/AbsolutePathBuf" }, "type": [ "array", "null" ] }, "sandbox": { "anyOf": [ { "$ref": "#/definitions/SandboxMode" }, { "type": "null" } ] }, "serviceTier": { "type": [ "string", "null" ] }, "threadId": { "type": "string" } }, "required": [ "threadId" ], "type": "object" }