mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 08:08:32 +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,
|
default=False,
|
||||||
description="Whether the agent should reflect and create a plan before executing a task.",
|
description="Whether the agent should reflect and create a plan before executing a task.",
|
||||||
)
|
)
|
||||||
max_reasoning_attempts: int | None = Field(
|
max_reasoning_attempts: int = Field(
|
||||||
default=None,
|
default=15,
|
||||||
description="Maximum number of reasoning attempts before executing the task. If None, will try until ready.",
|
description="Maximum number of reasoning attempts before executing the task.",
|
||||||
)
|
)
|
||||||
embedder: EmbedderConfig | None = Field(
|
embedder: EmbedderConfig | None = Field(
|
||||||
default=None,
|
default=None,
|
||||||
|
|||||||
Reference in New Issue
Block a user