what's the most explicit way to have the agent llm...
# ask-ai
n
what's the most explicit way to have the agent llm only perform tool calls in the background, with no explicit text / audio output?
t
Thanks for reaching out, Blaine. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
You're asking how to make an agent LLM perform tool calls only in the background with no explicit text or audio output. You can do this by having your tool functions perform the action and return None (or no value). Returning None prevents the LLM from generating any reply message or audio. Example (Python):
Copy code
@function_tool()
async def lookup_weather(self, context: RunContext, location: str) -> dict[str, Any]:
    # perform the background action
    await self._fetch_weather(location)
    # return None to complete silently without LLM output
    return None
If you'd like, tell me which runtime or SDK you're using (Python, TypeScript, or other) and I can provide a snippet for that environment. Sources: Tool definition and use | LiveKit docs