mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 14:37:59 -05:00
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 <joaomdmoura@gmail.com>
This commit is contained in:
@@ -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})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user