class

OpenAI::ChatCompletionAllowedToolsChoice

Inherits JSON::Serializable < Reference < Object

Constrains the tools available to the model to a pre-defined set.

Constructors

new(type_value : ChatCompletionAllowedToolsChoiceType = ChatCompletionAllowedToolsChoiceType::AllowedTools, allowed_tools : ChatCompletionAllowedTools = ChatCompletionAllowedTools.new)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

allowed_tools
Source
allowed_tools=(allowed_tools : ChatCompletionAllowedTools)
Source
type_value

Allowed tool configuration type. Always allowed_tools.

Source
type_value=(type_value : ChatCompletionAllowedToolsChoiceType)

Allowed tool configuration type. Always allowed_tools.

Source