Merge branch 'lorenze/feat/planning-pt-1' of github.com:crewAIInc/crewAI into lorenze/feat-planning-pt-2-todo-list-gen

This commit is contained in:
lorenzejay
2026-02-03 13:36:48 -08:00
2 changed files with 1 additions and 19 deletions

View File

@@ -65,7 +65,7 @@
},
"planning": {
"system_prompt": "You are a strategic planning assistant. Create minimal, effective execution plans. Prefer fewer steps over more.",
"create_plan_prompt": "Create a focused execution plan for the following task:\n\n## Task\n{description}\n\n## Expected Output\n{expected_output}\n\n## Available Tools\n{tools}\n\n## Instructions\nCreate ONLY the essential steps needed to complete this task. Use the MINIMUM number of steps required - do NOT pad your plan with unnecessary steps. Most tasks need only 2-5 steps.\n\nFor each step:\n- State the specific action to take\n- Specify which tool to use (if any)\n- Note dependencies on previous steps if this step requires their output\n- If a step involves multiple items (e.g., research 3 competitors), note this explicitly\n\nDo NOT include:\n- Setup or preparation steps that are obvious\n- Verification steps unless critical\n- Documentation or cleanup steps unless explicitly required\n- Generic steps like \"review results\" or \"finalize output\"\n\nAfter your plan, state:\n- \"READY: I am ready to execute the task.\" if the plan is complete\n- \"NOT READY: I need to refine my plan because [reason].\" if you need more thinking",
"create_plan_prompt": "Create a focused execution plan for the following task:\n\n## Task\n{description}\n\n## Expected Output\n{expected_output}\n\n## Available Tools\n{tools}\n\n## Instructions\nCreate ONLY the essential steps needed to complete this task. Your plan must have AT MOST {max_steps} steps. Use the MINIMUM number of steps required - do NOT pad your plan with unnecessary steps.\n\nFor each step:\n- State the specific action to take\n- Specify which tool to use (if any)\n- Note dependencies on previous steps if this step requires their output\n- If a step involves multiple items (e.g., research 3 competitors), note this explicitly\n\nDo NOT include:\n- Setup or preparation steps that are obvious\n- Verification steps unless critical\n- Documentation or cleanup steps unless explicitly required\n- Generic steps like \"review results\" or \"finalize output\"\n\nAfter your plan, state:\n- \"READY: I am ready to execute the task.\" if the plan is complete\n- \"NOT READY: I need to refine my plan because [reason].\" if you need more thinking.",
"refine_plan_prompt": "Your previous plan:\n{current_plan}\n\nYou indicated you weren't ready. Refine your plan to address the specific gap.\n\nKeep the plan minimal - only add steps that directly address the issue.\n\nConclude with READY or NOT READY as before."
}
}

View File

@@ -597,24 +597,6 @@ class AgentReasoning:
return plan, ready
# Deprecated methods for backward compatibility
def __handle_agent_reasoning(self) -> AgentReasoningOutput:
"""Deprecated: Use _execute_planning instead."""
return self._execute_planning()
def _handle_agent_reasoning(self) -> AgentReasoningOutput:
"""Deprecated method for backward compatibility.
Use handle_agent_reasoning() instead.
Returns:
AgentReasoningOutput: The output of the agent planning process.
"""
self.logger.warning(
"The _handle_agent_reasoning method is deprecated. "
"Use handle_agent_reasoning instead."
)
return self.handle_agent_reasoning()
# Alias for backward compatibility
AgentPlanning = AgentReasoning