QWED Open Responses
Verify AI agent outputs before execution.What is QWED Open Responses?
QWED Open Responses provides deterministic verification guards for AI agent outputs. It works with:- OpenAI Responses API
- LangChain agents
- LlamaIndex
- Any AI framework
The Problem
When AI agents execute tools or generate structured outputs, they can:- 🔧 Call dangerous functions -
rm -rf /,DROP TABLE - 🧮 Produce incorrect calculations - Financial errors, wrong totals
- 📋 Violate business rules - Invalid state transitions
- 🔐 Leak sensitive data - PII, API keys in responses
- 💰 Exceed budgets - Unlimited API calls
The Solution
QWED Open Responses intercepts and verifies every agent output before execution:How It Works
The 6 Guards
| Guard | What It Verifies | Example Catch |
|---|---|---|
| SchemaGuard | JSON Schema compliance | Missing required field |
| ToolGuard | Block dangerous tool calls | execute_shell blocked |
| MathGuard | Verify calculations | 150 × 10 ≠ 1600 |
| StateGuard | Valid state transitions | completed → pending invalid |
| ArgumentGuard | Tool argument validation | amount: "abc" not a number |
| SafetyGuard | PII, injection, budget | SSN detected in output |
Installation
Basic
With Framework Integrations
Quick Start
Basic Verification
Verify Structured Output
Framework Integration
LangChain
OpenAI SDK
Why QWED Open Responses?
Security Comparison
| Threat | Without Verification | With QWED |
|---|---|---|
Agent calls rm -rf / | 💀 System destroyed | ✅ BLOCKED |
| SQL injection in query | 💀 Data breach | ✅ BLOCKED |
| Wrong calculation | 💸 Financial loss | ✅ CAUGHT |
| PII in API response | 📋 Compliance violation | ✅ DETECTED |
| Infinite tool loop | 💰 $10,000 API bill | ✅ BUDGET GUARD |
Real-World Impact
- Finance: Prevent wrong calculations in trading bots
- Healthcare: Block PII leaks in patient summaries
- E-commerce: Verify order totals before payment
- DevOps: Prevent dangerous shell commands
Configuration
Environment Variables
| Variable | Description | Default |
|---|---|---|
QWED_OR_LOG_LEVEL | Logging level | INFO |
QWED_OR_STRICT | Fail on any guard failure | true |
QWED_OR_MAX_BUDGET | Maximum API cost allowed | 100.0 |
Custom Guard Configuration
Next Steps
- Guards Reference - Deep dive into each guard
- Examples - Real-world use cases
- LangChain Integration - Agent verification
- OpenAI Integration - Responses API
- Troubleshooting - Common issues
Links
- GitHub: QWED-AI/qwed-open-responses
- PyPI: qwed-open-responses
- npm: qwed-open-responses