diff options
Diffstat (limited to 'packages/sdk')
| -rw-r--r-- | packages/sdk/openapi.json | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/packages/sdk/openapi.json b/packages/sdk/openapi.json index ce2f2e7d1..5b79514ab 100644 --- a/packages/sdk/openapi.json +++ b/packages/sdk/openapi.json @@ -2420,6 +2420,9 @@ "type": "boolean" } }, + "format": { + "$ref": "#/components/schemas/OutputFormat" + }, "system": { "type": "string" }, @@ -2796,6 +2799,9 @@ "type": "boolean" } }, + "format": { + "$ref": "#/components/schemas/OutputFormat" + }, "system": { "type": "string" }, @@ -6073,6 +6079,52 @@ }, "required": ["type", "properties"] }, + "OutputFormatText": { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "text" + } + }, + "required": ["type"] + }, + "JSONSchema": { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + }, + "OutputFormatJsonSchema": { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "json_schema" + }, + "schema": { + "$ref": "#/components/schemas/JSONSchema" + }, + "retryCount": { + "default": 2, + "type": "integer", + "minimum": 0, + "maximum": 9007199254740991 + } + }, + "required": ["type", "schema"] + }, + "OutputFormat": { + "anyOf": [ + { + "$ref": "#/components/schemas/OutputFormatText" + }, + { + "$ref": "#/components/schemas/OutputFormatJsonSchema" + } + ] + }, "FileDiff": { "type": "object", "properties": { @@ -6120,6 +6172,9 @@ }, "required": ["created"] }, + "format": { + "$ref": "#/components/schemas/OutputFormat" + }, "summary": { "type": "object", "properties": { @@ -6245,6 +6300,28 @@ }, "required": ["name", "data"] }, + "StructuredOutputError": { + "type": "object", + "properties": { + "name": { + "type": "string", + "const": "StructuredOutputError" + }, + "data": { + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "retries": { + "type": "number" + } + }, + "required": ["message", "retries"] + } + }, + "required": ["name", "data"] + }, "ContextOverflowError": { "type": "object", "properties": { @@ -6353,6 +6430,9 @@ "$ref": "#/components/schemas/MessageAbortedError" }, { + "$ref": "#/components/schemas/StructuredOutputError" + }, + { "$ref": "#/components/schemas/ContextOverflowError" }, { @@ -6423,6 +6503,7 @@ }, "required": ["input", "output", "reasoning", "cache"] }, + "structured": {}, "variant": { "type": "string" }, @@ -8129,6 +8210,9 @@ "$ref": "#/components/schemas/MessageAbortedError" }, { + "$ref": "#/components/schemas/StructuredOutputError" + }, + { "$ref": "#/components/schemas/ContextOverflowError" }, { |
