Tool choice set to 'none', ignoring

Hi, sometimes in my app I’m getting this warning:

‘received a tool call with tool_choice set to ‘none’, ignoring’

What does this even mean? Thanks in advance for any help

Hi, that warning comes from LiveKit Agents means the agent received a model response requesting a tool call while tool use was disabled for that response, so it ignored the call.

The code is here:

It does not, by itself, explain why the model requested the tool.

Some possible reasons why toolchoice:none was set:

  • generate_reply was called from inside a function tool: Link
  • The agent has reached its max_tool_step: Link
  • You set toolchoice:noneyourself, and it was not respected by the model.