agent_executor = create_react_agent(
model,
tools=tools,
prompt=instructions,
checkpointer=memory,
)
config = {
"thread_id": "abc123",
"recursion_limit": 100
}
response = agent_executor.invoke(
{
"messages": [HumanMessage(content=user_input)]
},
config=config
)
print(response["messages"][-1].content)
I am getting this error even when I am setting recursion limit to be 100.
langgraph.errors.GraphRecursionError: Recursion limit of 25 reached without hitting a stop condition. You can increase the limit by setting the recursion_limit config key. For troubleshooting, visit: