mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-04-30 23:02:50 +00:00
refactor: remove default enabled flag from PlanningConfig in Agent class
This commit is contained in:
@@ -304,7 +304,6 @@ class Agent(BaseAgent):
|
||||
stacklevel=2,
|
||||
)
|
||||
self.planning_config = PlanningConfig(
|
||||
enabled=True,
|
||||
max_attempts=self.max_reasoning_attempts,
|
||||
)
|
||||
|
||||
|
||||
@@ -133,7 +133,6 @@ class AgentReasoning:
|
||||
return self.agent.planning_config
|
||||
# Fallback for backward compatibility
|
||||
return PlanningConfig(
|
||||
enabled=True,
|
||||
max_attempts=getattr(self.agent, "max_reasoning_attempts", None),
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user