Skip to content

Commit 9c1096d

Browse files
qizwizjoaomdmoura
andauthored
fix: Make 'ready' parameter optional in _create_reasoning_plan function (#3561)
* fix: Make 'ready' parameter optional in _create_reasoning_plan function This PR fixes Issue #3466 where the _create_reasoning_plan function was missing the 'ready' parameter when called by the LLM. The fix makes the 'ready' parameter optional with a default value of False, which allows the function to be called with only the 'plan' argument. Fixes #3466 * Change default value of 'ready' parameter to True --------- Co-authored-by: João Moura <[email protected]>
1 parent 4704445 commit 9c1096d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/crewai/utilities/reasoning_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ def __call_with_function(self, prompt: str, prompt_type: str) -> Tuple[str, bool
259259
)
260260

261261
# Prepare a simple callable that just returns the tool arguments as JSON
262-
def _create_reasoning_plan(plan: str, ready: bool): # noqa: N802
262+
def _create_reasoning_plan(plan: str, ready: bool = True): # noqa: N802
263263
"""Return the reasoning plan result in JSON string form."""
264264
return json.dumps({"plan": plan, "ready": ready})
265265

0 commit comments

Comments
 (0)