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.
214 |
# File 'sig/types.rbs', line 214
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.
211 212 213 |
# File 'sig/types.rbs', line 211 def finish_reason @finish_reason end |
#index ⇒ Integer (readonly)
Returns the value of attribute index.
209 210 211 |
# File 'sig/types.rbs', line 209 def index @index end |
#logprobs ⇒ String? (readonly)
Returns the value of attribute logprobs.
212 213 214 |
# File 'sig/types.rbs', line 212 def logprobs @logprobs end |
#message ⇒ AssistantMessage (readonly)
Returns the value of attribute message.
210 211 212 |
# File 'sig/types.rbs', line 210 def @message end |