Find answers from the community

Updated 3 weeks ago

Can I Force React Agents to Run in a Step-by-Step Pipeline?

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?
L
f
4 comments
Why not create a single tool that just calls your two tools in sequence?
Yes... this is the simplest solution, which I must use now.
In future, I want to have some complicated pipeline
Have you looked at workflows? imo instead of a prebuilt agent, build the flow you want using slightly lower level APIs
@Logan M yes... thank you... I forgot about it
Add a reply
Sign up and join the conversation on Discord