Find answers from the community

Updated 8 months ago

Hi, I wonder is there any way to build a

Hi, I wonder is there any way to build a sequence of called tools? In the classic example that you have, there are tools "add" and "multiply" and the agent figures it out on its own which one to call, and when. I have 3 tools:

  1. Search in a database and get the JSON object
  2. Extract the Id from a JSON object
  3. Search in another database to get the details of by extracted Id.
I'm trying to specify the prompt like "search in the database and obtain the JSON object, then extract Id and then pass it to get the details" but the result is not reliable and not predictable. Is there any other way to explicit the connect called tools in a sequence, or specify the order of calling them?
Thanks!
L
S
3 comments
Why not create a single tool that wraps all three?
Do you mean a tool spec or just a single tool with inner logic? I can't combine them into one tool because they all are dynamic, atomic tools. I have to keep them separated and I need to find a way to call them as a sequence (in order)
But if you know the order, why can't you wrap them into a single tool ahead of time?
Add a reply
Sign up and join the conversation on Discord