mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-04-11 05:22:41 +00:00
dropping redundancy
This commit is contained in:
@@ -312,9 +312,7 @@ class Agent(BaseAgent):
|
||||
@property
|
||||
def planning_enabled(self) -> bool:
|
||||
"""Check if planning is enabled for this agent."""
|
||||
return (
|
||||
self.planning_config is not None and self.planning_config.enabled
|
||||
) or self.planning
|
||||
return self.planning_config is not None or self.planning
|
||||
|
||||
def _setup_agent_executor(self) -> None:
|
||||
if not self.cache_handler:
|
||||
|
||||
@@ -49,10 +49,6 @@ class PlanningConfig(BaseModel):
|
||||
```
|
||||
"""
|
||||
|
||||
enabled: bool = Field(
|
||||
default=True,
|
||||
description="Whether planning is enabled.",
|
||||
)
|
||||
max_attempts: int | None = Field(
|
||||
default=None,
|
||||
description=(
|
||||
|
||||
Reference in New Issue
Block a user