Skip to main content

Real-time governance and human-in-the-loop approval for AI agents.

Project description

Veto2 SDK (veto2)

🛡️ Stop AI Agents from going rogue. Add strict access control and human-in-the-loop approval to your AI agents with one line of code.

Installation

pip install veto2

Quick Start

1. Login

First, set up your credentials. This will save your API key locally.

import veto2

veto2.login() # Follow the prompt to enter your API key

2. Protect Your Tools

Wrap any sensitive function (tool) with the @veto2.guard() decorator.

import veto2

@veto2.guard(name="delete_database")
def delete_everything():
    # This logic will only execute if APPROVED in the Veto dashboard
    db.drop_all()
    return "Action performed"

# When called, this will verify with the backend
delete_everything()

How it Works

  • Interception: The SDK intercepts the function call before it executes.
  • Verification: It sends the tool name and (masked) parameters to the Veto backend.
  • Decision:
    • APPROVED: Function executes normally.
    • BLOCKED: Raises PermissionDeniedError.
    • PAUSE: The SDK polls until a human manager approves/rejects the action via the dashboard.

Security & Privacy

Veto2 automatically masks potential PII (like emails) locally before sending any data to our servers.


For more information, visit Veto.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

veto2-0.1.0.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

veto2-0.1.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file veto2-0.1.0.tar.gz.

File metadata

  • Download URL: veto2-0.1.0.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for veto2-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c6b8ed48ea38a3c8fe5f673d0a331446166b8fd25cc0085b1dc8943ff2bd810c
MD5 44f37c61438be52f937cced1640d1fc0
BLAKE2b-256 5fa519fad2742da00c8ff45994b4d4f80df8bf7cb32c2c06c2320d64e880ba8f

See more details on using hashes here.

File details

Details for the file veto2-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: veto2-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for veto2-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 85ad0cc1839c7a3877d01e7f3032559f16dbb6246022b6a8d4a8ea4c04ba9086
MD5 248c8c83f14d636d69b26c6597eb1a40
BLAKE2b-256 279fd6a14d3e1115bd20f114eb46d4317c832fb9057a396d5dbfa7c810eb4a30

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page