Class: Durable::Llm::Providers::Google::GoogleStreamResponse
- Inherits:
-
Object
- Object
- Durable::Llm::Providers::Google::GoogleStreamResponse
- Defined in:
- lib/durable/llm/providers/google.rb
Instance Attribute Summary collapse
-
#choices ⇒ Object
readonly
Returns the value of attribute choices.
Instance Method Summary collapse
-
#initialize(parsed) ⇒ GoogleStreamResponse
constructor
A new instance of GoogleStreamResponse.
- #to_s ⇒ Object
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
#choices ⇒ Object (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_s ⇒ Object
256 257 258 |
# File 'lib/durable/llm/providers/google.rb', line 256 def to_s @choices.map(&:to_s).join end |