Skip to main content

Module agent_name

Module agent_name 

Source
Expand description

Canonical agent-name validation. Used by both mur agent create (CLI) and the /api/v1/agents/{name} HTTP routes so the two surfaces never disagree on what names are valid.

Enums§

AgentNameError

Constants§

MAX_AGENT_NAME_LEN

Functions§

validate_agent_name
Validate an agent name from any caller (HTTP path param, CLI argument, import file). Returns Ok(()) if the name is safe to use as a directory component under ~/.mur/agents/.