Class: Durable::Llm::Providers::Google::GoogleStreamResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/durable/llm/providers/google.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(parsed) ⇒ GoogleStreamResponse

Returns a new instance of GoogleStreamResponse.



252
253
254
# File 'lib/durable/llm/providers/google.rb', line 252

def initialize(parsed)
  @choices = [GoogleStreamChoice.new(parsed)]
end

Instance Attribute Details

#choicesObject (readonly)

Returns the value of attribute choices.



250
251
252
# File 'lib/durable/llm/providers/google.rb', line 250

def choices
  @choices
end

Instance Method Details

#to_sObject



256
257
258
# File 'lib/durable/llm/providers/google.rb', line 256

def to_s
  @choices.map(&:to_s).join
end