Skip to main content

Installation

Quick start

QWEDVerificationTool

Give agents verification capabilities:

Specialized tools

Changed in v10.0.0
The tools call a result wrong (❌ INCORRECT, ❌ UNSAFE, ⚠️ SECURITY ISSUES FOUND) only when QWED decided it. A result QWED did not decide is ⚠️ UNVERIFIABLE: or ⛔ BLOCKED: followed by the server’s message. QWEDVerificationTool sends its input to /verify/natural_language, which admits no result while the LLM’s translation is unverified, so a claim that holds is ⚠️ HOLDS, NOT ADMITTED. QWEDSQLTool checks a query against schema_ddl in dialect (default sqlite). Without schema_ddl, it answers ⚠️ UNVERIFIABLE and sends nothing.

QWEDVerifiedAgent

Agent wrapper that creates a CrewAI agent with the QWED tools. It does not check the agent’s output by itself: pass each output to verify_output().
sql_schema_ddl and sql_dialect go to the agent’s QWEDSQLTool. Without a schema, its SQL checks are UNVERIFIABLE. verify_output() starts every output as unverified. It sets verified: True only when the client’s is_verified is True, which follows the server’s admission: verification_summary() counts only outputs with verified: True.
Before v8.0.0 (GHSA-83v6-6h23-pvp4), verify_output() started from verified: True and kept it when the check raised or verification was disabled. Don’t rely on verified=True or verification rates from earlier versions.

QWEDVerifiedCrew

Verify entire crew outputs:

Task decorator