Class: Durable::Llm::Providers::Google::GoogleChoice
- Inherits:
-
Object
- Object
- Durable::Llm::Providers::Google::GoogleChoice
- Defined in:
- lib/durable/llm/providers/google.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(candidate) ⇒ GoogleChoice
constructor
A new instance of GoogleChoice.
- #to_s ⇒ Object
Constructor Details
#initialize(candidate) ⇒ GoogleChoice
Returns a new instance of GoogleChoice.
228 229 230 |
# File 'lib/durable/llm/providers/google.rb', line 228 def initialize(candidate) = GoogleMessage.new(candidate&.dig('content', 'parts')&.first) end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
226 227 228 |
# File 'lib/durable/llm/providers/google.rb', line 226 def end |
Instance Method Details
#to_s ⇒ Object
232 233 234 |
# File 'lib/durable/llm/providers/google.rb', line 232 def to_s .to_s end |