Class: Durable::Llm::Providers::Cohere::CohereStreamChoice

Inherits:
Object
  • Object
show all
Defined in:
lib/durable/llm/providers/cohere.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#deltaObject (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_sObject



206
207
208
# File 'lib/durable/llm/providers/cohere.rb', line 206

def to_s
  @delta.to_s
end