Files
codex/codex-rs/app-server-protocol/schema/json/DynamicToolCallResponse.json
Owen Lin 96558c7e38 update
2026-02-03 15:14:38 -08:00

112 lines
2.7 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"DynamicToolCallOutputContentItem": {
"oneOf": [
{
"properties": {
"text": {
"type": "string"
},
"type": {
"enum": [
"inputText"
],
"title": "InputTextDynamicToolCallOutputContentItemType",
"type": "string"
}
},
"required": [
"text",
"type"
],
"title": "InputTextDynamicToolCallOutputContentItem",
"type": "object"
},
{
"properties": {
"imageUrl": {
"type": "string"
},
"type": {
"enum": [
"inputImage"
],
"title": "InputImageDynamicToolCallOutputContentItemType",
"type": "string"
}
},
"required": [
"imageUrl",
"type"
],
"title": "InputImageDynamicToolCallOutputContentItem",
"type": "object"
}
]
},
"DynamicToolCallResult": {
"oneOf": [
{
"description": "Preferred structured tool output (for example text + images) that is forwarded directly to the model as content items.",
"properties": {
"contentItems": {
"items": {
"$ref": "#/definitions/DynamicToolCallOutputContentItem"
},
"type": "array"
},
"type": {
"enum": [
"contentItems"
],
"title": "ContentItemsDynamicToolCallResultType",
"type": "string"
}
},
"required": [
"contentItems",
"type"
],
"title": "ContentItemsDynamicToolCallResult",
"type": "object"
},
{
"description": "Plain-text tool output.",
"properties": {
"output": {
"type": "string"
},
"type": {
"enum": [
"output"
],
"title": "OutputDynamicToolCallResultType",
"type": "string"
}
},
"required": [
"output",
"type"
],
"title": "OutputDynamicToolCallResult",
"type": "object"
}
]
}
},
"properties": {
"result": {
"$ref": "#/definitions/DynamicToolCallResult"
},
"success": {
"type": "boolean"
}
},
"required": [
"result",
"success"
],
"title": "DynamicToolCallResponse",
"type": "object"
}