Find answers from the community

Updated 5 months ago

Tool not found, please double check:

Tool not found, please double check:

Hi! I'm having an error that i have no clue how to make an approach to. I have already defined some tools for the agent that were working fine, but i don't why there is one of them (which were working fine too) that now gives me the following message in console:
2024-07-05 17:42:19,697 - httpx - INFO - HTTP Request: POST https://api.openai.com/v1/embeddings "HTTP/1.1 200 OK" (_client.py:1026)
2024-07-05 17:42:21,130 - httpx - INFO - HTTP Request: POST https://api.openai.com/v1/chat/completions "HTTP/1.1 200 OK" (_client.py:1026)
=== Calling Function ===
Calling function: save_payment_promise_for_debt with args: {"debt_id":"a8487f7d-8154-4ead-b401-faa64005a6f6","year":2024,"month":7,"day":11}
Tool with name save_payment_promise_for_debt not found, please double check.
========================

Does anyone have an idea what can be the cause of this error? If i see the code when the tool is added to the agent, there are no compilation errors and even when i ctrl+click the name of the method, it redirects me fine to it's declaration, so i don't know where to start debugging. This is how i append it to the tools list, which is the same way i do it for the rest of tools that are working fine:
self.tools.append(FunctionTool.from_defaults(fn=self.payment_tools.save_payment_promise_for_debt))

I don't know why i have the feeling that the answer to my problem could be something so simple as a spelling error, but i cannot see it and i'm getting frustrated xd so thanks in advance to anyone that can giive me a hand with this 🙂

Update: now it's happening with randomly any tool. Sometimes they work, sometimes they dont. If you need any info pls tell me, because i'm not understanding what is happening xd
L
J
5 comments
Seems like the llm is possibly hallucinating function names?
Not sure what LLM you are using
Hi Logan! I'm using GPT4o. I've been trying to improve and make better my system and function prompts, could it be related with this issue? I know that the changes in the prompts could take the agent into giving wrong answers, but i was not aware that it coul possibly change the function names assigned to the agent.
If you want i can show you any piece of code you need to see in order to have more info, just let me know
Ah, I have heard similar issues about gpt-4o tbh.

Maybe try changing the model? gpt-4-turbo? Or, iterating on more distinct function names/descriptions is also helpful
I'll try with the function names/descriptions to see if i can get it to work fine every time, and if i find something interesting about this kind of issue i'll be telling you here. Thanks!
Add a reply
Sign up and join the conversation on Discord