Class: Durable::Llm::Providers::Anthropic::AnthropicChoice
- Inherits:
-
Object
- Object
- Durable::Llm::Providers::Anthropic::AnthropicChoice
- Defined in:
- lib/durable/llm/providers/anthropic.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(content) ⇒ AnthropicChoice
constructor
A new instance of AnthropicChoice.
- #to_s ⇒ Object
Constructor Details
#initialize(content) ⇒ AnthropicChoice
Returns a new instance of AnthropicChoice.
106 107 108 |
# File 'lib/durable/llm/providers/anthropic.rb', line 106 def initialize(content) @message = AnthropicMessage.new(content) end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
104 105 106 |
# File 'lib/durable/llm/providers/anthropic.rb', line 104 def @message end |
Instance Method Details
#to_s ⇒ Object
110 111 112 |
# File 'lib/durable/llm/providers/anthropic.rb', line 110 def to_s @message.to_s end |