mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-08 15:48:29 +00:00
fix: set max reasoning attempts to address infinite loop
This commit is contained in:
@@ -166,9 +166,9 @@ class Agent(BaseAgent):
|
||||
default=False,
|
||||
description="Whether the agent should reflect and create a plan before executing a task.",
|
||||
)
|
||||
max_reasoning_attempts: int | None = Field(
|
||||
default=None,
|
||||
description="Maximum number of reasoning attempts before executing the task. If None, will try until ready.",
|
||||
max_reasoning_attempts: int = Field(
|
||||
default=15,
|
||||
description="Maximum number of reasoning attempts before executing the task.",
|
||||
)
|
||||
embedder: EmbedderConfig | None = Field(
|
||||
default=None,
|
||||
|
||||
Reference in New Issue
Block a user