Class: Durable::Llm::Providers::Google::GoogleStreamDelta

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

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



280
281
282
# File 'lib/durable/llm/providers/google.rb', line 280

def to_s
  @content
end