promptguard 0.2.0
promptguard: ^0.2.0 copied to clipboard
Regression testing for every AI feature in your app. Define prompts and expectations in one YAML file, run them against any provider, and catch silent quality regressions in CI before your users do.
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate promptguardUse it
The package has the following executables:
$ promptguard
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add promptguardWith Flutter:
$ flutter pub add promptguardThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
promptguard: ^0.2.0Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:promptguard/promptguard.dart';