Skip to main content

validate_prompt_name

Function validate_prompt_name 

Source
pub fn validate_prompt_name(name: &str) -> Result<()>
Expand description

Validates a prompt name.

Valid names must be kebab-case: lowercase letters, numbers, and hyphens only. Must start with a letter, cannot end with a hyphen, and cannot have consecutive hyphens.

Examples of valid names: code-review, api-design-v2, weekly-report