i have this weird thing happening , the input i sent would lead to using the stock vector tool and stock tool but for some reason it doesn’t and just refuse to , my db and tables configs are working the functions are working the prompt is good everything is good but it still refuses , the LLM is gpt 5
Hi @Naim_bruh Welcome!
I understand your issue, consider splitting out the work of the AI agent into smaller flows calling those sub flows, currently you have too many tools attached , for production grade consider making multi agentic flow that each AI would have its own job like booking an order would be a different AI agent’s job to call instead of one agent calling everything.
Also this can happen because of bad model, consider using GPT-4o which is by far the best model for tool calling according to me, and yeah SYSTEM PROMPT should be validated as most of the times it is the issue as there is no sequence in the system prompt and that results in AI getting confused on what todo exactly and then it does NOTHING. Just make sure to use good prompt i mean validate your system prompt from an AI prompt creator and then choose a good model and a reliable structure so that instead of AI agent doing all the fetching ,deciding , calling there should be a proper architecture so that the flow never fails.
Just split out everything that one agent is doing.