livekit/agents

Tools voice feedback isn't awaited.

Opened this issue · 0 comments

In the examples for the voice-pipeline-agent, the function_calling_weather.py has an example on how to add tools to the agent. In line 43 it executes a say() function to give feedback to the user telling him that the tool is going to be used [await call_ctx.agent.say(message)] This function is not awaited and the agent returns the response before delivering the feedback message.