Class: Durable::Llm::Providers::Google::GoogleMessage

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) ⇒ GoogleMessage

Returns a new instance of GoogleMessage.



240
241
242
# File 'lib/durable/llm/providers/google.rb', line 240

def initialize(part)
  @content = part&.dig('text') || ''
end

Instance Attribute Details

#contentObject (readonly)

Returns the value of attribute content.



238
239
240
# File 'lib/durable/llm/providers/google.rb', line 238

def content
  @content
end

Instance Method Details

#to_sObject



244
245
246
# File 'lib/durable/llm/providers/google.rb', line 244

def to_s
  @content
end