fixing handler
Some checks failed
Notify Downstream / notify-downstream (push) Has been cancelled

This commit is contained in:
João Moura
2025-05-20 08:39:16 -07:00
parent 1ef22131e6
commit 8d2928e49a

View File

@@ -151,21 +151,24 @@ class AgentReasoning:
self.logger.debug(f"Using function calling for {prompt_type} reasoning")
function_schema = {
"name": "create_reasoning_plan",
"description": "Create or refine a reasoning plan for a task",
"parameters": {
"type": "object",
"properties": {
"plan": {
"type": "string",
"description": "The detailed reasoning plan for the task."
"type": "function",
"function": {
"name": "create_reasoning_plan",
"description": "Create or refine a reasoning plan for a task",
"parameters": {
"type": "object",
"properties": {
"plan": {
"type": "string",
"description": "The detailed reasoning plan for the task."
},
"ready": {
"type": "boolean",
"description": "Whether the agent is ready to execute the task."
}
},
"ready": {
"type": "boolean",
"description": "Whether the agent is ready to execute the task."
}
},
"required": ["plan", "ready"]
"required": ["plan", "ready"]
}
}
}