Usage
Base classes¶
| Name | Children | Inherits |
|---|---|---|
| AnnotatedObject aclientp.schema.v2.base A v2 object with the ``_meta`` extension point. |
⋔ Inheritance diagram¶
graph TD
95970868362592["common.Usage"]
95970868359040["base.AnnotatedObject"]
95970855946400["base.Schema"]
95970851503232["main.BaseModel"]
125067848591872["builtins.object"]
95970868359040 --> 95970868362592
95970855946400 --> 95970868359040
95970851503232 --> 95970855946400
125067848591872 --> 95970851503232
🛈 DocStrings¶
Bases: AnnotatedObject
UNSTABLE: Token usage of the foreground work that just completed (not cumulative).
Source code in src/aclientp/schema/v2/common.py
cached_read_tokens
class-attribute
instance-attribute
¶
Cache read tokens, if reported.
cached_write_tokens
class-attribute
instance-attribute
¶
Cache write tokens, if reported.
thought_tokens
class-attribute
instance-attribute
¶
Thought/reasoning tokens, if reported.
total_tokens
class-attribute
instance-attribute
¶
Sum of all token types.