diff --git a/docs/core-concepts/Agents.md b/docs/core-concepts/Agents.md index 7bac949e6..1f6c77328 100644 --- a/docs/core-concepts/Agents.md +++ b/docs/core-concepts/Agents.md @@ -24,7 +24,7 @@ description: What are crewAI Agents and how to use them. | **LLM** *(optional)* | Represents the language model that will run the agent. It dynamically fetches the model name from the `OPENAI_MODEL_NAME` environment variable, defaulting to "gpt-4" if not specified. | | **Tools** *(optional)* | Set of capabilities or functions that the agent can use to perform tasks. Expected to be instances of custom classes compatible with the agent's execution environment. Tools are initialized with a default value of an empty list. | | **Function Calling LLM** *(optional)* | Specifies the language model that will handle the tool calling for this agent, overriding the crew function calling LLM if passed. Default is `None`. | -| **Max Iter** *(optional)* | The maximum number of iterations the agent can perform before being forced to give its best answer. Default is `15`. | +| **Max Iter** *(optional)* | The maximum number of iterations the agent can perform before being forced to give its best answer. Default is `25`. | | **Max RPM** *(optional)* | The maximum number of requests per minute the agent can perform to avoid rate limits. It's optional and can be left unspecified, with a default value of `None`. | | **max_execution_time** *(optional)* | Maximum execution time for an agent to execute a task It's optional and can be left unspecified, with a default value of `None`, menaning no max execution time | | **Verbose** *(optional)* | Setting this to `True` configures the internal logger to provide detailed execution logs, aiding in debugging and monitoring. Default is `False`. | diff --git a/src/crewai/agent.py b/src/crewai/agent.py index ba6a23ac2..908f05d20 100644 --- a/src/crewai/agent.py +++ b/src/crewai/agent.py @@ -88,7 +88,7 @@ class Agent(BaseModel): default_factory=list, description="Tools at agents disposal" ) max_iter: Optional[int] = Field( - default=15, description="Maximum iterations for an agent to execute a task" + default=25, description="Maximum iterations for an agent to execute a task" ) max_execution_time: Optional[int] = Field( default=None,