struct

Anthropic::ToolChoice

Inherits Struct < Value < Object

Tool choice configuration.

Constructors

any

Force the model to use a tool (any tool).

Source
auto

Let the model decide whether to use tools.

Source
new(type : String, name : String | Nil = nil)
Source
tool(name : String) : ToolChoice

Force the model to use a specific tool.

Source

Instance methods

name
Source
to_json(json : JSON::Builder) : Nil
Source
type
Source