Find answers from the community

Updated 4 months ago

Agent

Hey there,
I was wondering what's the difference between these 2 different functions.
FunctionAgentCallingWorker.from_tools(...)
vs
RouterQueryEngine(
selector=LLMSingleSelector.from_defaults(),
query_engine_tools=[...],
)
L
c
4 comments
A router query engine is stateless, and is also forced to pick an option (it will error out if it doesn't)

An agent can pick any tool, or none. It also keeps track of chat history
So basically if I only want it to answer questions related to customer data, I should use the router query engine.
With the Function Agent, it might just use the LLM's knowledge to answer a question.
but if I want to keep track of chat history too I gotta make a semi-merged one of these 2 haha.
Add a reply
Sign up and join the conversation on Discord