Class: Durable::Llm::Providers::Anthropic::AnthropicStreamChoice

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(delta) ⇒ AnthropicStreamChoice

Returns a new instance of AnthropicStreamChoice.



144
145
146
# File 'lib/durable/llm/providers/anthropic.rb', line 144

def initialize(delta)
  @delta = AnthropicStreamDelta.new(delta)
end

Instance Attribute Details

#deltaObject (readonly)

Returns the value of attribute delta.



142
143
144
# File 'lib/durable/llm/providers/anthropic.rb', line 142

def delta
  @delta
end

Instance Method Details

#to_sObject



148
149
150
# File 'lib/durable/llm/providers/anthropic.rb', line 148

def to_s
  @delta.to_s
end