Class: Durable::Llm::Providers::Huggingface::HuggingfaceEmbeddingResponse
- Inherits:
-
Object
- Object
- Durable::Llm::Providers::Huggingface::HuggingfaceEmbeddingResponse
- Defined in:
- lib/durable/llm/providers/huggingface.rb
Overview
Response wrapper for Hugging Face embedding API responses.
Instance Attribute Summary collapse
-
#embedding ⇒ Object
readonly
Returns the value of attribute embedding.
Instance Method Summary collapse
-
#initialize(data) ⇒ HuggingfaceEmbeddingResponse
constructor
A new instance of HuggingfaceEmbeddingResponse.
- #to_a ⇒ Object
Constructor Details
#initialize(data) ⇒ HuggingfaceEmbeddingResponse
Returns a new instance of HuggingfaceEmbeddingResponse.
158 159 160 |
# File 'lib/durable/llm/providers/huggingface.rb', line 158 def initialize(data) = data end |
Instance Attribute Details
#embedding ⇒ Object (readonly)
Returns the value of attribute embedding.
156 157 158 |
# File 'lib/durable/llm/providers/huggingface.rb', line 156 def end |
Instance Method Details
#to_a ⇒ Object
162 163 164 |
# File 'lib/durable/llm/providers/huggingface.rb', line 162 def to_a end |