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:



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

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

Instance Attribute Details

#finish_reasonFinishReason?

Returns the value of attribute finish_reason.

Returns:



200
201
202
# File 'sig/types.rbs', line 200

def finish_reason
  @finish_reason
end

#indexInteger?

Returns the value of attribute index.

Returns:

  • (Integer, nil)


198
199
200
# File 'sig/types.rbs', line 198

def index
  @index
end

#messageAssistantMessage?

Returns the value of attribute message.

Returns:



199
200
201
# File 'sig/types.rbs', line 199

def message
  @message
end