Skip to content

Conversation

@theomonnom
Copy link
Member

@theomonnom theomonnom commented Dec 23, 2025

based on #4352
avoid failing silently when the LLM hallucinates

"speech_id": speech_handle.id,
},
)
_tool_completed(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

currently xai is calling these tools even though they are supposed to be executed on the server side, I'll raise with them.. but just to note that this will likely break the xai tools

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

which tool did you test? XSearch or WebSearch?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for example, web + x search request:

 14:32:53.218 WARNI… livekit.agents     unknown AI function `web_search_with_snippets` {"function": "web_search_with_snippets", "speech_id": "speech_c7ce525a9080", "room": "mock_room"}
   14:32:53.221 WARNI… livekit.agents     unknown AI function `x_keyword_search` {"function": "x_keyword_search", "speech_id": "speech_c7ce525a9080", "room": "mock_room"}
   14:32:53.223 WARNI… livekit.agents     unknown AI function `x_semantic_search` {"function": "x_semantic_search", "speech_id": "speech_c7ce525a9080", "room": "mock_room"}

Copy link
Contributor

@Hormold Hormold Dec 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • x_semantic_search
  • x_keyword_search
  • x_user_search
  • x_thread_fetch
  • web_search_with_snippets
  • browse_page

here is full list

make_tool_output(
fnc_call=fnc_call,
output=None,
exception=RuntimeError(f"unknown AI function `{fnc_call.name}`"),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should expose the list of available functions back to the LLM to help with the next step (optionally)?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should already have it in context?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants