Class: Durable::Llm::Providers::DeepSeek::DeepSeekStreamResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/durable/llm/providers/deepseek.rb

Overview

Stream response wrapper for DeepSeek streaming

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#choicesObject (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_sObject



182
183
184
# File 'lib/durable/llm/providers/deepseek.rb', line 182

def to_s
  @choices.to_s
end