struct

AI::Provider::LanguageModel::ToolChoice

Inherits JSON::Serializable < Struct < Value < Object

Specifies how tools should be selected.

Constructors

auto
Source
new(type : ToolChoiceType, tool_name : String | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
none
Source
required
Source
tool(name : String) : ToolChoice
Source

Instance methods

tool_name
Source
type
Source