Skip to main content

Installation

Quick start

Available components

QWEDTool

General-purpose verification tool:

Specialized tools

QWEDVerificationCallback

Auto-verify all LLM outputs:

QWEDVerifiedChain

Wrap any chain with verification:
The tools, callback, and QWEDVerifiedChain read the client’s is_verified, which follows the server’s admission. result.verified is True only when the server admitted the output. A BLOCKED or UNVERIFIABLE result is never verified.
Before v8.0.0 (GHSA-83v6-6h23-pvp4), the integrations read a verified attribute that QWEDClient results don’t have, so their checks raised. When you call QWEDClient directly, gate on result.is_verified.

LCEL integration

Use with LangChain Expression Language:

Best practices

  1. Use callbacks for monitoring — Track verification rates
  2. Use tools for agent autonomy — Let agents verify themselves
  3. Use wrappers for guarantees — Ensure all outputs are verified