feat!: relax tool result structuredContent type (SEP-2106) (#933)
Re-applies #919 (reverted by #932): ToolResultContent.structured_content becomes Option<Value> so non-object structured content is accepted, matching CallToolResult and SEP-2106. BREAKING CHANGE: ToolResultContent.structured_content changes from Option<JsonObject> to Option<Value>.
This commit is contained in:
parent
f4ff56b81d
commit
ba00b15097
4 changed files with 40 additions and 30 deletions
|
|
@ -2397,13 +2397,7 @@
|
|||
"null"
|
||||
]
|
||||
},
|
||||
"structuredContent": {
|
||||
"type": [
|
||||
"object",
|
||||
"null"
|
||||
],
|
||||
"additionalProperties": true
|
||||
},
|
||||
"structuredContent": true,
|
||||
"toolUseId": {
|
||||
"type": "string"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2397,13 +2397,7 @@
|
|||
"null"
|
||||
]
|
||||
},
|
||||
"structuredContent": {
|
||||
"type": [
|
||||
"object",
|
||||
"null"
|
||||
],
|
||||
"additionalProperties": true
|
||||
},
|
||||
"structuredContent": true,
|
||||
"toolUseId": {
|
||||
"type": "string"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3562,13 +3562,7 @@
|
|||
"null"
|
||||
]
|
||||
},
|
||||
"structuredContent": {
|
||||
"type": [
|
||||
"object",
|
||||
"null"
|
||||
],
|
||||
"additionalProperties": true
|
||||
},
|
||||
"structuredContent": true,
|
||||
"toolUseId": {
|
||||
"type": "string"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3562,13 +3562,7 @@
|
|||
"null"
|
||||
]
|
||||
},
|
||||
"structuredContent": {
|
||||
"type": [
|
||||
"object",
|
||||
"null"
|
||||
],
|
||||
"additionalProperties": true
|
||||
},
|
||||
"structuredContent": true,
|
||||
"toolUseId": {
|
||||
"type": "string"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue