Find answers from the community

Updated 3 months ago

Iterations

Hi guys,

I'm using ReAct agent using Llama3. here is my agent:

memory = ChatMemoryBuffer.from_defaults(token_limit=6000) agent_all = ReActAgent.from_tools(query_engine_tools, memory = memory, verbose = True, max_iteration = 20) response = agent_all.chat(query)

The issue is when I send a query, the logs show that the model get the answer correctly after 4 or 5 iterations, however, when it is supposed to print the response, I am getting this error:
ValueError: Reached max iterations.

can anyone help me?
L
A
2 comments
Wrong kwarg I think. It's plural
max_iterations
Oh, so sorry. You are right!
Thanks
Add a reply
Sign up and join the conversation on Discord