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

feita há 2 meses415 visualizações
2 Respostas
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
ESPECIALISTA
Matt-B
respondido há 2 meses
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
ENGENHEIRO DE SUPORTE
respondido há 2 meses

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas