Can I Force React Agents to Run in a Step-by-Step Pipeline?
Can I Force React Agents to Run in a Step-by-Step Pipeline?
At a glance
The community member has a ReAct agent with two tools, where the first tool extracts some information (called my_var) from a query, and the second tool uses this my_var to perform an operation. The issue is that sometimes the LLM does not pass my_var to the second tool, causing an error. The community member wants to know if it is possible to force the use of the agents in a specific order.
The comments suggest that the simplest solution is to create a single tool that calls the two tools in sequence, which the community member says they will use for now. Another community member recommends looking into workflows as an alternative to a pre-built agent, allowing the community member to build the desired flow using lower-level APIs.
Hi...I have ReAct agent with 2 tools. I want these tools in consecutive pipeline: 1st tool extracts some simple info, let's call it my_var from query (just string) and 2nd tool uses this my_var string to perform some operation. So... The issue is the following: sometimes LLM don't pass my_var to the 2nd tool and it raises an error. I suspect it because, sometimes, it calls 2nd tool before the 1st
So... my question is: is it possible to force use agents step by step?