Class: Durable::Llm::Providers::Fireworks::FireworksChoice
- Inherits:
-
Object
- Object
- Durable::Llm::Providers::Fireworks::FireworksChoice
- Defined in:
- lib/durable/llm/providers/fireworks.rb
Instance Attribute Summary collapse
-
#finish_reason ⇒ Object
readonly
Returns the value of attribute finish_reason.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(choice) ⇒ FireworksChoice
constructor
A new instance of FireworksChoice.
- #to_s ⇒ Object
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) = FireworksMessage.new(choice['message']) @finish_reason = choice['finish_reason'] end |
Instance Attribute Details
#finish_reason ⇒ Object (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 |
#message ⇒ Object (readonly)
Returns the value of attribute message.
198 199 200 |
# File 'lib/durable/llm/providers/fireworks.rb', line 198 def end |
Instance Method Details
#to_s ⇒ Object
205 206 207 |
# File 'lib/durable/llm/providers/fireworks.rb', line 205 def to_s .to_s end |