Register a prompt template
If a template with same id and version exists, it will be replaced.
Template to register
Get prompt by ID and optional version
Prompt identifier
Optionalversion: stringSpecific version (defaults to latest)
Template if found
Get latest version of a prompt
Prompt identifier
Latest template version if found
Search prompts by tags
Tags to search for (matches ANY tag)
Templates matching at least one tag
Search prompts by model recommendation
Model name to search for
Templates recommended for this model
Check if prompt exists
Prompt identifier
Optionalversion: stringSpecific version (optional)
True if exists
Remove a prompt
Prompt identifier
Optionalversion: stringSpecific version (removes all versions if not specified)
True if removed
Get all versions of a prompt
Prompt identifier
Array of all versions, sorted newest first
Clear all registered prompts
Registry for managing prompt templates
Provides centralized storage and retrieval of prompt templates with:
Example