diff --git a/lib/crewai/src/crewai/translations/en.json b/lib/crewai/src/crewai/translations/en.json index 5bfac38b4..4fe085554 100644 --- a/lib/crewai/src/crewai/translations/en.json +++ b/lib/crewai/src/crewai/translations/en.json @@ -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." } } diff --git a/lib/crewai/src/crewai/utilities/reasoning_handler.py b/lib/crewai/src/crewai/utilities/reasoning_handler.py index a3030ddad..eaa8f2b6f 100644 --- a/lib/crewai/src/crewai/utilities/reasoning_handler.py +++ b/lib/crewai/src/crewai/utilities/reasoning_handler.py @@ -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