Class: Durable::Llm::Providers::Fireworks::FireworksChoice

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(choice) ⇒ FireworksChoice

Returns a new instance of FireworksChoice.



200
201
202
203
# File 'lib/durable/llm/providers/fireworks.rb', line 200

def initialize(choice)
  @message = FireworksMessage.new(choice['message'])
  @finish_reason = choice['finish_reason']
end

Instance Attribute Details

#finish_reasonObject (readonly)

Returns the value of attribute finish_reason.



198
199
200
# File 'lib/durable/llm/providers/fireworks.rb', line 198

def finish_reason
  @finish_reason
end

#messageObject (readonly)

Returns the value of attribute message.



198
199
200
# File 'lib/durable/llm/providers/fireworks.rb', line 198

def message
  @message
end

Instance Method Details

#to_sObject



205
206
207
# File 'lib/durable/llm/providers/fireworks.rb', line 205

def to_s
  @message.to_s
end