Crig::Providers::DeepSeek::Usage
Inherits Crig::Completion::GetTokenUsage < JSON::Serializable < Struct < Value < Object
Constructors
new(pull : JSON::PullParser)
Sourcenew(completion_tokens : Int32 = 0, prompt_tokens : Int32 = 0, prompt_cache_hit_tokens : Int32 = 0, prompt_cache_miss_tokens : Int32 = 0, total_tokens : Int32 = 0, completion_tokens_details : CompletionTokensDetails | Nil = nil, prompt_tokens_details : PromptTokensDetails | Nil = nil)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
Sourcenew_empty
SourceInstance methods
completion_tokens
Sourcecompletion_tokens_details
Sourceprompt_cache_hit_tokens
Sourceprompt_cache_miss_tokens
Sourceprompt_tokens
Sourceprompt_tokens_details
Sourcetoken_usage
Sourcetotal_tokens
Source