这是indexloc提供的服务,不要输入任何密码

dotprompt_dart 0.3.0 copy "dotprompt_dart: ^0.3.0" to clipboard
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 changes
  • DotPrompt.render argument changes

0.1.0 #

  • Initial version.
0
likes
160
points
340
downloads

Publisher

unverified uploader

Weekly Downloads

A Dart package for parsing .prompt files for use with LLMs.

Repository (GitHub)

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

collection, json_schema, mustache_template, path, yaml

More

Packages that depend on dotprompt_dart