fix(tts): update tool description to prevent duplicate audio delivery (#18046)

Merged via /review-pr -> /prepare-pr -> /merge-pr.

Prepared head SHA: 70c096abaa
Co-authored-by: zerone0x <39543393+zerone0x@users.noreply.github.com>
Co-authored-by: sebslight <19554889+sebslight@users.noreply.github.com>
Reviewed-by: @sebslight
This commit is contained in:
zerone0x
2026-02-16 21:09:02 +08:00
committed by GitHub
parent 39bb1b3322
commit c2a0cf0c28
4 changed files with 63 additions and 24 deletions

View File

@@ -21,7 +21,7 @@ export function createTtsTool(opts?: {
label: "TTS",
name: "tts",
description:
"Convert text to speech and return a MEDIA: path. Use when the user requests audio or TTS is enabled. Copy the MEDIA line exactly.",
"Convert text to speech. Audio is delivered automatically from the tool result — reply with NO_REPLY after a successful call to avoid duplicate messages.",
parameters: TtsToolSchema,
execute: async (_toolCallId, args) => {
const params = args as Record<string, unknown>;