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.
Changelog #
0.2.0 #
- Output snapshots — golden files for LLM output:
--snapshots <dir>compares,--update-snapshotsaccepts new outputs. Catches subtle drift in generation. - Parallel execution —
--parallelruns the suite concurrently. promptguard watch— re-runs the suite on every save while you tune prompts.- Token & cost report — every run prints tokens in/out and estimated USD cost
(known model prices built in; override per model in the config
pricing:section). - GitHub Action Marketplace entry —
action.ymlcomposite action: useuses: awaisdev5765/promptguard@v0instead of copy-pasting workflow YAML.
0.1.0 #
- Initial release.
promptguard run— execute prompt test suites with exit-code CI semantics.promptguard init— starter suite scaffold.- 5 expectation types: contains, not_contains, matches, equals, judged (LLM rubric).
- 5 bundled providers: OpenAI, Anthropic, Gemini, Groq, OpenRouter (plus any self-hosted OpenAI-compatible endpoint).
- Copy-paste GitHub Actions workflow with PR commenting.
- Unit-tested with fake providers — no API keys needed for development.