Anthropic::Usage
Inherits JSON::Serializable < Struct < Value < Object
Constructors
new(pull : JSON::PullParser)
Sourcenew(input_tokens : Int32 = 0, output_tokens : Int32 = 0, cache_creation_input_tokens : Int32 | Nil = nil, cache_read_input_tokens : Int32 | Nil = nil)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
cache_creation_input_tokens
Sourcecache_read_input_tokens
Sourceinput_tokens
Sourceoutput_tokens
Sourcetotal_tokens
Source