Cookbook
Cookbook
Complete, working recipes for common integration patterns.
Task-oriented walkthroughs, adapted from the example files shipped in the SDK's repository — copy-pasteable further than the snippets on the reference pages.
RAG protection
Scan retrieved documents before they're stitched into a prompt.
Agent protection
Scan a tool call before executing it, and its output before it re-enters the loop.
Raw OpenAI
Screen a prompt before an OpenAI call, no framework.
Raw Claude
Screen a prompt before a Claude call, no framework.
Next.js Route Handler
Wire a scan into an App Router API route.
Building with the Vercel AI SDK? That has its own dedicated page under Integrations — you generally won't need the raw patterns here for that stack.