OpenAI::ChatCompletionFunctions
Inherits JSON::Serializable < Reference < Object
Constructors
new(pull : JSON::PullParser)
Sourcenew(description : String | Nil = nil, name : String = "", parameters : FunctionParameters | Nil = nil)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
description
A description of what the function does, used by the model to choose when and how to call the function.
A description of what the function does, used by the model to choose when and how to call the function.
name
The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
name=(name : String)
The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
parameters
Sourceparameters=(parameters : FunctionParameters | Nil)
Source