class

OpenAI::ChatCompletionFunctions

Inherits JSON::Serializable < Reference < Object

Constructors

new(description : String | Nil = nil, name : String = "", parameters : FunctionParameters | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

description

A description of what the function does, used by the model to choose when and how to call the function.

Source
description=(description : String | Nil)

A description of what the function does, used by the model to choose when and how to call the function.

Source
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.

Source
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.

Source
parameters
Source
parameters=(parameters : FunctionParameters | Nil)
Source