fix(api): use camelCase in CallToolResponse and add type discriminators to ContentBlock (#7487)
Co-authored-by: Goose <opensource@block.xyz> Co-authored-by: Jack Amadeo <jackamadeo@block.xyz>
This commit is contained in:
+203
-9
@@ -3871,7 +3871,7 @@
|
||||
"type": "object",
|
||||
"required": [
|
||||
"content",
|
||||
"is_error"
|
||||
"isError"
|
||||
],
|
||||
"properties": {
|
||||
"_meta": {
|
||||
@@ -3880,13 +3880,13 @@
|
||||
"content": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/Content"
|
||||
"$ref": "#/components/schemas/ContentBlock"
|
||||
}
|
||||
},
|
||||
"is_error": {
|
||||
"isError": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"structured_content": {
|
||||
"structuredContent": {
|
||||
"nullable": true
|
||||
}
|
||||
}
|
||||
@@ -4030,6 +4030,20 @@
|
||||
"oneOf": [
|
||||
{
|
||||
"allOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"type"
|
||||
],
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"text"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/RawTextContent"
|
||||
}
|
||||
@@ -4037,6 +4051,20 @@
|
||||
},
|
||||
{
|
||||
"allOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"type"
|
||||
],
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"image"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/RawImageContent"
|
||||
}
|
||||
@@ -4044,6 +4072,20 @@
|
||||
},
|
||||
{
|
||||
"allOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"type"
|
||||
],
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"resource"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/RawEmbeddedResource"
|
||||
}
|
||||
@@ -4051,6 +4093,20 @@
|
||||
},
|
||||
{
|
||||
"allOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"type"
|
||||
],
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"audio"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/RawAudioContent"
|
||||
}
|
||||
@@ -4058,6 +4114,129 @@
|
||||
},
|
||||
{
|
||||
"allOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"type"
|
||||
],
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"resource_link"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/RawResource"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"ContentBlock": {
|
||||
"oneOf": [
|
||||
{
|
||||
"allOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"type"
|
||||
],
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"text"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/RawTextContent"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"allOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"type"
|
||||
],
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"image"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/RawImageContent"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"allOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"type"
|
||||
],
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"resource"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/RawEmbeddedResource"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"allOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"type"
|
||||
],
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"audio"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/RawAudioContent"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"allOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"type"
|
||||
],
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"resource_link"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/RawResource"
|
||||
}
|
||||
@@ -7029,10 +7208,16 @@
|
||||
"Role": {
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "string"
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"user"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "string"
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"assistant"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -7765,13 +7950,22 @@
|
||||
"TaskSupport": {
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "string"
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"forbidden"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "string"
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"optional"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "string"
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"required"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user