Agent Orchestrator Failure – MaxTokensReachedException #2037
Unanswered
Pramod-1999
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Encountering an issue while using an orchestrator-based agent workflow where the execution fails with the following error:
Error in using orchestrator: Agent has reached an unrecoverable state due to max_tokens limit. For more information see: https://strandsagents.com/latest/user-guide/concepts/agents/agent-loop/#maxtokensreachedexception
The issue occurs during agent orchestration when the model is generating responses. The workflow fails prematurely, blocking successful execution.
Request:
Guidance on preventing this issue
Best practices to manage token usage
Whether token limits can be configured or increased
Possible retry or fallback handling mechanisms
Beta Was this translation helpful? Give feedback.
All reactions