MCPcopy Create free account
hub / github.com/Louisym/MiniCC / total_tokens

Method total_tokens

mini_claude_code/runtime.py:56–63  ·  view source on GitHub ↗

源码: usage.rs:81-86

(self)

Source from the content-addressed store, hash-verified

54 cache_read_input_tokens: int = 0
55
56 def total_tokens(self) -> int:
57 """源码: usage.rs:81-86"""
58 return (
59 self.input_tokens
60 + self.output_tokens
61 + self.cache_creation_input_tokens
62 + self.cache_read_input_tokens
63 )
64
65
66# ============================================================

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected