MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / total_tokens

Method total_tokens

atomic-core/src/change/attestation.rs:265–267  ·  view source on GitHub ↗

Total tokens across all models (input + output + cache).

(&self)

Source from the content-addressed store, hash-verified

263
264 /// Total tokens across all models (input + output + cache).
265 pub fn total_tokens(&self) -> u64 {
266 self.models.iter().map(|m| m.total_tokens()).sum()
267 }
268
269 /// Used tokens across all models (input + output only).
270 ///

Callers 3

list_allMethod · 0.80
show_detailMethod · 0.80
print_summaryMethod · 0.80

Calls 1

iterMethod · 0.45

Tested by

no test coverage detected