Skip to main content

validate_agent_id

Function validate_agent_id 

Source
pub fn validate_agent_id(agent_id: &str) -> bool
Expand description

Validate an agent ID.

Must be 1-64 characters, only letters, digits, underscore, and hyphen (agentmux_common::slug::is_agent_id). A display name that isn’t one is turned into one by agentmux_common::slug::agent_route_name.