dotprompt_dart 0.3.0
dotprompt_dart: ^0.3.0 copied to clipboard
A Dart package for parsing .prompt files for use with LLMs.
0.3.0 #
- Enabled web and wasm compatibility
- Breaking Change: replaced DotPrompt.file(filename) with DotPrompt.stream(bytes, name: filename). This allows for web compatibility w/o reduced functionality. Here's how to migrate your code:
// old code
const filename = 'example/prompts/greet.prompt';
final prompt = await DotPrompt.file(filename));
// new code
const filename = 'example/prompts/greet.prompt';
final prompt = await DotPrompt.stream(File(filename).openRead(), name: filename);
0.2.0 #
- integration with dartantic_ai
DotPrompt
constructor name changesDotPrompt.render
argument changes
0.1.0 #
- Initial version.