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)


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

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? (readonly)

Returns the value of attribute estimated_cost.

Returns:

  • (Float, nil)


1551
1552
1553
# File 'sig/types.rbs', line 1551

def estimated_cost
  @estimated_cost
end

#finish_reasonString? (readonly)

Returns the value of attribute finish_reason.

Returns:

  • (String, nil)


1552
1553
1554
# File 'sig/types.rbs', line 1552

def finish_reason
  @finish_reason
end

#input_tokensInteger? (readonly)

Returns the value of attribute input_tokens.

Returns:

  • (Integer, nil)


1548
1549
1550
# File 'sig/types.rbs', line 1548

def input_tokens
  @input_tokens
end

#modelString (readonly)

Returns the value of attribute model.

Returns:

  • (String)


1546
1547
1548
# File 'sig/types.rbs', line 1546

def model
  @model
end

#output_tokensInteger? (readonly)

Returns the value of attribute output_tokens.

Returns:

  • (Integer, nil)


1549
1550
1551
# File 'sig/types.rbs', line 1549

def output_tokens
  @output_tokens
end

#sourceString (readonly)

Returns the value of attribute source.

Returns:

  • (String)


1547
1548
1549
# File 'sig/types.rbs', line 1547

def source
  @source
end

#total_tokensInteger? (readonly)

Returns the value of attribute total_tokens.

Returns:

  • (Integer, nil)


1550
1551
1552
# File 'sig/types.rbs', line 1550

def total_tokens
  @total_tokens
end