anthropic.ToolChoice$stream

How the model may use the tools in the run's toolbox (`tool_choice`). Only sent when the toolbox is non-empty; the default is `auto`.

Reference version

Signature

class anthropic.ToolChoice$stream

How the model may use the tools in the run's toolbox (tool_choice). Only sent when the toolbox is non-empty; the default is auto.

Source:<builtin>/anthropic/messages.bamlbytes 0–0

Fields

type

string | null

"auto", "any", "tool", or "none".

name

string | null

The tool the model must call. Only read when type is "tool".

disable_parallel_tool_use

bool | null