I have a graph that contains a node node_perform_research
and in this node I manually bind an llm with tools and invoke it then append the response to the state messages list and command goto the node again creating a loop until the llm calls a finish actions tool.
My graph is running synchronously and it’s running inside of a Flask application.
This works great when it does. Very often the graph just stops for seemingly no reason. I have all of my packages updated, I have remove any custom callbacks, I have done a lot of things and already discussed this with ChatGPT relentlessly to attempt to resolve it on my own and I can’t.
When I enabled set_debug
I can see that when it freezes it’s always on the llm start (when I invoke my llm).
Any tips on getting this resolved or something? My other agents work great and I’ve never had this issue before.