Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.
fix: Make 'ready' parameter optional in _create_reasoning_plan function (#3561)
Jonathan Hill9c1096dbdca1
diff --git a/src/crewai/utilities/reasoning_handler.py b/src/crewai/utilities/reasoning_handler.pyindex 1f9209814..f5c4636ae 100644--- a/src/crewai/utilities/reasoning_handler.py+++ b/src/crewai/utilities/reasoning_handler.py@@ -259,7 +259,7 @@ class AgentReasoning:)# Prepare a simple callable that just returns the tool arguments as JSON- def _create_reasoning_plan(plan: str, ready: bool): # noqa: N802+ def _create_reasoning_plan(plan: str, ready: bool = True): # noqa: N802"""Return the reasoning plan result in JSON string form."""return json.dumps({"plan": plan, "ready": ready})