Class: Durable::Llm::Providers::Anthropic::AnthropicStreamChoice
- Inherits:
-
Object
- Object
- Durable::Llm::Providers::Anthropic::AnthropicStreamChoice
- Defined in:
- lib/durable/llm/providers/anthropic.rb
Instance Attribute Summary collapse
-
#delta ⇒ Object
readonly
Returns the value of attribute delta.
Instance Method Summary collapse
-
#initialize(delta) ⇒ AnthropicStreamChoice
constructor
A new instance of AnthropicStreamChoice.
- #to_s ⇒ Object
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
#delta ⇒ Object (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_s ⇒ Object
148 149 150 |
# File 'lib/durable/llm/providers/anthropic.rb', line 148 def to_s @delta.to_s end |