important-judge-78504
09/02/2025, 2:01 PMtall-airline-16756
09/02/2025, 2:01 PMtall-airline-16756
09/02/2025, 2:02 PMimportant-judge-78504
09/02/2025, 2:02 PMtall-airline-16756
09/02/2025, 2:03 PMNone. This way, the system stays quiet. Here’s a simple example:
@function_tool()
async def turn_on_light(self):
self.light_on = True
# No return value = silent execution
Another way is to raise a StopResponse exception inside the tool to stop any reply from being sent. If you'd like, I’m happy to walk you through more examples or explain anything in detail—just let me know!
Sources: Tool definition and use | LiveKit Docs | examples/voice_agents/annotated_tool_args.py