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.AnthStreamUsage

Streaming 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 3591336114

Fields

input_tokens

int | null

output_tokens

int | null

cache_read_input_tokens

int | null

cache_creation_input_tokens

int | null