Class: Durable::Llm::Providers::Fireworks::FireworksStreamDelta
- Inherits:
-
Object
- Object
- Durable::Llm::Providers::Fireworks::FireworksStreamDelta
- Defined in:
- lib/durable/llm/providers/fireworks.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) ⇒ FireworksStreamDelta
constructor
A new instance of FireworksStreamDelta.
- #to_s ⇒ Object
Constructor Details
#initialize(delta) ⇒ FireworksStreamDelta
Returns a new instance of FireworksStreamDelta.
264 265 266 267 |
# File 'lib/durable/llm/providers/fireworks.rb', line 264 def initialize(delta) @role = delta['role'] @content = delta['content'] end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
262 263 264 |
# File 'lib/durable/llm/providers/fireworks.rb', line 262 def content @content end |
#role ⇒ Object (readonly)
Returns the value of attribute role.
262 263 264 |
# File 'lib/durable/llm/providers/fireworks.rb', line 262 def role @role end |
Instance Method Details
#to_s ⇒ Object
269 270 271 |
# File 'lib/durable/llm/providers/fireworks.rb', line 269 def to_s @content || '' end |