RecursionError: maximum recursion depth exceeded #146
Closed
gargshilpi22
started this conversation in
General
Replies: 1 comment
-
Hi @gargshilpi22, thank you for reporting this issue. A related fix was merged in #152 and will be released this week. I'll close this discussion topic and we can use the issue for anything else related to this. |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Context Window Overflow Error in Strands Agent
Error Description
When running the Strands agent, I'm encountering a context window overflow error followed by a recursion error.
Error Details
The primary error is a
ContextWindowOverflowException
with the following details:This indicates that the total tokens (input + max_tokens) exceeds the model's context window limit of 204,658 tokens.
Full Error Trace
This is followed by a recursion error while handling the initial exception:
Environment Details
Question
Has anyone encountered this issue and found a solution? I'm particularly interested in best practices for handling large inputs with the Strands agent.
Please let me know if you need any additional information or clarification.
Beta Was this translation helpful? Give feedback.
All reactions