https://retellai.com/?utm_source=discord&utm_medium=seo logo
What would cause my agent to verbalize dynamic var...
# ❓・ai-evy-support
e
@AI Evy What would cause my agent to verbalize dynamic variables Like tool_uses, or execution_message on a call when it is not terms we use on our promt?
a
Thanks for tagging me @elysia_35389. I'll look through relevant sources and get back to you shortly.
### Answer Based on the available sources, this issue where agents verbalize internal function names, JSON responses, or terms like
tool_uses
and
execution_message
has been reported by other users. [(1) ]() [(2) ]() Common triggers include: - Background noise at call start, which can confuse the agent and cause it to bypass configured
speak_during_execution
text [(1) ]() - The agent reading raw JSON from tool responses instead of just the intended message [(2) ]() - Model instability, particularly with certain LLM choices [(1) ]() Potential solutions: 1. Switch LLM models - Users reported success switching from Gemini 2.5 to GPT-4.1 mini or Claude 4.5 Haiku, as Gemini isn't very reliable unless you have an overprompted agent 2. Strengthen your prompt - Add explicit instructions in both the tool description and main prompt to only read specific variables from responses [(2) ]() 3. Modify API responses - If possible, change your tool server to only send the
execution_message
in the response, not the full JSON structure The issue appears to be model-dependent, with some LLMs being more prone to verbalizing internal state than others. [(1) ]()
​ To learn more, see the sources I considered: [[1] Agent verbally exposes internal function name & JSON, ignoring 'speak_during_execution' message](https://discord.com/channels/1186424376300679209/1437908464927113267) [[2] Agent announces tool call JSON instead of just the 'execution_message'](https://discord.com/channels/1186424376300679209/1348675259867336736) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.