Class: Durable::Llm::Providers::Opencode::OpencodeStreamResponse
- Inherits:
-
Object
- Object
- Durable::Llm::Providers::Opencode::OpencodeStreamResponse
- Defined in:
- lib/durable/llm/providers/opencode.rb
Overview
Stream response class for OpenCode API
Instance Attribute Summary collapse
-
#choices ⇒ Object
readonly
Returns the value of attribute choices.
Instance Method Summary collapse
-
#initialize(parsed) ⇒ OpencodeStreamResponse
constructor
A new instance of OpencodeStreamResponse.
- #to_s ⇒ Object
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
#choices ⇒ Object (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_s ⇒ Object
202 203 204 |
# File 'lib/durable/llm/providers/opencode.rb', line 202 def to_s @choices.to_s end |