Class: Durable::Llm::Providers::Fireworks::FireworksStreamResponse
- Inherits:
-
Object
- Object
- Durable::Llm::Providers::Fireworks::FireworksStreamResponse
- Defined in:
- lib/durable/llm/providers/fireworks.rb
Overview
Response object for streaming Fireworks chat chunks.
Wraps individual chunks from the Server-Sent Events stream.
Instance Attribute Summary collapse
-
#choices ⇒ Object
readonly
Returns the value of attribute choices.
Instance Method Summary collapse
-
#initialize(parsed) ⇒ FireworksStreamResponse
constructor
A new instance of FireworksStreamResponse.
- #to_s ⇒ Object
Constructor Details
#initialize(parsed) ⇒ FireworksStreamResponse
Returns a new instance of FireworksStreamResponse.
243 244 245 |
# File 'lib/durable/llm/providers/fireworks.rb', line 243 def initialize(parsed) @choices = FireworksStreamChoice.new(parsed['choices']) end |
Instance Attribute Details
#choices ⇒ Object (readonly)
Returns the value of attribute choices.
241 242 243 |
# File 'lib/durable/llm/providers/fireworks.rb', line 241 def choices @choices end |
Instance Method Details
#to_s ⇒ Object
247 248 249 |
# File 'lib/durable/llm/providers/fireworks.rb', line 247 def to_s @choices.to_s end |