Class: MistralModels::Delta
- Inherits:
-
Object
- Object
- MistralModels::Delta
- 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(delta_hash) ⇒ Delta
constructor
A new instance of Delta.
Constructor Details
#initialize(delta_hash) ⇒ Delta
Returns a new instance of Delta.
101 102 103 104 |
# File 'lib/mistral_rb/response_models.rb', line 101 def initialize(delta_hash) @role = delta_hash["role"] @content = delta_hash["content"] end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
99 100 101 |
# File 'lib/mistral_rb/response_models.rb', line 99 def content @content end |
#role ⇒ Object (readonly)
Returns the value of attribute role.
99 100 101 |
# File 'lib/mistral_rb/response_models.rb', line 99 def role @role end |