Class: Durable::Llm::Providers::Together::TogetherStreamResponse
- Inherits:
-
Object
- Object
- Durable::Llm::Providers::Together::TogetherStreamResponse
- Defined in:
- lib/durable/llm/providers/together.rb
Overview
Response class for streaming Together API responses.
Instance Attribute Summary collapse
-
#choices ⇒ Object
readonly
Returns the value of attribute choices.
Instance Method Summary collapse
-
#initialize(parsed) ⇒ TogetherStreamResponse
constructor
Initializes the stream response.
-
#to_s ⇒ String
Converts to string.
Constructor Details
#initialize(parsed) ⇒ TogetherStreamResponse
Initializes the stream response.
270 271 272 |
# File 'lib/durable/llm/providers/together.rb', line 270 def initialize(parsed) @choices = TogetherStreamChoice.new(parsed['choices']) end |
Instance Attribute Details
#choices ⇒ Object (readonly)
Returns the value of attribute choices.
265 266 267 |
# File 'lib/durable/llm/providers/together.rb', line 265 def choices @choices end |
Instance Method Details
#to_s ⇒ String
Converts to string.
277 278 279 |
# File 'lib/durable/llm/providers/together.rb', line 277 def to_s @choices.to_s end |