Class: LiterLlm::Choice
- Inherits:
-
Object
- Object
- LiterLlm::Choice
- Defined in:
- sig/types.rbs
Instance Attribute Summary collapse
-
#finish_reason ⇒ FinishReason?
readonly
Returns the value of attribute finish_reason.
-
#index ⇒ Integer
readonly
Returns the value of attribute index.
-
#logprobs ⇒ String?
readonly
Returns the value of attribute logprobs.
-
#message ⇒ AssistantMessage
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize ⇒ Choice
constructor
A new instance of Choice.
Constructor Details
#initialize ⇒ Choice
Returns a new instance of Choice.
195 |
# File 'sig/types.rbs', line 195
def initialize: (?index: Integer, ?message: AssistantMessage, ?finish_reason: FinishReason, ?logprobs: String) -> void
|
Instance Attribute Details
#finish_reason ⇒ FinishReason? (readonly)
Returns the value of attribute finish_reason.
192 193 194 |
# File 'sig/types.rbs', line 192 def finish_reason @finish_reason end |
#index ⇒ Integer (readonly)
Returns the value of attribute index.
190 191 192 |
# File 'sig/types.rbs', line 190 def index @index end |
#logprobs ⇒ String? (readonly)
Returns the value of attribute logprobs.
193 194 195 |
# File 'sig/types.rbs', line 193 def logprobs @logprobs end |
#message ⇒ AssistantMessage (readonly)
Returns the value of attribute message.
191 192 193 |
# File 'sig/types.rbs', line 191 def @message end |