TokenUsage
Defined in: react/components/agent/usage-meter.tsx:12
Token counts for a turn or a whole session.
Properties
Section titled “Properties”cacheRead?
Section titled “cacheRead?”
optionalcacheRead?:number
Defined in: react/components/agent/usage-meter.tsx:18
Input tokens served from the prompt cache (a cache hit).
cacheWrite?
Section titled “cacheWrite?”
optionalcacheWrite?:number
Defined in: react/components/agent/usage-meter.tsx:20
Input tokens written to the prompt cache (cache creation).
input:
number
Defined in: react/components/agent/usage-meter.tsx:14
Input (prompt) tokens.
output
Section titled “output”output:
number
Defined in: react/components/agent/usage-meter.tsx:16
Output (completion) tokens.