when I'm making the function tool call it shows in...
# ask-ai
a
when I'm making the function tool call it shows in log that "tools execution completed" but its actually not working the function inside that tool is not getting executed, I'm actually transfering the conversation to another Agent in that function
t
Thanks for reaching out, Hiren. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thank you for reaching out! The log message "tools execution completed" lets us know that the LiveKit framework has gone through the tool call lifecycle, but it doesn’t always mean the actual function inside the tool ran successfully. This can happen for a few reasons: • Tool Name Mismatch: If the tool name in your function call doesn’t match any registered function tools, the system will skip execution and log a warning. • Invalid Arguments: If the arguments you provided are invalid, the framework will log an error and won’t execute the function. • Tool Choice Setting: If the tool choice is set to "none," incoming tool calls are ignored, so the function won’t run. • Mock Tool Usage: If a mock function is defined for the tool, the system runs the mock instead of the actual function, which might not give you the results you expect. To help get this sorted out, please check the following: 1. Make sure the tool name exactly matches the registered function tool. 2. Double-check that the arguments you’re using are valid and correctly formatted. 3. Confirm that the tool choice setting isn’t set to "none." 4. See if a mock tool is being used, and adjust if needed. If you’d like, feel free to share the specific tool name and arguments you’re working with, and I’d be happy to help you troubleshoot further. We’re here to make sure everything works smoothly for you! Sources: livekit-plugins/livekit-plugins-aws/livekit/plugins/aws/experimental/realti...