Class: Durable::Llm::Providers::Anthropic::AnthropicChoice

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#messageObject (readonly)

Returns the value of attribute message.



104
105
106
# File 'lib/durable/llm/providers/anthropic.rb', line 104

def message
  @message
end

Instance Method Details

#to_sObject



110
111
112
# File 'lib/durable/llm/providers/anthropic.rb', line 110

def to_s
  @message.to_s
end