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

Method print_summary

atomic-cli/src/commands/agent/attest.rs:490–509  ·  view source on GitHub ↗

Print a one-line summary of an attestation.

(&self, hash: &Hash, attest: &Attestation)

Source from the content-addressed store, hash-verified

488
489 /// Print a one-line summary of an attestation.
490 fn print_summary(&self, hash: &Hash, attest: &Attestation) {
491 let mut parts = vec![format!(
492 "{} {}",
493 format_hash(hash, false),
494 attest.agent.display_name
495 )];
496
497 if attest.cost_usd > 0.0 {
498 parts.push(format_cost(attest.cost_usd));
499 }
500 if attest.total_tokens() > 0 {
501 parts.push(format!("{} tokens", format_tokens(attest.total_tokens())));
502 }
503 if attest.duration_wall_ms > 0 {
504 parts.push(attest.wall_duration_display());
505 }
506 parts.push(format_count(attest.change_count(), "change"));
507
508 println!(" {}", parts.join(" · "));
509 }
510
511 /// Print model breakdown.
512 fn print_models(&self, attest: &Attestation) {

Callers 2

list_allMethod · 0.80
show_for_viewMethod · 0.80

Calls 6

format_costFunction · 0.85
total_tokensMethod · 0.80
wall_duration_displayMethod · 0.80
format_countFunction · 0.70
pushMethod · 0.45
change_countMethod · 0.45

Tested by

no test coverage detected