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.
1017 |
# File 'sig/types.rbs', line 1017
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.
1014 1015 1016 |
# File 'sig/types.rbs', line 1014 def estimated_cost @estimated_cost end |
#finish_reason ⇒ String?
Returns the value of attribute finish_reason.
1015 1016 1017 |
# File 'sig/types.rbs', line 1015 def finish_reason @finish_reason end |
#input_tokens ⇒ Integer?
Returns the value of attribute input_tokens.
1011 1012 1013 |
# File 'sig/types.rbs', line 1011 def input_tokens @input_tokens end |
#model ⇒ String?
Returns the value of attribute model.
1009 1010 1011 |
# File 'sig/types.rbs', line 1009 def model @model end |
#output_tokens ⇒ Integer?
Returns the value of attribute output_tokens.
1012 1013 1014 |
# File 'sig/types.rbs', line 1012 def output_tokens @output_tokens end |
#source ⇒ String?
Returns the value of attribute source.
1010 1011 1012 |
# File 'sig/types.rbs', line 1010 def source @source end |
#total_tokens ⇒ Integer?
Returns the value of attribute total_tokens.
1013 1014 1015 |
# File 'sig/types.rbs', line 1013 def total_tokens @total_tokens end |