Class: MistralModels::Message
- Inherits:
-
Object
- Object
- MistralModels::Message
- Defined in:
- lib/mistral_rb/response_models.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#role ⇒ Object
readonly
Returns the value of attribute role.
Instance Method Summary collapse
-
#initialize(message_hash) ⇒ Message
constructor
A new instance of Message.
Constructor Details
#initialize(message_hash) ⇒ Message
Returns a new instance of Message.
27 28 29 30 |
# File 'lib/mistral_rb/response_models.rb', line 27 def initialize() @role = ["role"] @content = ["content"] end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
25 26 27 |
# File 'lib/mistral_rb/response_models.rb', line 25 def content @content end |
#role ⇒ Object (readonly)
Returns the value of attribute role.
25 26 27 |
# File 'lib/mistral_rb/response_models.rb', line 25 def role @role end |