Class: LiterLlm::Choice

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeChoice

Returns a new instance of Choice.

Parameters:



195
# File 'sig/types.rbs', line 195

def initialize: (?index: Integer, ?message: AssistantMessage, ?finish_reason: FinishReason, ?logprobs: String) -> void

Instance Attribute Details

#finish_reasonFinishReason? (readonly)

Returns the value of attribute finish_reason.

Returns:



192
193
194
# File 'sig/types.rbs', line 192

def finish_reason
  @finish_reason
end

#indexInteger (readonly)

Returns the value of attribute index.

Returns:

  • (Integer)


190
191
192
# File 'sig/types.rbs', line 190

def index
  @index
end

#logprobsString? (readonly)

Returns the value of attribute logprobs.

Returns:

  • (String, nil)


193
194
195
# File 'sig/types.rbs', line 193

def logprobs
  @logprobs
end

#messageAssistantMessage (readonly)

Returns the value of attribute message.

Returns:



191
192
193
# File 'sig/types.rbs', line 191

def message
  @message
end