AWS Bedrock agent | "failureReason": "Max iterations exceeded",

0

hi there,

I have setup an AWS Bedrock Agent using anthropic.claude-v2:1 model. The purpose of this agent is to lookup a set of steps in a knowledge base and then execute the steps using the tools at its disposal.

I am seeing that after 9-10 traces, I see this error in my traceBedrock max iterations.

Any insights on why this maybe so?

Cheers, Shashank

asked a month ago391 views
2 Answers
0

Hi There

Is it possible that this request stuck in any loop when interacting with model? i.e. if model asked same question repeatedly (model input prompt and response for each iteration should be visible in agent trace)?

profile pictureAWS
EXPERT
Matt-B
answered a month ago
0

Hello

Please note that this error is encountered because the maximum iterations limit for an agent is set by default. This currently is a hard limit and cannot be configured by users on a per-agent basis. When we hit this limit, we can encounter the "max iterations exceeded" error.

However, to solve this issue, please make sure that the request is not stuck in any loop when interacting with model or is not repeatedly asking same question.

AWS
SUPPORT ENGINEER
answered a month ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions