Class: Durable::Llm::Providers::Google::GoogleEmbeddingResponse
- Inherits:
-
Object
- Object
- Durable::Llm::Providers::Google::GoogleEmbeddingResponse
- Defined in:
- lib/durable/llm/providers/google.rb
Instance Attribute Summary collapse
-
#embedding ⇒ Object
readonly
Returns the value of attribute embedding.
Instance Method Summary collapse
-
#initialize(data) ⇒ GoogleEmbeddingResponse
constructor
A new instance of GoogleEmbeddingResponse.
- #to_a ⇒ Object
Constructor Details
#initialize(data) ⇒ GoogleEmbeddingResponse
Returns a new instance of GoogleEmbeddingResponse.
288 289 290 |
# File 'lib/durable/llm/providers/google.rb', line 288 def initialize(data) @embedding = data.dig('embedding', 'values') end |
Instance Attribute Details
#embedding ⇒ Object (readonly)
Returns the value of attribute embedding.
286 287 288 |
# File 'lib/durable/llm/providers/google.rb', line 286 def @embedding end |
Instance Method Details
#to_a ⇒ Object
292 293 294 |
# File 'lib/durable/llm/providers/google.rb', line 292 def to_a @embedding end |