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)
| 392 | /// - With identity: `claude+60f5 <lee@atomic.dev>` (with public key ref) |
| 393 | /// - Without: `Claude Code` (no email) |
| 394 | pub 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 |