OpenAI::ChatCompletionMessageToolCall
Inherits JSON::Serializable < Reference < Object
A call to a function tool created by the model.
Constructors
new(pull : JSON::PullParser)
Sourcenew(id : String = "", type_value : ChatCompletionMessageToolCallType = ChatCompletionMessageToolCallType::Function, function : ChatCompletionMessageToolCallFunction = ChatCompletionMessageToolCallFunction.new)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
function=(function : ChatCompletionMessageToolCallFunction)
The function that the model called.
type_value=(type_value : ChatCompletionMessageToolCallType)
The type of the tool. Currently, only function is supported.