Veto
Set it up
Menu

Open source, for Python agents

Say no before the tool runs.

Veto checks each tool call your AI agent makes, before it runs. Allow, ask a person, or block.

pip install veto-guard
support-bot · one run
  • Look up order: Allowed.
  • Refund 40: Allowed.
  • Refund 250: Needs a person, above 100.
  • Refund 900: Blocked, above the 500 cap.
  • Email a stranger: Blocked, outside the company.

How it works

  1. Your agent calls a tool.
  2. Veto checks your rules.
  3. It answers, and says why.

For example: lookup_order("A-1001") is allowed; issue_refund(250) is needs a person, above 100; issue_refund(900) is blocked, above the 500 cap.

Now you be the agent

Make calls. Try a refund before and after looking up the order.

Calls

An example run, until you make a call

Allowed

The same refund was blocked a moment earlier. Then the order was looked up.

issue_refund("A-1001", 40)

This run

  1. Refund 40: Blocked, the order was never looked up.
  2. Look up order: Allowed.
  3. Refund 40: Allowed.

Answers computed ahead of time by Veto’s own engine. Nothing you press is sent anywhere.

What it can do

Rules you can read

A few lines of YAML each. Six come with Veto.

The rule, exactly as Veto reads it

- id: refund-amount-cap
description: Refunds above 500 are never allowed.
tools: [issue_refund]
effect: block
violation: "!has(call.args.amount) || call.args.amount > 500.0"
message: Refund amount is missing or above the 500.0 cap.

And the one line that guards your tool

@run.guard
def issue_refund(order_id: str, amount: float): ...

We tried to get past it

23 unsafe calls got past on the first test run

0 wrong answers in 488 test calls now

  • 1,500requests a second
  • 4.4 msor less for 99% of checks
  • 488test calls, run on every push

One laptop server, runs in memory. We wrote the test calls ourselves. Test log Benchmarks

Latin for “I forbid”. A Roman tribune could use it to stop an official’s act.

Set it up
pip install veto-guard