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