Class: LiterLlm::Usage
- Inherits:
-
Object
- Object
- LiterLlm::Usage
- Defined in:
- sig/types.rbs
Instance Attribute Summary collapse
-
#completion_tokens ⇒ Integer?
Returns the value of attribute completion_tokens.
-
#prompt_tokens ⇒ Integer?
Returns the value of attribute prompt_tokens.
-
#prompt_tokens_details ⇒ PromptTokensDetails?
Returns the value of attribute prompt_tokens_details.
-
#total_tokens ⇒ Integer?
Returns the value of attribute total_tokens.
Instance Method Summary collapse
-
#initialize ⇒ Usage
constructor
A new instance of Usage.
Constructor Details
#initialize ⇒ Usage
Returns a new instance of Usage.
142 |
# File 'sig/types.rbs', line 142
def initialize: (?prompt_tokens: Integer, ?completion_tokens: Integer, ?total_tokens: Integer, ?prompt_tokens_details: PromptTokensDetails) -> void
|
Instance Attribute Details
#completion_tokens ⇒ Integer?
Returns the value of attribute completion_tokens.
138 139 140 |
# File 'sig/types.rbs', line 138 def completion_tokens @completion_tokens end |
#prompt_tokens ⇒ Integer?
Returns the value of attribute prompt_tokens.
137 138 139 |
# File 'sig/types.rbs', line 137 def prompt_tokens @prompt_tokens end |
#prompt_tokens_details ⇒ PromptTokensDetails?
Returns the value of attribute prompt_tokens_details.
140 141 142 |
# File 'sig/types.rbs', line 140 def prompt_tokens_details @prompt_tokens_details end |
#total_tokens ⇒ Integer?
Returns the value of attribute total_tokens.
139 140 141 |
# File 'sig/types.rbs', line 139 def total_tokens @total_tokens end |