Skip to main content
Real-world examples of using QWED Open Responses for agent verification.

Example 1: financial calculator agent

Scenario

An AI agent helps users with financial calculations. Need to verify math before returning results.

Setup

Verification

Catching errors


Example 2: blocking dangerous tools

Scenario

Agent has access to shell commands. Need to prevent dangerous operations.

Setup

Blocked calls

Allowed calls


Example 3: PII detection

Scenario

Healthcare AI generating patient summaries. Must not leak PII.

Setup

PII blocked

Redacted output


Example 4: state machine validation

Scenario

Order processing agent. States must follow valid transitions.

Setup

Valid transition

Invalid transition (blocked)


Example 5: LangChain integration

Full agent with verification


Example 6: budget control

Scenario

Prevent runaway API costs from agent loops.

Setup

Budget enforcement


Example 7: argument type validation

Scenario

Ensure tool arguments match expected types.

Setup

Validation


Best practices

1. Layer multiple guards

2. Fail fast, log everything

3. Environment-specific guards

4. Test your guards