Class: Durable::Llm::Providers::Cohere::CohereStreamDelta
- Inherits:
-
Object
- Object
- Durable::Llm::Providers::Cohere::CohereStreamDelta
- Defined in:
- lib/durable/llm/providers/cohere.rb
Instance Attribute Summary collapse
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(delta) ⇒ CohereStreamDelta
constructor
A new instance of CohereStreamDelta.
- #to_s ⇒ Object
Constructor Details
#initialize(delta) ⇒ CohereStreamDelta
Returns a new instance of CohereStreamDelta.
214 215 216 |
# File 'lib/durable/llm/providers/cohere.rb', line 214 def initialize(delta) @text = delta['text'] end |
Instance Attribute Details
#text ⇒ Object (readonly)
Returns the value of attribute text.
212 213 214 |
# File 'lib/durable/llm/providers/cohere.rb', line 212 def text @text end |
Instance Method Details
#to_s ⇒ Object
218 219 220 |
# File 'lib/durable/llm/providers/cohere.rb', line 218 def to_s @text || '' end |