struct Turquoise::Eloquent::Chat::Completion::Message

Included Modules

Defined in:

turquoise/eloquent/api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(role : Turquoise::Eloquent::Chat::Completion::Message::Role, content : String = "", photo : File | String | Nil = nil) #

[View source]

Instance Method Detail

def content : String #

[View source]
def content=(content : String) #

[View source]
def escape_md #

[View source]
def photo : String | File | Nil #

[View source]
def photo=(photo : String | File | Nil) #

[View source]
def role : Role #

[View source]
def role=(role : Role) #

[View source]
def to_s #
Description copied from class Object

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.


[View source]