Supported Integrations
Veto integrates with the following frameworks and tools:LangChain
Middleware and callback handlers for LangChain agents and LangGraph
Vercel AI SDK
Language model middleware for generateText and streamText
OpenAI Agents
Input, output, and tool guardrails for OpenAI Agents protocol
browser-use
Controller wrapper for AI browser automation
How Veto Wrapping Works
Veto’s integration approach is designed to be transparent — it preserves your existing tool interfaces and types.Type Preservation
When you wrap tools with Veto, the types are preserved:How It Works
- Wrap Phase:
veto.wrap(tools)creates a thin wrapper around each tool handler - Interception: When the AI calls a tool, Veto intercepts the call before execution
- Validation: Arguments are validated against your YAML rules (deterministic + optional LLM)
- Decision: Based on the validation result:
- allow → Original handler executes
- block →
ToolCallDeniedErrorthrown with reason - ask → Queued for human approval (Veto Cloud)
Integration Approaches
Veto offers two main approaches for adding guardrails:1. Generic Wrapping
Useveto.wrap() to wrap any tool array. Works with all frameworks:
- LangChain tools
- Vercel AI SDK tools
- Custom tool objects
- Any framework that accepts tool arrays
2. Framework Middleware
Use framework-specific middleware for deeper integration:- LangChain:
createVetoLangChainMiddleware() - Vercel AI SDK:
createVetoMiddleware() - OpenAI Agents:
createVetoInputGuardrail(),createVetoToolGuardrails() - browser-use:
wrapBrowserUse()
- Streaming support
- Native error handling
- Framework-specific callbacks
- Better integration with framework features
Provider Adapters
Veto includes adapters for converting between tool formats:- OpenAI (
toOpenAI,fromOpenAI) - Anthropic (
toAnthropic,fromAnthropic) - Google (
toGoogleTool,fromGoogleFunctionCall) - MCP (
toMCP,fromMCP)
Next Steps
Choose Your Framework
Pick an integration guide for your AI framework
Custom Integration
Build a custom integration or wrap your own tools
Configure Rules
Write validation rules for your tools
Tool Interface
Understand the tool definition format

