Class: LiterLlm::Usage

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeUsage

Returns a new instance of Usage.

Parameters:

  • prompt_tokens: (Integer)
  • completion_tokens: (Integer)
  • total_tokens: (Integer)
  • prompt_tokens_details: (PromptTokensDetails)


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

def initialize: (?prompt_tokens: Integer, ?completion_tokens: Integer, ?total_tokens: Integer, ?prompt_tokens_details: PromptTokensDetails) -> void

Instance Attribute Details

#completion_tokensInteger?

Returns the value of attribute completion_tokens.

Returns:

  • (Integer, nil)


140
141
142
# File 'sig/types.rbs', line 140

def completion_tokens
  @completion_tokens
end

#prompt_tokensInteger?

Returns the value of attribute prompt_tokens.

Returns:

  • (Integer, nil)


139
140
141
# File 'sig/types.rbs', line 139

def prompt_tokens
  @prompt_tokens
end

#prompt_tokens_detailsPromptTokensDetails?

Returns the value of attribute prompt_tokens_details.

Returns:



142
143
144
# File 'sig/types.rbs', line 142

def prompt_tokens_details
  @prompt_tokens_details
end

#total_tokensInteger?

Returns the value of attribute total_tokens.

Returns:

  • (Integer, nil)


141
142
143
# File 'sig/types.rbs', line 141

def total_tokens
  @total_tokens
end