Class: Xberg::LlmUsage

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeLlmUsage

Returns a new instance of LlmUsage.

Parameters:

  • model: (String)
  • source: (String)
  • input_tokens: (Integer)
  • output_tokens: (Integer)
  • total_tokens: (Integer)
  • estimated_cost: (Float)
  • finish_reason: (String)


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

def initialize: (?model: String, ?source: String, ?input_tokens: Integer, ?output_tokens: Integer, ?total_tokens: Integer, ?estimated_cost: Float, ?finish_reason: String) -> void

Instance Attribute Details

#estimated_costFloat?

Returns the value of attribute estimated_cost.

Returns:

  • (Float, nil)


945
946
947
# File 'sig/types.rbs', line 945

def estimated_cost
  @estimated_cost
end

#finish_reasonString?

Returns the value of attribute finish_reason.

Returns:

  • (String, nil)


946
947
948
# File 'sig/types.rbs', line 946

def finish_reason
  @finish_reason
end

#input_tokensInteger?

Returns the value of attribute input_tokens.

Returns:

  • (Integer, nil)


942
943
944
# File 'sig/types.rbs', line 942

def input_tokens
  @input_tokens
end

#modelString?

Returns the value of attribute model.

Returns:

  • (String, nil)


940
941
942
# File 'sig/types.rbs', line 940

def model
  @model
end

#output_tokensInteger?

Returns the value of attribute output_tokens.

Returns:

  • (Integer, nil)


943
944
945
# File 'sig/types.rbs', line 943

def output_tokens
  @output_tokens
end

#sourceString?

Returns the value of attribute source.

Returns:

  • (String, nil)


941
942
943
# File 'sig/types.rbs', line 941

def source
  @source
end

#total_tokensInteger?

Returns the value of attribute total_tokens.

Returns:

  • (Integer, nil)


944
945
946
# File 'sig/types.rbs', line 944

def total_tokens
  @total_tokens
end