class

OpenAI::ChatCompletionRequestFunctionMessage

Inherits JSON::Serializable < Reference < Object

Constructors

new(role : ChatCompletionRequestFunctionMessageRole = ChatCompletionRequestFunctionMessageRole::Function, content : ChatCompletionRequestFunctionMessageContent = nil, name : String = "")
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

content
Source
content=(content : ChatCompletionRequestFunctionMessageContent)
Source
name

The name of the function to call.

Source
name=(name : String)

The name of the function to call.

Source
role

The role of the messages author, in this case function.

Source
role=(role : ChatCompletionRequestFunctionMessageRole)

The role of the messages author, in this case function.

Source