Our agent starts reading out tool calls loud. Have...
# ask-ai
d
Our agent starts reading out tool calls loud. Have other users reported similar problems? What has helped?
t
Thanks for reaching out, Simeon. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks — I’m responding about agents reading tool-call outputs aloud. Nobody has reported this as a widely common bug, but teams have seen it when tool responses aren’t handled or when instructions allow the agent to verbatim recite raw tool output. What has helped other customers: • Ensure tool return values are intentional ◦ If the tool result should not be spoken, have the tool return
None
or an empty string. ◦ If the tool must return data, return a concise summary rather than raw/verbose data. • Add clear tool-response instructions ◦ In the tool definition, state whether the agent should speak the result and, if so, how (e.g., “Summarize in one sentence” or “Do not read identifiers or raw JSON aloud”). • Apply output-formatting rules in the agent prompt ◦ Instruct the LLM not to read technical details, IDs, or full raw outputs; require summaries or user-facing phrasing. • Filter or modify speech before TTS ◦ Use pipeline nodes (for example an
llm_node
or
tts_node
) to sanitize or shorten content before it’s sent to speech synthesis. If you want, I can: • Review one example tool definition or a transcript where this happens and suggest exact wording changes, • Or provide a short tool-definition template and prompt snippets you can drop into your agent to prevent this behavior. Which would you prefer? Sources: Tool definition and use | LiveKit docs | Prompting guide | LiveKit docs | Pipeline nodes and hooks | LiveKit docs