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.
959 |
# File 'sig/types.rbs', line 959
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.
956 957 958 |
# File 'sig/types.rbs', line 956 def estimated_cost @estimated_cost end |
#finish_reason ⇒ String?
Returns the value of attribute finish_reason.
957 958 959 |
# File 'sig/types.rbs', line 957 def finish_reason @finish_reason end |
#input_tokens ⇒ Integer?
Returns the value of attribute input_tokens.
953 954 955 |
# File 'sig/types.rbs', line 953 def input_tokens @input_tokens end |
#model ⇒ String?
Returns the value of attribute model.
951 952 953 |
# File 'sig/types.rbs', line 951 def model @model end |
#output_tokens ⇒ Integer?
Returns the value of attribute output_tokens.
954 955 956 |
# File 'sig/types.rbs', line 954 def output_tokens @output_tokens end |
#source ⇒ String?
Returns the value of attribute source.
952 953 954 |
# File 'sig/types.rbs', line 952 def source @source end |
#total_tokens ⇒ Integer?
Returns the value of attribute total_tokens.
955 956 957 |
# File 'sig/types.rbs', line 955 def total_tokens @total_tokens end |