Skip to main content

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()

Metadata

Release files for vantageai 0.4.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vantageai 0.4.2
File Size Uploaded
vantageai-0.4.2.tar.gz 27.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vantageai 0.4.2
File Interpreter ABI Platform
vantageai-0.4.2-py3-none-any.whl Python 3 none any Details

Total release size: 52.9 kB

Release files / vantageai-0.4.2.tar.gz

Download URL vantageai-0.4.2.tar.gz
Size 27.4 kB
Tags Source
SHA-256 checksum
How to use checksums
1234300edffb25534358ad0ea8d858951633a75aa19c1aaef6d2715b4c0a78d4
BLAKE2b-256 checksum
How to use checksums
825d8e59ea4bd519806c5da2c10e2602ee75f7efde6cf23ac7e38fae185ec5cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release files / vantageai-0.4.2-py3-none-any.whl

Download URL vantageai-0.4.2-py3-none-any.whl
Size 25.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e786b8597037668eb654a7f1c25b976dc8d772b2128eb29ecbfcb56705fed0be
BLAKE2b-256 checksum
How to use checksums
92381c6aa6fbd611ac8bc56b636bb05b7207c55cfd36b9543a431060e2d8d779
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release history Release notifications | RSS feed

This release

0.4.2 This release

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page