Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

accuralai_validator-0.2.0.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

accuralai_validator-0.2.0-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

Details for the file accuralai_validator-0.2.0.tar.gz.

File metadata

  • Download URL: accuralai_validator-0.2.0.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for accuralai_validator-0.2.0.tar.gz
Algorithm Hash digest
SHA256 59439d76179d90a2dffd7fa4b25b3b00ee8b8fb9de6241af2af7609171516de4
MD5 0cecbdedc6f102ec190c35a9aefb6dc0
BLAKE2b-256 bd7e1b788c184f1cc42117dbb287d35bf3940a7b2c3f1fab082702928417d85a

See more details on using hashes here.

File details

Details for the file accuralai_validator-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for accuralai_validator-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6ab0cdb74fa08dc46c2ba507137efd98da0ab1370150348ac662fd60c178e369
MD5 b36813195840921cf0803c8bad59a386
BLAKE2b-256 62f9cdd1728c5ff83da178b8dcbc40c31f15836c9ec2fa9630716c988e69a2b8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page