core 2 credits · ~$0.030 <500ms

Hallucination Firewall

POST /v1/verify

The hallucination firewall runs every applicable check in parallel and returns a single PASS/FLAG/BLOCK verdict with a tamper-evident certificate. For code it validates packages; for prose it checks URLs, DOI/arXiv citations, numeric contradictions, and can ground claims against supplied source docs.

Capabilities

  • Package, URL, DOI/arXiv, and numeric-contradiction checks
  • Optional NLI grounding against supplied source texts
  • PASS / FLAG / BLOCK with per-claim evidence
  • SHA-256 certificate for audit

Use cases

  • Final gate before accepting any LLM output
  • RAG answers grounded in documents
  • Research and report generation
example
curl -X POST https://api.agent-toolbox.ai/v1/verify \
  -H "Content-Type: application/json" \
  -d '{"text": "The study found 97% effectiveness with p<0.001"}'
response shape
{
  "verdict": "PASS" | "FLAG" | "BLOCK",
  // tool-specific findings…
  "certificate": "sha256:..."
}