Class: MistralModels::Delta

Inherits:
Object
  • Object
show all
Defined in:
lib/mistral_rb/response_models.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contentObject (readonly)

Returns the value of attribute content.



99
100
101
# File 'lib/mistral_rb/response_models.rb', line 99

def content
  @content
end

#roleObject (readonly)

Returns the value of attribute role.



99
100
101
# File 'lib/mistral_rb/response_models.rb', line 99

def role
  @role
end