Skip to main content

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.

Metadata

Release files for accuralai-validator 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for accuralai-validator 0.2.1
File Size Uploaded
accuralai_validator-0.2.1.tar.gz 12.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for accuralai-validator 0.2.1
File Interpreter ABI Platform
accuralai_validator-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 26.6 kB

Release files / accuralai_validator-0.2.1.tar.gz

Download URL accuralai_validator-0.2.1.tar.gz
Size 12.1 kB
Tags Source
SHA-256 checksum
How to use checksums
bccbf0506558c205739832a85ac6e4345e393b9a7a1f3781f8db89d7f4129294
BLAKE2b-256 checksum
How to use checksums
827f7fa3300c05fcc6064af330324bb03f069ca83a1b73174707ccb723885271
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.19

Release files / accuralai_validator-0.2.1-py3-none-any.whl

Download URL accuralai_validator-0.2.1-py3-none-any.whl
Size 14.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1aace4c4f95971fe8cc3b75ede62cff3e4c11c43767303cad4ddcde669927593
BLAKE2b-256 checksum
How to use checksums
4af0515a417b1ca81fcdc1e24f7c41fca183e7e6098cac9fbc3cfef0421d18c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.19

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page