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

Function build_agent_author

atomic-agent/src/identity.rs:394–402  ·  view source on GitHub ↗

Build an `Author` for an agent turn, using the session's identity info. This is the main entry point called by `record_turn()`. It resolves the agent author from the user's default identity with `+tag` email. # Arguments `agent_name` — Agent registry key (e.g., "claude-code") `agent_display_name` — Human-readable name (e.g., "Claude Code") `session_id` — Session identifier for the `+tag` suffix

(agent_name: &str, agent_display_name: &str, session_id: &str)

Source from the content-addressed store, hash-verified

392/// - With identity: `claude+60f5 <lee@atomic.dev>` (with public key ref)
393/// - Without: `Claude Code` (no email)
394pub fn build_agent_author(agent_name: &str, agent_display_name: &str, session_id: &str) -> Author {
395 let options = AgentAuthorOptions {
396 agent_name,
397 agent_display_name,
398 session_id,
399 identity_dir: None,
400 };
401 resolve_agent_author(&options)
402}
403
404// Tests
405

Callers 2

build_turn_headerFunction · 0.85

Calls 1

resolve_agent_authorFunction · 0.85

Tested by 1