struct

Anthropic::FallbackMessageIterationUsage

Inherits JSON::Serializable < Struct < Value < Object

Per-hop usage entry found in usage.iterations when a fallback chain ran.

type: "message" marks a declined (refused) hop; type: "fallback_message" marks the hop that ultimately served the response.

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

cache_creation
Source
cache_creation_input_tokens
Source
cache_read_input_tokens
Source
declined?
Source
fallback_message?
Source
input_tokens
Source
model

The model for this hop. The declined (type: "message") hop may omit this.

Source
output_tokens
Source
type
Source