Assistant never calling tool although it being passed and mentioned correctly
I am creating a assistant via the node sever sdk and i want to make it use a existing tool, i already have a tool created in the vapi dashboard and it has worked in the past with assistants created from the dashboard. I am currently doing this:
model: {
toolIds: ["my-tool-id"],
provider: "openai",
model: "gpt-4o-mini",
messages: [
{
role: "system",
content: "System Prompt which includes the exact name of the tool",
},
]
},
Upon creating the agent i can clearly see that the tool has been set but it never gets used in the call as it had with assistants created in the dashboard.
model: {
toolIds: ["my-tool-id"],
provider: "openai",
model: "gpt-4o-mini",
messages: [
{
role: "system",
content: "System Prompt which includes the exact name of the tool",
},
]
},
Upon creating the agent i can clearly see that the tool has been set but it never gets used in the call as it had with assistants created in the dashboard.