crewAI icon indicating copy to clipboard operation
crewAI copied to clipboard

Max iteration limit - not returning best answer

Open SamuelKocur opened this issue 1 year ago • 1 comments

In documenation is written: Max Iter is the maximum number of iterations the agent can perform before being forced to give its best answer.

Why does the agent return: "Agent stopped due to iteration limit or time limit."? Shouldn't it rather try to generate answer based on the context it gathered?

SamuelKocur avatar Jul 31 '24 13:07 SamuelKocur

It is because, the agent decides whether this iteration gives a retrieved information through which sub-question can be answered or not ...

If not, instead of framing the retrieved information to final response, it moves to next iteration. This way, if it ends up seeing awful information after each retrieval iteration... Then it stops the process, apologizing for not being able to find relevant information.

Hope this helps.

Sar2580P avatar Aug 03 '24 11:08 Sar2580P

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Dec 12 '24 06:12 github-actions[bot]

This issue was closed because it has been stalled for 5 days with no activity.

github-actions[bot] avatar Dec 17 '24 12:12 github-actions[bot]