Duplicate tool calls, finally hits recursion limit #2999
Unanswered
umeshshetty
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
-
I have a simple langgprah implementation where I am using the model to bind tools and the expectation is that the model will identify if a tool call is needed and make the call, evaluate the output and respond. The issue I am facing is that the same tools are called repeatedly and finally hits the recursion limit. Strangely it only happens 50% of the time whereas other times it only calls the tool once as expected and returns the output
I can see from langfuse traces the "messages" being appended with AIMessages and ToolMessage outputs but the LLM still decides to make the same tool calls again and again
Beta Was this translation helpful? Give feedback.
All reactions