Skip to content

Agent Recursion Between Tools and Agent - GraphRecursionError #1725

Closed Answered by nfcampos
suribe06 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, the issue is you're forcing the model to always call a tool, with tool_choice=required. Thus the model will always return a tool call, and the stop condition should_continue will always return "tools"

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nfcampos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants