struct Turquoise::Eloquent::Chat::Completion::Message
- Turquoise::Eloquent::Chat::Completion::Message
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
Defined in:
turquoise/eloquent/api.crConstructors
- .new(pull : JSON::PullParser)
- .new(role : Turquoise::Eloquent::Chat::Completion::Message::Role, content : String = "", photo : File | String | Nil = nil)
Instance Method Summary
- #content : String
- #content=(content : String)
- #escape_md
- #photo : String | File | Nil
- #photo=(photo : String | File | Nil)
- #role : Role
- #role=(role : Role)
-
#to_s
Returns a nicely readable and concise string representation of this object, typically intended for users.
Constructor Detail
def self.new(role : Turquoise::Eloquent::Chat::Completion::Message::Role, content : String = "", photo : File | String | Nil = nil)
#
Instance Method Detail
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
.