| 692 | |
| 693 | impl fmt::Display for Attestation { |
| 694 | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { |
| 695 | writeln!( |
| 696 | f, |
| 697 | "Attestation — {} · {} · {} tokens ({} cached) · {} API", |
| 698 | self.agent.display_name, |
| 699 | self.cost_display(), |
| 700 | format_tokens(self.used_tokens()), |
| 701 | format_tokens(self.cache_tokens()), |
| 702 | self.api_duration_display(), |
| 703 | )?; |
| 704 | for model in &self.models { |
| 705 | writeln!(f, " {}", model)?; |
| 706 | } |
| 707 | writeln!( |
| 708 | f, |
| 709 | " {} covered · +{} -{} lines", |
| 710 | self.change_count(), |
| 711 | self.code_changes.lines_added, |
| 712 | self.code_changes.lines_removed, |
| 713 | )?; |
| 714 | Ok(()) |
| 715 | } |
| 716 | } |
| 717 | |
| 718 | // AttestAgent |