AutoTweaker API
Toggle table of contents
0.1.0-alpha.35+c07218c5
common
Target filter
common
Switch theme
Search in API
Skip to content
AutoTweaker API
AutoTweaker API
/
io.github.autotweaker.api.types.llm
/
Usage
Usage
@
Serializable
data
class
Usage
(
val
promptTokens
:
Int
,
val
completionTokens
:
Int
,
val
reasoningTokens
:
Int
?
=
null
,
val
cacheHitTokens
:
Int
?
=
null
,
val
imageTokens
:
Int
?
=
null
)
(
source
)
Members
Constructors
Usage
Link copied to clipboard
constructor
(
promptTokens
:
Int
,
completionTokens
:
Int
,
reasoningTokens
:
Int
?
=
null
,
cacheHitTokens
:
Int
?
=
null
,
imageTokens
:
Int
?
=
null
)
Types
Companion
Link copied to clipboard
object
Companion
Properties
cache
Hit
Tokens
Link copied to clipboard
val
cacheHitTokens
:
Int
?
cache
Miss
Tokens
Link copied to clipboard
val
cacheMissTokens
:
Int
completion
Tokens
Link copied to clipboard
val
completionTokens
:
Int
image
Tokens
Link copied to clipboard
val
imageTokens
:
Int
?
prompt
Tokens
Link copied to clipboard
val
promptTokens
:
Int
reasoning
Tokens
Link copied to clipboard
val
reasoningTokens
:
Int
?
total
Tokens
Link copied to clipboard
val
totalTokens
:
Int
Functions
plus
Link copied to clipboard
operator
fun
plus
(
other
:
Usage
)
:
Usage