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.1.0.tar.gz (10.6 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.1.0-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

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

Hashes for accuralai_validator-0.1.0.tar.gz
Algorithm Hash digest
SHA256 bc59c0551d2bf2fa87044b1eb75535f3a2e3d0e85481b3e886fb87f9f2278318
MD5 b23cafc86a083e5d46fdc8f0e599fbd3
BLAKE2b-256 be019809399e6138e688fe04f492c092684e1efc05426abe1f3b728338c1bbeb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for accuralai_validator-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2c1bfbc0637218f9948439ceedddbca12803ea9057142a4160a4dcd217aec8a8
MD5 8cd12c3cbfa1080073eaa4ca1319b32b
BLAKE2b-256 4a27778733899444e9fb71d7aec217ab2024d843dd2f32ab9afbae17047438b2

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