anthropic.internal.AnthStreamUsage$stream
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.AnthStreamUsage$streamStreaming 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 0–0
Fields
input_tokens
int | nulloutput_tokens
int | nullcache_read_input_tokens
int | nullcache_creation_input_tokens
int | null