Class: Durable::Llm::Providers::Cohere::CohereStreamChoice
- Inherits:
-
Object
- Object
- Durable::Llm::Providers::Cohere::CohereStreamChoice
- Defined in:
- lib/durable/llm/providers/cohere.rb
Instance Attribute Summary collapse
-
#delta ⇒ Object
readonly
Returns the value of attribute delta.
Instance Method Summary collapse
-
#initialize(delta) ⇒ CohereStreamChoice
constructor
A new instance of CohereStreamChoice.
- #to_s ⇒ Object
Constructor Details
#initialize(delta) ⇒ CohereStreamChoice
Returns a new instance of CohereStreamChoice.
202 203 204 |
# File 'lib/durable/llm/providers/cohere.rb', line 202 def initialize(delta) @delta = CohereStreamDelta.new(delta) end |
Instance Attribute Details
#delta ⇒ Object (readonly)
Returns the value of attribute delta.
200 201 202 |
# File 'lib/durable/llm/providers/cohere.rb', line 200 def delta @delta end |
Instance Method Details
#to_s ⇒ Object
206 207 208 |
# File 'lib/durable/llm/providers/cohere.rb', line 206 def to_s @delta.to_s end |