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.
987 |
# File 'sig/types.rbs', line 987
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.
984 985 986 |
# File 'sig/types.rbs', line 984 def estimated_cost @estimated_cost end |
#finish_reason ⇒ String?
Returns the value of attribute finish_reason.
985 986 987 |
# File 'sig/types.rbs', line 985 def finish_reason @finish_reason end |
#input_tokens ⇒ Integer?
Returns the value of attribute input_tokens.
981 982 983 |
# File 'sig/types.rbs', line 981 def input_tokens @input_tokens end |
#model ⇒ String?
Returns the value of attribute model.
979 980 981 |
# File 'sig/types.rbs', line 979 def model @model end |
#output_tokens ⇒ Integer?
Returns the value of attribute output_tokens.
982 983 984 |
# File 'sig/types.rbs', line 982 def output_tokens @output_tokens end |
#source ⇒ String?
Returns the value of attribute source.
980 981 982 |
# File 'sig/types.rbs', line 980 def source @source end |
#total_tokens ⇒ Integer?
Returns the value of attribute total_tokens.
983 984 985 |
# File 'sig/types.rbs', line 983 def total_tokens @total_tokens end |