Class: Durable::Llm::Providers::DeepSeek::DeepSeekStreamResponse
- Inherits:
-
Object
- Object
- Durable::Llm::Providers::DeepSeek::DeepSeekStreamResponse
- Defined in:
- lib/durable/llm/providers/deepseek.rb
Overview
Stream response wrapper for DeepSeek streaming
Instance Attribute Summary collapse
-
#choices ⇒ Object
readonly
Returns the value of attribute choices.
Instance Method Summary collapse
-
#initialize(parsed) ⇒ DeepSeekStreamResponse
constructor
A new instance of DeepSeekStreamResponse.
- #to_s ⇒ Object
Constructor Details
#initialize(parsed) ⇒ DeepSeekStreamResponse
Returns a new instance of DeepSeekStreamResponse.
178 179 180 |
# File 'lib/durable/llm/providers/deepseek.rb', line 178 def initialize(parsed) @choices = DeepSeekStreamChoice.new(parsed['choices']) end |
Instance Attribute Details
#choices ⇒ Object (readonly)
Returns the value of attribute choices.
176 177 178 |
# File 'lib/durable/llm/providers/deepseek.rb', line 176 def choices @choices end |
Instance Method Details
#to_s ⇒ Object
182 183 184 |
# File 'lib/durable/llm/providers/deepseek.rb', line 182 def to_s @choices.to_s end |