Python client for the AI Verify API - rubric-based verdicts with signed, re-verifiable proofs.
Project description
acretix-verify-sdk
Python client for the AI Verify API — submit work against a rubric and receive a scored, explained verdict with an Ed25519-signed, independently re-verifiable proof.
import os
from acretix_verify import AcretixVerify
client = AcretixVerify(api_key=os.environ["VERIFY_API_KEY"])
rubric = client.compile_rubric({
"name": "invoice-check",
"criteria": [
{"key": "total_present", "type": "must_have", "primitive": "regex_match@1",
"config": {"pattern": r"Total: \$[0-9]+"}},
],
})
verdict = client.submit_verification(
rubric_id=rubric["rubric_id"],
submission={"inline": "Invoice... Total: $420"},
wait_ms=30000,
idempotency_key="invoice-001",
)
# verdict["determination"]: "met" | "partial" | "not_met" — flagged=True means needs_review:
# below the confidence threshold the engine abstains rather than asserting a verdict.
report = client.reverify(verdict["verification_id"])
# report["ok"] and report["chain_ok"] — the proof verifies against the published public key.
- Verdicts below the confidence threshold are flagged
needs_review— the engine abstains instead of guessing; your application decides what happens next. - Proofs are signed with Ed25519 and re-verifiable by any third party against the published public key — see the docs for the proof format.
- Also available:
get_verification,wait_for_verification,get_proof,get_usage,submit_feedback. - Usage is metered per verification by judge tier.
Standard library only (urllib). Python 3.9+.
License: MIT
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 acretix_verify_sdk-0.1.0.tar.gz.
File metadata
- Download URL: acretix_verify_sdk-0.1.0.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc91279ec6aaa64821be620eb0c3660a134a17397f7719664ca9545321519060
|
|
| MD5 |
69644fba603ee50b407274fbbb0c2039
|
|
| BLAKE2b-256 |
fe700856f3922c064edc0669ae07277cb46117312ad76c10f226571790eca9d6
|
File details
Details for the file acretix_verify_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: acretix_verify_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e735e3a27e9f7bd75e5839d1e9187c3fbc9636d4da7fb009e3a56fc5c96bc24d
|
|
| MD5 |
526f51edd43d31e4402ece8170db7330
|
|
| BLAKE2b-256 |
e00675885df39fa510d57ab5d2906c3a74d12651ae4c59e3012bfcdcabf871c2
|