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)


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

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

Instance Attribute Details

#completion_tokensInteger (readonly)

Returns the value of attribute completion_tokens.

Returns:

  • (Integer)


896
897
898
# File 'sig/types.rbs', line 896

def completion_tokens
  @completion_tokens
end

#prompt_tokensInteger (readonly)

Returns the value of attribute prompt_tokens.

Returns:

  • (Integer)


895
896
897
# File 'sig/types.rbs', line 895

def prompt_tokens
  @prompt_tokens
end

#prompt_tokens_detailsPromptTokensDetails? (readonly)

Returns the value of attribute prompt_tokens_details.

Returns:



898
899
900
# File 'sig/types.rbs', line 898

def prompt_tokens_details
  @prompt_tokens_details
end

#total_tokensInteger (readonly)

Returns the value of attribute total_tokens.

Returns:

  • (Integer)


897
898
899
# File 'sig/types.rbs', line 897

def total_tokens
  @total_tokens
end