Class: Durable::Llm::Providers::Google::GoogleStreamDelta
- Inherits:
-
Object
- Object
- Durable::Llm::Providers::Google::GoogleStreamDelta
- Defined in:
- lib/durable/llm/providers/google.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
Instance Method Summary collapse
-
#initialize(part) ⇒ GoogleStreamDelta
constructor
A new instance of GoogleStreamDelta.
- #to_s ⇒ Object
Constructor Details
#initialize(part) ⇒ GoogleStreamDelta
Returns a new instance of GoogleStreamDelta.
276 277 278 |
# File 'lib/durable/llm/providers/google.rb', line 276 def initialize(part) @content = part&.dig('text') || '' end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
274 275 276 |
# File 'lib/durable/llm/providers/google.rb', line 274 def content @content end |
Instance Method Details
#to_s ⇒ Object
280 281 282 |
# File 'lib/durable/llm/providers/google.rb', line 280 def to_s @content end |