OpenAI::ChatCompletionTool
Inherits JSON::Serializable < Reference < Object
A function tool that can be used to generate a response.
Constructors
new(pull : JSON::PullParser)
Sourcenew(type_value : ChatCompletionToolType = ChatCompletionToolType::Function, function : FunctionObject = FunctionObject.new)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
function
Sourcefunction=(function : FunctionObject)
Sourcetype_value=(type_value : ChatCompletionToolType)
The type of the tool. Currently, only function is supported.