average-quill-80069
11/09/2025, 10:23 PMtall-airline-16756
11/09/2025, 10:23 PMtall-airline-16756
11/09/2025, 10:23 PMtool_choice is set to "none". This usually happens when there’s a little mismatch between how the model is set up and how it’s running.
Here are some friendly steps to help you fix this:
• Make sure to explicitly set tool_choice="none" in the ModelSettings when you call context.session.generate_reply. For example:
await context.session.generate_reply(model_settings=ModelSettings(tool_choice="none"))
• Try not to call generate_reply inside a function tool unless you’ve properly set tool_choice to "none".
• Double-check that no tools are registered in the session if you intend to have tool_choice="none".
• Confirm that your LLM plugin (like OpenAI or Anthropic) honors the tool_choice parameter.
• Look over your middleware or agent logic to ensure nothing is changing the tool_choice setting during execution.
Following these tips should help you avoid this error. If you run into any more bumps or have questions, feel free to reach out—I’m here to help!
Sources: Anthropic Claude LLM plugin guide | LiveKit docs | OpenAI LLM plugin guide | LiveKit Docs | Azure OpenAI LLM plugin guide | LiveKit docs | Telnyx LLM plugin guide | LiveKit Docs | livekit-plugins/livekit-plugins-aws/livekit/plugins/aws/experimental/realti...