Tool instruction not silent
# support
m
Call id: b0faaad8-9349-4415-b7ea-398c4e240401 In prompt I explicitly ask agent to call a tool using following syntax (which is expeceted to be a silent instruction):
Copy code
<!-- Utilisez l'outil `agendarCita_1744877694951` avec les paramètres suivants : jour, name, heure, telephone, tool. -->
Issue is that during this call, LLM output the silent instruction and this was sent to voice output:
Copy code
07:40:33:811
[LOG]
Voice input: Oui pardon, je disais, je vais enregistrer cela dans l'agenda, un instant. Utilisez l'outil `agendarCita_1744877694951` avec les paramètres suivants :
It failed on this call but works on other calls. How can I improve it so it's silent every time?
v
Try setting an empty messages array for your tool to prevent the AI from speaking instructions:
Copy code
javascript
const tool = {
  type: "function",
  async: false,
  messages: [], // This will override default messages
  function: {
    name: "agendarCita_1744877694951",
    // your function definition
  }
};
This explicitly overrides any default messages that might be spoken when the tool is triggered. Source: - [Discord conversation about silent tool instructions](https://discord.com/channels/1211482211119796234/1341585041624666122)
Try setting an empty messages array for your tool to prevent the AI from speaking instructions:
Copy code
javascript
const tool = {
  type: "function",
  async: false,
  messages: [], // This will override default messages
  function: {
    name: "agendarCita_1744877694951",
    // your function definition
  }
};
This explicitly overrides any default messages that might be spoken when the tool is triggered. Source: - [Discord conversation about silent tool instructions](https://discord.com/channels/1211482211119796234/1341585041624666122)
3 Views