Class: Durable::Llm::Providers::Opencode::OpencodeStreamResponse

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

Overview

Stream response class for OpenCode API

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(parsed) ⇒ OpencodeStreamResponse

Returns a new instance of OpencodeStreamResponse.



198
199
200
# File 'lib/durable/llm/providers/opencode.rb', line 198

def initialize(parsed)
  @choices = OpencodeStreamChoice.new(parsed['choices'])
end

Instance Attribute Details

#choicesObject (readonly)

Returns the value of attribute choices.



196
197
198
# File 'lib/durable/llm/providers/opencode.rb', line 196

def choices
  @choices
end

Instance Method Details

#to_sObject



202
203
204
# File 'lib/durable/llm/providers/opencode.rb', line 202

def to_s
  @choices.to_s
end