evolving_ideas.prompts.template_store¶
evolving_ideas.prompts.template_store
Classes¶
Singleton to load and cache prompt templates from YAML. |
Module Contents¶
- class evolving_ideas.prompts.template_store.PromptTemplateStore¶
Singleton to load and cache prompt templates from YAML.
- get(name: str) str ¶
Get a prompt template by name.
- Parameters:
name (str) – The name of the template
- Returns:
The template string
- Return type:
str
- all() dict ¶
Get all prompt templates.
- Returns:
All templates
- Return type:
dict