Vendor-neutral governance SDK for enterprise AI agents
Project description
vantageai
Python SDK for Vantage governance, execution-boundary enforcement, and brokered model execution.
Install
pip install vantageai
Core Client
from vantageai import VantageClient
client = VantageClient(
api_key="vt-...",
agent_id="mortgage-underwriter",
base_url="https://api.vantage.ai",
)
Evaluate, Authorize, Commit
decision = await client.evaluate(
action_type="approve_large_loan",
action_payload={"amount": 850000, "applicantId": "app-123"},
)
authorization = await client.authorize(
action_type="openai.chat.completions.create",
action_payload={
"model": "gpt-4.1-mini",
"messages": [{"role": "user", "content": "Review this file"}],
},
execution_trace_id="trace-123",
ttl_seconds=120,
)
if authorization.decision == "allow" and authorization.authorization:
await client.commit_authorization(
authorization.authorization.id,
action_payload={
"model": "gpt-4.1-mini",
"messages": [{"role": "user", "content": "Review this file"}],
},
execution_trace_id="trace-123",
)
Brokered Provider Execution
result = await client.broker_openai_chat_completion(
request={
"model": "gpt-4.1-mini",
"messages": [{"role": "user", "content": "Review this mortgage application"}],
"stream": False,
},
execution_trace_id="trace-123",
ttl_seconds=180,
)
if result.decision == "allow":
print(result.authorizationId, result.commitAttemptId, result.completion)
Anthropic and OpenAI-compatible broker client helpers are available too:
from vantageai import create_brokered_anthropic_client, create_brokered_openai_client
openai = create_brokered_openai_client(client, execution_trace_id="trace-123", ttl_seconds=180)
anthropic = create_brokered_anthropic_client(client, execution_trace_id="trace-123", ttl_seconds=180)
Observed Wrappers
from openai import OpenAI
from vantageai import VantageClient, wrap_openai_client
vantage = VantageClient(api_key="vt-...", agent_id="mortgage-underwriter")
openai = wrap_openai_client(OpenAI(api_key="..."), vantage)
await openai.chat.completions.create(
model="gpt-4.1-mini",
messages=[{"role": "user", "content": "Summarize this file"}],
)
Observed wrappers keep post-execution logging behavior. If the org is in broker-required mode, strict logging surfaces that violation instead of silently claiming execution was governed.
Operator Visibility
boundary = await client.get_execution_boundary_settings()
authorizations = await client.list_execution_authorizations(limit=20)
attempts = await client.list_execution_commit_attempts(limit=20)
performance = await client.get_performance_snapshot()
Sync Usage
from vantageai import VantageClientSync
client = VantageClientSync(api_key="vt-...", agent_id="mortgage-underwriter")
snapshot = client.get_execution_boundary_settings()
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vantageai-0.4.1.tar.gz.
File metadata
- Download URL: vantageai-0.4.1.tar.gz
- Upload date:
- Size: 26.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c167d7fb71284db0b9f1b3e852998478f19a9487496a02c1a31363c69a5a0da
|
|
| MD5 |
e6d595e38acdfd083eac9cda2bccb941
|
|
| BLAKE2b-256 |
5092ec00112ad62fd570b3099f65e8e30cacf6d0479bcde136e61ccbc1ed6191
|
File details
Details for the file vantageai-0.4.1-py3-none-any.whl.
File metadata
- Download URL: vantageai-0.4.1-py3-none-any.whl
- Upload date:
- Size: 24.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7049ddc070a9ec73d390fe13b935f00e24a98c168c9482593bdebc55ff26f008
|
|
| MD5 |
374227ff28dd88bee659b1d002274ad9
|
|
| BLAKE2b-256 |
02f3f066fca0cf1d6ada7adf42d10893765fa9b6cd4d0ae02945ebf37df32963
|