struct

Crig::Providers::Anthropic::PartialUsage

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

Constructors

new(output_tokens : Int64 = 0_i64, input_tokens : Int64 | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

input_tokens
Source
output_tokens
Source
token_usage
Source