| 317 | |
| 318 | impl fmt::Display for Attestation { |
| 319 | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { |
| 320 | writeln!( |
| 321 | f, |
| 322 | "Attestation — {} · {} · {} tokens ({} cached) · {} API", |
| 323 | self.agent.display_name, |
| 324 | self.cost_display(), |
| 325 | format_tokens(self.used_tokens()), |
| 326 | format_tokens(self.cache_tokens()), |
| 327 | self.api_duration_display(), |
| 328 | )?; |
| 329 | for model in &self.models { |
| 330 | writeln!(f, " {}", model)?; |
| 331 | } |
| 332 | writeln!( |
| 333 | f, |
| 334 | " {} covered · +{} -{} lines", |
| 335 | self.change_count(), |
| 336 | self.code_changes.lines_added, |
| 337 | self.code_changes.lines_removed, |
| 338 | )?; |
| 339 | Ok(()) |
| 340 | } |
| 341 | } |
| 342 | |
| 343 | // AttestAgent |