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:



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

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:



211
212
213
# File 'sig/types.rbs', line 211

def finish_reason
  @finish_reason
end

#indexInteger (readonly)

Returns the value of attribute index.

Returns:

  • (Integer)


209
210
211
# File 'sig/types.rbs', line 209

def index
  @index
end

#logprobsString? (readonly)

Returns the value of attribute logprobs.

Returns:

  • (String, nil)


212
213
214
# File 'sig/types.rbs', line 212

def logprobs
  @logprobs
end

#messageAssistantMessage (readonly)

Returns the value of attribute message.

Returns:



210
211
212
# File 'sig/types.rbs', line 210

def message
  @message
end