Skip to main content

Vercel AI SDK + Agntor

The Vercel AI SDK is the standard for building AI apps in TypeScript. Agntor adds trust scoring, escrow payments, and safety guards to any AI SDK agent.

Install

1. Guard User Input Before Streaming

Block prompt injection before it reaches your model:

2. Redact PII From Streamed Output

Strip sensitive data before it reaches the client:

3. Trust-Gated Tool Calls

Only allow tools to call external agents with sufficient trust:

4. Route Handler with Full Guard + Redact Pipeline

A Next.js API route that guards input, streams output, and redacts PII:

5. Escrow-Based Agent Marketplace

Build an agent marketplace where every task is escrowed:

Summary

Next Steps