Fix : Google AI schema validation by adding missing array items fields (#4569)

Signed-off-by: Abhijay007 <Abhijay007j@gmail.com>
This commit is contained in:
Abhijay Jain
2025-09-09 23:02:42 +05:30
committed by GitHub
parent 4eff96f188
commit 0a4c60998f
@@ -43,13 +43,25 @@ pub fn create_dynamic_task_tool() -> Tool {
// Optional - auto-generated if not provided
"title": {"type": "string"},
"description": {"type": "string"},
"extensions": {"type": "array"},
"extensions": {
"type": "array",
"items": {"type": "object"}
},
"settings": {"type": "object"},
"parameters": {"type": "array"},
"parameters": {
"type": "array",
"items": {"type": "object"}
},
"response": {"type": "object"},
"retry": {"type": "object"},
"context": {"type": "array"},
"activities": {"type": "array"},
"context": {
"type": "array",
"items": {"type": "string"}
},
"activities": {
"type": "array",
"items": {"type": "string"}
},
"return_last_only": {
"type": "boolean",
"description": "If true, return only the last message from the subagent (default: false, returns full conversation)"