struct OpenAI::Message

Overview

Typically, a conversation is formatted with a system message first, followed by alternating user and assistant messages.

Included Modules

Extended Modules

Defined in:

open_ai/models/chat_completion.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(role : Role, content : String) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def content : String #

[View source]
def role : Role #

[View source]