struct
AI::Provider::LanguageModel::ToolChoice
- AI::Provider::LanguageModel::ToolChoice
- Struct
- Value
- Object
Overview
Specifies how tools should be selected.
Included Modules
- JSON::Serializable
Defined in:
ai/provider/language_model/types.crConstructors
- .auto : ToolChoice
- .new(pull : JSON::PullParser)
- .new(type : ToolChoiceType, tool_name : String | Nil = nil)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
- .none : ToolChoice
- .required : ToolChoice
- .tool(name : String) : ToolChoice