MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / format_actor

Function format_actor

atomic-cli/src/commands/op/output.rs:508–518  ·  view source on GitHub ↗
(actor: &ActorDto)

Source from the content-addressed store, hash-verified

506}
507
508fn 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
520fn write_timestamp(output: &mut String, indent: usize, timestamp_ms: i64, utc: Option<&str>) {
521 writeln!(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected