fn resolve_agent<'a>(
agents: &'a [AgentDefinition],
slug: Option<&str>,
name: Option<&str>,
) -> Option<&'a AgentDefinition>Expand description
A user agent (not a template) matching the file’s slug, else its display name — only if exactly one matches, so a name shared by two agents never launches the wrong one.