Class: Durable::Llm::Providers::Groq::GroqStreamResponse
- Inherits:
-
Object
- Object
- Durable::Llm::Providers::Groq::GroqStreamResponse
- Defined in:
- lib/durable/llm/providers/groq.rb
Overview
Response object for streaming Groq chat chunks.
Wraps individual chunks from the Server-Sent Events stream.
Instance Attribute Summary collapse
-
#choices ⇒ Object
readonly
Returns the value of attribute choices.
Instance Method Summary collapse
-
#initialize(parsed) ⇒ GroqStreamResponse
constructor
A new instance of GroqStreamResponse.
- #to_s ⇒ Object
Constructor Details
#initialize(parsed) ⇒ GroqStreamResponse
Returns a new instance of GroqStreamResponse.
221 222 223 |
# File 'lib/durable/llm/providers/groq.rb', line 221 def initialize(parsed) @choices = GroqStreamChoice.new(parsed['choices']) end |
Instance Attribute Details
#choices ⇒ Object (readonly)
Returns the value of attribute choices.
219 220 221 |
# File 'lib/durable/llm/providers/groq.rb', line 219 def choices @choices end |
Instance Method Details
#to_s ⇒ Object
225 226 227 |
# File 'lib/durable/llm/providers/groq.rb', line 225 def to_s @choices.to_s end |