are tool calls logged anywhere during the agent re...
# ask-ai
n
are tool calls logged anywhere during the agent response?
t
Thanks for reaching out, Kaster. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Absolutely! In LiveKit, tool calls are thoughtfully logged during the agent’s response to help keep everything transparent and easy to follow. Here’s what’s included: • FunctionToolsExecutedEvent: This captures all the important details about the function calls and what they return. • Logging Output: You’ll find detailed logs showing the function name, arguments, output, and any errors that might occur. • Chat Context: Tool calls and their outputs are added to the chat context, making it easier to trace everything step-by-step. • OpenTelemetry Tracing: Tool calls are included in spans with attributes designed for external observability tools, giving you a clear picture. • Metrics Collection: We track tool calls as part of the LLM response, which is super helpful for monitoring and analysis. All these features work together to provide thorough logging that supports debugging, monitoring, and performance analysis. If you have any questions or want to dive deeper into any of these, I’m here to help! Sources: livekit-agents/livekit/agents/voice/agent_activity.py | agents/src/voice/generation.ts | Docs::Agents