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)


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

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)


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

def completion_tokens
  @completion_tokens
end

#prompt_tokensInteger?

Returns the value of attribute prompt_tokens.

Returns:

  • (Integer, nil)


137
138
139
# File 'sig/types.rbs', line 137

def prompt_tokens
  @prompt_tokens
end

#prompt_tokens_detailsPromptTokensDetails?

Returns the value of attribute prompt_tokens_details.

Returns:



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

def prompt_tokens_details
  @prompt_tokens_details
end

#total_tokensInteger?

Returns the value of attribute total_tokens.

Returns:

  • (Integer, nil)


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

def total_tokens
  @total_tokens
end