core/app-server: preflight image modality mismatch with typed error

This commit is contained in:
Colin Young
2026-02-04 17:33:59 -08:00
parent 224c9f768d
commit 0e2d75254b
26 changed files with 1038 additions and 2 deletions

View File

@@ -65,6 +65,31 @@
"title": "ModelCapCodexErrorInfo",
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"unsupportedInputModality": {
"properties": {
"modality": {
"$ref": "#/definitions/InputModality"
},
"model": {
"type": "string"
}
},
"required": [
"modality",
"model"
],
"type": "object"
}
},
"required": [
"unsupportedInputModality"
],
"title": "UnsupportedInputModalityCodexErrorInfo",
"type": "object"
},
{
"additionalProperties": false,
"properties": {
@@ -368,6 +393,25 @@
},
"type": "object"
},
"InputModality": {
"description": "Canonical user-input modality tags advertised by a model.",
"oneOf": [
{
"description": "Plain text turns and tool payloads.",
"enum": [
"text"
],
"type": "string"
},
{
"description": "Image attachments included in user turns.",
"enum": [
"image"
],
"type": "string"
}
]
},
"McpToolCallError": {
"properties": {
"message": {