save_system_prompt_template
Save system prompt templates with a name for UI dropdown access. Use at session startup for .txt files and after optimization loops to preserve the best prompt.
Instructions
Save a named system prompt template so it appears in the UI "Load template…" dropdown.
Call at session startup for every .txt file in prompt-lab/system-prompts/: save_system_prompt_template(name=, content=)
Also call after a successful optimization loop to preserve the best prompt found.
Templates persist in Redis. Saving with the same name replaces the previous version.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Template name (shown in UI dropdown) | |
| content | Yes | System prompt text |