nice-fish-21757
07/11/2025, 3:31 PMtall-airline-16756
07/11/2025, 3:31 PMtall-airline-16756
07/11/2025, 3:32 PMFunctionCall
object with the function name and arguments, and looks up the appropriate tool in the tool context.
• The system executes the tool automatically—either as a standard FunctionTool
(which receives unpacked arguments) or a RawFunctionTool
(which receives raw JSON arguments), depending on how the tool was defined.
No manual intervention is needed at the execution stage; you simply register your tools using the @function_tool
decorator, and LiveKit handles invocation whenever the LLM issues a tool call. Each LLM plugin (OpenAI, Anthropic, AWS, etc.) implements this tool execution integration with built-in error handling. For more detailed implementation guidelines or troubleshooting, refer to the internal tool context and execution logic within your plugin configuration.
Sources: livekit-agents/livekit/agents/llm/tool_context.py | Tool definition and use | LiveKit Docs