Module
Utility functions for prompt template operations.check_name_exists_in_organization
name(str): The template name to check.
bool: True if the name exists, False otherwise.
generate_unique_name
base_name(str): The desired template name.
ValueError: If unable to generate a unique name after 1000 attempts.
str: A unique name. Returns the original name if unique, otherwise appends (1), (2), etc.
- If “my-template” doesn’t exist → returns “my-template”
 - If “my-template” exists → returns “my-template (1)”
 - If “my-template” and “my-template (1)” exist → returns “my-template (2)”