Validator plugins for the AccuralAI orchestration pipeline.
Project description
accuralai-validator
accuralai-validator delivers reusable validator plugins for the AccuralAI pipeline. Validators apply safety policies, length constraints, and heuristic checks while emitting structured validator_events for downstream observability.
Included Validators
- noop – explicit pass-through validator.
- regex – deny/allow lists backed by compiled regular expressions.
- length – prompt/completion length guards with token/character modes.
- toxicity – pluggable moderation adapter that integrates external scoring providers.
- prompt_injection – heuristic jailbreak detector using keyword and ratio checks.
- json_schema – validates responses against JSON structure or schemas declared inline or per-request.
Development
python -m venv .venv && source .venv/bin/activate
pip install -e packages/accuralai-core[dev]
pip install -e packages/accuralai-validator[dev]
pytest packages/accuralai-validator/tests -q
Validators register entry points under accuralai_core.validators so accuralai-core can compose them into validation chains.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file accuralai_validator-0.1.0.tar.gz.
File metadata
- Download URL: accuralai_validator-0.1.0.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc59c0551d2bf2fa87044b1eb75535f3a2e3d0e85481b3e886fb87f9f2278318
|
|
| MD5 |
b23cafc86a083e5d46fdc8f0e599fbd3
|
|
| BLAKE2b-256 |
be019809399e6138e688fe04f492c092684e1efc05426abe1f3b728338c1bbeb
|
File details
Details for the file accuralai_validator-0.1.0-py3-none-any.whl.
File metadata
- Download URL: accuralai_validator-0.1.0-py3-none-any.whl
- Upload date:
- Size: 13.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c1bfbc0637218f9948439ceedddbca12803ea9057142a4160a4dcd217aec8a8
|
|
| MD5 |
8cd12c3cbfa1080073eaa4ca1319b32b
|
|
| BLAKE2b-256 |
4a27778733899444e9fb71d7aec217ab2024d843dd2f32ab9afbae17047438b2
|