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.1.tar.gz (12.1 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.1-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: accuralai_validator-0.2.1.tar.gz
  • Upload date:
  • Size: 12.1 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.1.tar.gz
Algorithm Hash digest
SHA256 bccbf0506558c205739832a85ac6e4345e393b9a7a1f3781f8db89d7f4129294
MD5 5a871c185cd85bed56fcc6846718707b
BLAKE2b-256 827f7fa3300c05fcc6064af330324bb03f069ca83a1b73174707ccb723885271

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for accuralai_validator-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1aace4c4f95971fe8cc3b75ede62cff3e4c11c43767303cad4ddcde669927593
MD5 e949d40f1efbb1dd959d31508a944712
BLAKE2b-256 4af0515a417b1ca81fcdc1e24f7c41fca183e7e6098cac9fbc3cfef0421d18c9

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