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

已提问 2 个月前415 查看次数
2 回答
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
专家
Matt-B
已回答 2 个月前
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
支持工程师
已回答 2 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则