Class: LiterLlm::ResponseUsage

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeResponseUsage

Returns a new instance of ResponseUsage.

Parameters:

  • input_tokens: (Integer)
  • output_tokens: (Integer)
  • total_tokens: (Integer)


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

def initialize: (?input_tokens: Integer, ?output_tokens: Integer, ?total_tokens: Integer) -> void

Instance Attribute Details

#input_tokensInteger?

Returns the value of attribute input_tokens.

Returns:

  • (Integer, nil)


659
660
661
# File 'sig/types.rbs', line 659

def input_tokens
  @input_tokens
end

#output_tokensInteger?

Returns the value of attribute output_tokens.

Returns:

  • (Integer, nil)


660
661
662
# File 'sig/types.rbs', line 660

def output_tokens
  @output_tokens
end

#total_tokensInteger?

Returns the value of attribute total_tokens.

Returns:

  • (Integer, nil)


661
662
663
# File 'sig/types.rbs', line 661

def total_tokens
  @total_tokens
end