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

preguntada hace 2 meses415 visualizaciones
2 Respuestas
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
EXPERTO
Matt-B
respondido hace 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
INGENIERO DE SOPORTE
respondido hace 2 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas