Class: Xberg::LlmUsage
- Inherits:
-
Object
- Object
- Xberg::LlmUsage
- Defined in:
- sig/types.rbs
Instance Attribute Summary collapse
-
#estimated_cost ⇒ Float?
Returns the value of attribute estimated_cost.
-
#finish_reason ⇒ String?
Returns the value of attribute finish_reason.
-
#input_tokens ⇒ Integer?
Returns the value of attribute input_tokens.
-
#model ⇒ String?
Returns the value of attribute model.
-
#output_tokens ⇒ Integer?
Returns the value of attribute output_tokens.
-
#source ⇒ String?
Returns the value of attribute source.
-
#total_tokens ⇒ Integer?
Returns the value of attribute total_tokens.
Instance Method Summary collapse
-
#initialize ⇒ LlmUsage
constructor
A new instance of LlmUsage.
Constructor Details
#initialize ⇒ LlmUsage
Returns a new instance of LlmUsage.
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_cost ⇒ Float?
Returns the value of attribute estimated_cost.
945 946 947 |
# File 'sig/types.rbs', line 945 def estimated_cost @estimated_cost end |
#finish_reason ⇒ String?
Returns the value of attribute finish_reason.
946 947 948 |
# File 'sig/types.rbs', line 946 def finish_reason @finish_reason end |
#input_tokens ⇒ Integer?
Returns the value of attribute input_tokens.
942 943 944 |
# File 'sig/types.rbs', line 942 def input_tokens @input_tokens end |
#model ⇒ String?
Returns the value of attribute model.
940 941 942 |
# File 'sig/types.rbs', line 940 def model @model end |
#output_tokens ⇒ Integer?
Returns the value of attribute output_tokens.
943 944 945 |
# File 'sig/types.rbs', line 943 def output_tokens @output_tokens end |
#source ⇒ String?
Returns the value of attribute source.
941 942 943 |
# File 'sig/types.rbs', line 941 def source @source end |
#total_tokens ⇒ Integer?
Returns the value of attribute total_tokens.
944 945 946 |
# File 'sig/types.rbs', line 944 def total_tokens @total_tokens end |