-
Notifications
You must be signed in to change notification settings - Fork 396
Description
Steps to recreate the error
- In config.yml, replace "llm_name: nim_llm" with "llm_name: openai_llm".
- On command line
aiq run --config_file=examples/simple_calculator/configs/config.yml --input ""
Snippet of errors pasted here
The agent's thoughts are:
Thought: I will ask the user for a specific question to answer.
Action: None
Action Input: None
2025-03-25 14:15:07,494 - aiq.agent.react_agent.agent - WARNING - ReAct Agent wants to call tool None. In the ReAct Agent's configuration within the configfile,there is no tool with that name: ['calculator_multiply', 'calculator_inequality', 'current_datetime', 'calculator_divide']
2025-03-25 14:15:07,497 - aiq.agent.react_agent.agent - INFO - Querying agent, attempt: 1
2025-03-25 14:15:08,245 - httpx - INFO - HTTP Request: POST https://api.openai.com/v1/chat/completions "HTTP/1.1 200 OK"
2025-03-25 14:15:08,481 - aiq.agent.react_agent.agent - INFO -
The agent's thoughts are:
Thought: I will ask the user for a specific question to answer.
Action: None
Action Input: None
2025-03-25 14:15:08,487 - aiq.agent.react_agent.agent - WARNING - ReAct Agent wants to call tool None. In the ReAct Agent's configuration within the configfile,there is no tool with that name: ['calculator_multiply', 'calculator_inequality', 'current_datetime', 'calculator_divide']
2025-03-25 14:15:08,491 - aiq.agent.react_agent.register - ERROR - ReAct Agent failed with exception: Recursion limit of 32 reached without hitting a stop condition. You can increase the limit by setting the recursion_limit config key.
For troubleshooting, visit: https://python.langchain.com/docs/troubleshooting/errors/GRAPH_RECURSION_LIMIT
Traceback (most recent call last):
File "/home/sgrubuntu/projects/nvidia/agentiq/AgentIQ/src/aiq/agent/react_agent/register.py", line 117, in _response_fn
state = await graph.ainvoke(state, config={'recursion_limit': (config.max_iterations + 1) * 2})
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sgrubuntu/projects/nvidia/agentiq/venv/lib/python3.12/site-packages/langgraph/pregel/init.py", line 2389, in ainvoke
async for chunk in self.astream(
File "/home/sgrubuntu/projects/nvidia/agentiq/venv/lib/python3.12/site-packages/langgraph/pregel/init.py", line 2296, in astream
raise GraphRecursionError(msg)
langgraph.errors.GraphRecursionError: Recursion limit of 32 reached without hitting a stop condition. You can increase the limit by setting the recursion_limit config key.
For troubleshooting, visit: https://python.langchain.com/docs/troubleshooting/errors/GRAPH_RECURSION_LIMIT
2025-03-25 14:15:08,505 - aiq.observability.async_otel_listener - INFO - Intermediate step stream completed. No more events will arrive.
2025-03-25 14:15:08,505 - aiq.front_ends.console.console_front_end_plugin - INFO - --------------------------------------------------
Workflow Result:
['Recursion limit of 32 reached without hitting a stop condition. You can increase the limit by setting the recursion_limit config key.\nFor troubleshooting, visit: https://python.langchain.com/docs/troubleshooting/errors/GRAPH_RECURSION_LIMIT']