alep
02/19/2025, 1:40 AMrocha
02/19/2025, 4:30 PMrocha
02/19/2025, 4:31 PMKyle Brunker
02/19/2025, 10:00 PMKyle Brunker
02/19/2025, 10:00 PMKyle Brunker
02/19/2025, 10:03 PMjavascript
const tool = {
type: "function",
async: false,
messages: [], // This will override the default messages
function: {
// your function definition
}
};
2. Use Async Tool
If you don't need an immediate response from the tool, you can set it as async which will prevent start messages from being spoken:
javascript
const tool = {
type: "function",
async: true, // Async tools don't trigger start messages
function: {
// your function definition
}
};
The second approach is recommended if you're just polling and don't need synchronous responses, as it's explicitly mentioned.alep
02/20/2025, 6:01 PMKyle Brunker
02/21/2025, 5:16 AM