toolChoice property
ToolChoice?
get
toolChoice
Controls how the model uses tools.
The client MUST return an error if this field is provided but ClientCapabilities.sampling.tools is not declared.
Default is { mode: "auto" }.
Implementation
ToolChoice? get toolChoice => $optional('toolChoice', $model(ToolChoice.fromJson));