Anthropic::DeltaUsage
Inherits JSON::Serializable < Struct < Value < Object
Usage statistics for streaming delta events
In streaming message_delta events, output_tokens is always present.
Other fields (including fallback_credit and iterations when a
fallback-credit token or fallback chain was used) are cumulative and
optional.
Constructors
new(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
cache_creation_input_tokens
Sourcecache_read_input_tokens
Sourceinput_tokens
Sourceserver_tool_use
Source