Overview of Dotprompt features
mainDotprompt is a language-neutral executable prompt template format. Key features include:
- YAML Frontmatter: Define prompt metadata such as
model,config, andinput/outputschemas. - Handlebars Templating: Includes 7 built-in helpers:
role,media,history,section,json,ifEquals, andunlessEquals. - Picoschema: A compact schema notation that converts to JSON Schema.
- Multi-message Support: Use role markers to define multi-turn conversation structures.
- Named Partials: Supports recursive resolution and includes cycle detection.
- PromptStore: An interface for managing prompts, with
DirStoreprovided for file system implementations. - Extensibility: Supports custom loaders, schema/tool resolvers, and configuration passthrough for tools/functions and safety settings.