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

Method print_summary

atomic-cli/src/commands/agent/attest.rs:619–638  ·  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

617
618 /// Print a one-line summary of an attestation.
619 fn print_summary(&self, hash: &Hash, attest: &Attestation) {
620 let mut parts = vec![format!(
621 "{} {}",
622 format_hash(hash, false),
623 attest.agent.display_name
624 )];
625
626 if attest.cost_usd > 0.0 {
627 parts.push(format_cost(attest.cost_usd));
628 }
629 if attest.total_tokens() > 0 {
630 parts.push(format!("{} tokens", format_tokens(attest.total_tokens())));
631 }
632 if attest.duration_wall_ms > 0 {
633 parts.push(attest.wall_duration_display());
634 }
635 parts.push(format_count(attest.change_count(), "change"));
636
637 println!(" {}", parts.join(" · "));
638 }
639
640 /// Print model breakdown.
641 fn print_models(&self, attest: &Attestation) {

Callers 2

list_allMethod · 0.80
show_for_viewMethod · 0.80

Calls 6

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

Tested by

no test coverage detected