A11 TypeScript API - v0.7.26
A11 guides
Python API
C++ internals
Preparing search index...
UsageUpdate
Interface UsageUpdate
interface
UsageUpdate
{
contribution
?:
"consumption"
|
"reconciliation"
;
coverage
?:
string
;
covers
?:
string
[]
;
figures
?:
Record
<
string
,
UsageFigure
>
;
id
:
string
;
model
?:
string
;
operation
?:
string
;
producer_id
?:
string
|
null
;
provider
?:
string
;
revision
:
number
;
scope
?:
UsageScope
;
source_id
?:
string
|
null
;
source_usage
?:
Record
<
string
,
unknown
>
|
null
;
type
:
"a11.usage"
;
usage
:
{
cache_write_tokens
?:
number
|
null
;
cached_input_tokens
?:
number
|
null
;
complete
?:
boolean
;
context_invalidated
?:
boolean
;
context_only
?:
boolean
;
context_source
?:
"unknown"
|
"request_estimate"
|
"reported"
|
null
;
context_tokens
?:
number
|
null
;
input_tokens
?:
number
|
null
;
input_tokens_scope
?:
"context"
|
"incremental"
;
output_tokens
?:
number
|
null
;
reasoning_tokens
?:
number
|
null
;
total_tokens
?:
number
|
null
;
usage_id
?:
string
|
null
;
usage_revision
?:
number
;
usage_scope
?:
"request"
|
"turn"
;
[
key
:
string
]:
unknown
;
}
;
version
:
1
;
}
Index
Properties
contribution?
coverage?
covers?
figures?
id
model?
operation?
producer_
id?
provider?
revision
scope?
source_
id?
source_
usage?
type
usage
version
Properties
Optional
contribution
contribution
?:
"consumption"
|
"reconciliation"
Optional
coverage
coverage
?:
string
Optional
covers
covers
?:
string
[]
Optional
figures
figures
?:
Record
<
string
,
UsageFigure
>
id
id
:
string
Optional
model
model
?:
string
Optional
operation
operation
?:
string
Optional
producer_
id
producer_id
?:
string
|
null
Optional
provider
provider
?:
string
revision
revision
:
number
Optional
scope
scope
?:
UsageScope
Optional
source_
id
source_id
?:
string
|
null
Optional
source_
usage
source_usage
?:
Record
<
string
,
unknown
>
|
null
type
type
:
"a11.usage"
usage
usage
:
{
cache_write_tokens
?:
number
|
null
;
cached_input_tokens
?:
number
|
null
;
complete
?:
boolean
;
context_invalidated
?:
boolean
;
context_only
?:
boolean
;
context_source
?:
"unknown"
|
"request_estimate"
|
"reported"
|
null
;
context_tokens
?:
number
|
null
;
input_tokens
?:
number
|
null
;
input_tokens_scope
?:
"context"
|
"incremental"
;
output_tokens
?:
number
|
null
;
reasoning_tokens
?:
number
|
null
;
total_tokens
?:
number
|
null
;
usage_id
?:
string
|
null
;
usage_revision
?:
number
;
usage_scope
?:
"request"
|
"turn"
;
[
key
:
string
]:
unknown
;
}
version
version
:
1
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
contribution
coverage
covers
figures
id
model
operation
producer_
id
provider
revision
scope
source_
id
source_
usage
type
usage
version
A11 guides
Python API
C++ internals
A11 TypeScript API - v0.7.26
Loading...