4 ms·
LLM Agents: How to make an agent use multiple tools in conjunction
I have been playing around with agents and tools using Langhchain, Claude and OpenAI. Some of the tasks I prompt are similar to:
`Generate an investment memo on Tesla`
So the agent has access to search tools and financial APIs from Yahoo. What it needs to do theoretically for this prompt is first fetch updated live data and then search for recent news perhaps and then use the LLMChain and Default LLM tool to generate an investment memo that will incorporate the findings.
What actually happens instead: It uses only one tool. Then the data is outdated.
The same idea applies to a lot of things. Did anyone figure out how to chain tools like this?
- rogerkirkness 3y agoWe have been working extensively on this and the answer is: it is just not good enough at 'managing' agents yet to do this reliably. We are using AI to generate tool descriptions that get fed in, but making them collaborate is very hard.
- warthog 3y agoWe are having the same difficulty. It works better with OpenAI but Claude is very bad at hopping off from tool to tool and combining the results. Did you give a try to router chains to set up multiple agents perhaps?