Skip to main content
Google’s DotPrompt specification allows you to define prompts as files with metadata, templates, and validation. These files can be executed by dartantic.

Quick Start

You can use the DotPrompt class to parse .prompt files:

With Variables

You can pass variables to the render method:

From Files

You can also read prompts from files:

Examples

Next Steps