mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-05-02 15:52:34 +00:00
This commit is contained in:
@@ -151,21 +151,24 @@ class AgentReasoning:
|
|||||||
self.logger.debug(f"Using function calling for {prompt_type} reasoning")
|
self.logger.debug(f"Using function calling for {prompt_type} reasoning")
|
||||||
|
|
||||||
function_schema = {
|
function_schema = {
|
||||||
"name": "create_reasoning_plan",
|
"type": "function",
|
||||||
"description": "Create or refine a reasoning plan for a task",
|
"function": {
|
||||||
"parameters": {
|
"name": "create_reasoning_plan",
|
||||||
"type": "object",
|
"description": "Create or refine a reasoning plan for a task",
|
||||||
"properties": {
|
"parameters": {
|
||||||
"plan": {
|
"type": "object",
|
||||||
"type": "string",
|
"properties": {
|
||||||
"description": "The detailed reasoning plan for the task."
|
"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": {
|
"required": ["plan", "ready"]
|
||||||
"type": "boolean",
|
}
|
||||||
"description": "Whether the agent is ready to execute the task."
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"required": ["plan", "ready"]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user