fix: set max reasoning attempts to address infinite loop

This commit is contained in:
Greyson LaLonde
2025-11-04 20:52:27 -05:00
parent b221db6061
commit b45cb7a93e

View File

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