Find answers from the community

Updated 3 months ago

Hi, I'm building an agent using

Hi, I'm building an agent using FunctionCallingAgent to use the customized tools.
The tools are all set to return_direct=True. Memory default as None

I ran the same user query 10 times. If the agent uses the tool correctly, it should retrieve information directly from my database. However, I discovered that out of the 10 user queries, some responses were directly from the tool, while others returned results without utilizing the tool and contained information from the previous tool-generated result.

Any idea of how to fix this?
L
2 comments
Whether or not it uses a tool is entirely controlled by the tool name/description and the chat history
You might be more interested in a "from scratch" agent using workflows
https://docs.llamaindex.ai/en/stable/examples/workflow/function_calling_agent/

More control over how things works imo
Add a reply
Sign up and join the conversation on Discord