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 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南