Class: Durable::Llm::Providers::Fireworks::FireworksStreamResponse

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#choicesObject (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_sObject



247
248
249
# File 'lib/durable/llm/providers/fireworks.rb', line 247

def to_s
  @choices.to_s
end