anthropic.internal.AnthStreamUsage
Streaming usage objects carry only some fields per event, so every field is optional (unlike the non-streaming Usage).
Reference version
Signature
class anthropic.internal.AnthStreamUsageStreaming usage objects carry only some fields per event, so every field is optional (unlike the non-streaming Usage).
Source:<builtin>/anthropic/ns_internal/messages.bamlbytes 35913–36114
Fields
input_tokens
int | nulloutput_tokens
int | nullcache_read_input_tokens
int | nullcache_creation_input_tokens
int | null