Skip to main content

Python SDK for Agent Passport - AI Agent compliance proof system for EU AI Act Art.50

Project description

Agent Passport SDK

5-minute EU AI Act Art.50 compliance for AI Agents on Base.

Agent Passport is a compliance proof system that helps platforms ensure every AI agent they interact with carries verifiable proof of regulatory compliance — starting with Art.50 disclosure obligations.

Install

pip install agent-passport

Quick Start

from agent_passport import AgentPassportClient, passport_guard, set_default_client

# Initialize (read-only)
client = AgentPassportClient(rpc_url="https://mainnet.base.org")
set_default_client(client)

# Protect your agent handler with one decorator
@passport_guard(required_scope="art50")
def handle(agent_id, query):
    return f"Compliant response to: {query}"

Register an Agent

client = AgentPassportClient(
    rpc_url="https://mainnet.base.org",
    private_key="0xYOUR_KEY"
)
agent_id = client.register_agent(
    name="MyAgent",
    operator="0xYourAddress",
    metadata_uri="https://example.com/metadata.json"
)

Art.50 Disclosure

from agent_passport import Art50ComplianceChecker

checker = Art50ComplianceChecker(client)
header = checker.generate_disclosure_header(agent_id, interaction_type="chat")
# => X-AI-Disclosure: agent=0x...; compliant=true; scope=art50; type=chat

Deployed Contracts (Base Mainnet)

Contract Address
AgentRegistry 0xbfd8Be6cBDa1Fb7A262E2A49c321E083a73638C9
AgentPassport 0x612Fdf1DFCABf73131DD1D517C5f365cC3FD4b96
AccessGateway 0x3dD4c216bc82145CDb1AF30b94d84383aa9292f9
CompliancePassport 0x799B35c31DeF0fB679F46026f81743D397A27959

Features

  • @passport_guard — Decorator to enforce compliance checks on any handler
  • Art50ComplianceChecker — Check compliance status and generate disclosure headers
  • DelegationManager — Create and verify agent delegation chains
  • Read-only mode — No private key needed for verification and queries

Links

License

MIT

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

agent_passport_agl-0.1.0.tar.gz (12.0 kB view details)

Uploaded Source

Built Distribution

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

agent_passport_agl-0.1.0-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for agent_passport_agl-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d3c21691dbc5838252174e674807848cf21f966d83a91ce6367001c96731032a
MD5 ef16b5082946916381ff158bbf230920
BLAKE2b-256 0edfd2a7ff914d2ff9b7b3ec489f2c8b7245f22391caa09c09e08d121eb5b6a0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for agent_passport_agl-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2815c3bc5f81a60510b3cbd708a9cbc8e27f13892b82d25a095ee4d34b63b0d2
MD5 e85916a25bf3d45c09f253ed088cf998
BLAKE2b-256 3864a3894a65b5853a4509641f497310627139ca6814ea7dbfc7b03a93d4897c

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