struct

Anthropic::Usage

Inherits JSON::Serializable < Struct < Value < Object

Constructors

new(input_tokens : Int32 = 0, output_tokens : Int32 = 0, cache_creation_input_tokens : Int32 | Nil = nil, cache_read_input_tokens : Int32 | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

cache_creation_input_tokens
Source
cache_read_input_tokens
Source
input_tokens
Source
output_tokens
Source
total_tokens
Source