Print a one-line summary of an attestation.
(&self, hash: &Hash, attest: &Attestation)
| 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) { |
no test coverage detected