(actor: &ActorDto)
| 506 | } |
| 507 | |
| 508 | fn format_actor(actor: &ActorDto) -> String { |
| 509 | match actor { |
| 510 | ActorDto::Human { did } => format!("human did={did}"), |
| 511 | ActorDto::Agent { did, session, turn } => format!( |
| 512 | "agent did={did} session={session} turn={}", |
| 513 | turn.map(|value| value.to_string()) |
| 514 | .unwrap_or_else(|| "none".to_string()) |
| 515 | ), |
| 516 | ActorDto::System { name } => format!("system name={name}"), |
| 517 | } |
| 518 | } |
| 519 | |
| 520 | fn write_timestamp(output: &mut String, indent: usize, timestamp_ms: i64, utc: Option<&str>) { |
| 521 | writeln!( |
nothing calls this directly
no outgoing calls
no test coverage detected