Agent stopped due to iteration limit or time limit. #27141
Unanswered
raftaarrashedin
asked this question in
Q&A
Replies: 1 comment
-
@raftaarrashedin Hello there! I'm here to help you with any bugs, questions, or becoming a contributor. I found a similar issue where the "Agent stopped due to iteration limit or time limit" error occurs. To resolve this, you can adjust the agent = create_csv_agent(
llm,
csv_file,
verbose=True,
handle_parsing_errors=True,
allow_dangerous_code=True,
max_iterations=20 # Increase this value as needed
) Additionally, if the error is due to a time limit, you can set the agent = create_csv_agent(
llm,
csv_file,
verbose=True,
handle_parsing_errors=True,
allow_dangerous_code=True,
max_iterations=20,
max_execution_time=20.0 # Increase this value as needed
) Adjust these parameters to values that suit your needs to prevent the agent from stopping prematurely [1][2]. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Checked other resources
Commit to Help
Example Code
Description
I'm trying to chat with my excel sheet but I'm facing this error -
System Info
System Information
Package Information
Optional packages not installed
Other Dependencies
Beta Was this translation helpful? Give feedback.
All reactions