dropping redundancy

This commit is contained in:
lorenzejay
2026-02-02 16:01:37 -08:00
parent 710b0ce2ae
commit 9277d219e3
2 changed files with 1 additions and 7 deletions

View File

@@ -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:

View File

@@ -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=(