Class: Durable::Llm::Providers::Opencode::OpencodeEmbeddingResponse
- Inherits:
-
Object
- Object
- Durable::Llm::Providers::Opencode::OpencodeEmbeddingResponse
- Defined in:
- lib/durable/llm/providers/opencode.rb
Overview
Embedding response class for OpenCode API
Instance Attribute Summary collapse
-
#embedding ⇒ Object
readonly
Returns the value of attribute embedding.
Instance Method Summary collapse
-
#initialize(data) ⇒ OpencodeEmbeddingResponse
constructor
A new instance of OpencodeEmbeddingResponse.
- #to_a ⇒ Object
Constructor Details
#initialize(data) ⇒ OpencodeEmbeddingResponse
Returns a new instance of OpencodeEmbeddingResponse.
211 212 213 |
# File 'lib/durable/llm/providers/opencode.rb', line 211 def initialize(data) = data.dig('data', 0, 'embedding') end |
Instance Attribute Details
#embedding ⇒ Object (readonly)
Returns the value of attribute embedding.
209 210 211 |
# File 'lib/durable/llm/providers/opencode.rb', line 209 def end |
Instance Method Details
#to_a ⇒ Object
215 216 217 |
# File 'lib/durable/llm/providers/opencode.rb', line 215 def to_a end |