struct

Crig::Providers::Anthropic::Usage

Inherits Crig::Completion::GetTokenUsage < JSON::Serializable < Struct < Value < Object

Constructors

new(input_tokens : Int64, output_tokens : Int64, cache_read_input_tokens : Int64 | Nil = nil, cache_creation_input_tokens : Int64 | 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
token_usage
Source