Class: Durable::Llm::Providers::Groq::GroqEmbeddingResponse
- Inherits:
-
Object
- Object
- Durable::Llm::Providers::Groq::GroqEmbeddingResponse
- Defined in:
- lib/durable/llm/providers/groq.rb
Instance Attribute Summary collapse
-
#embedding ⇒ Object
readonly
Returns the value of attribute embedding.
Instance Method Summary collapse
-
#initialize(data) ⇒ GroqEmbeddingResponse
constructor
A new instance of GroqEmbeddingResponse.
- #to_a ⇒ Object
Constructor Details
#initialize(data) ⇒ GroqEmbeddingResponse
Returns a new instance of GroqEmbeddingResponse.
243 244 245 |
# File 'lib/durable/llm/providers/groq.rb', line 243 def initialize(data) = data.dig('data', 0, 'embedding') end |
Instance Attribute Details
#embedding ⇒ Object (readonly)
Returns the value of attribute embedding.
241 242 243 |
# File 'lib/durable/llm/providers/groq.rb', line 241 def end |
Instance Method Details
#to_a ⇒ Object
247 248 249 |
# File 'lib/durable/llm/providers/groq.rb', line 247 def to_a end |