Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Python SDK

Hosted API client for InterAI Risk Oracle. It uses Certifi's portable CA bundle by default and also accepts a custom ssl_context in the constructor.

import os

from interai_risk_oracle import InterAIRiskOracleClient

client = InterAIRiskOracleClient(
    base_url="https://ai-risk-oracle.fly.dev",
    api_key=os.environ["INTERAI_API_KEY"],
)

decision = client.verify({
    "use_case": "agent-before-tool-execution",
    "action": {
        "type": "tool_call",
        "description": "Send account notice",
        "external_side_effect": True,
    },
    "context": {
        "agent_id": "agent_123",
        "environment": "production",
        "user_confirmation": False,
    },
    "policy": {
        "max_risk_level": "medium",
        "require_trust_receipt": True,
        "require_human_review_above": 0.75,
    },
}, idempotency_key="stable-business-operation-id")

If the idempotency key is omitted, the client creates a UUID for the call. Use a stable business-operation key when retrying the same action.

Metadata

Release files for interai-risk-oracle 0.1.3b0

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

Source distribution (sdist)

Source distribution for interai-risk-oracle 0.1.3b0
File Size Uploaded
interai_risk_oracle-0.1.3b0.tar.gz 3.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for interai-risk-oracle 0.1.3b0
File Interpreter ABI Platform
interai_risk_oracle-0.1.3b0-py3-none-any.whl Python 3 none any Details

Total release size: 7.9 kB

Release files / interai_risk_oracle-0.1.3b0.tar.gz

Download URL interai_risk_oracle-0.1.3b0.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
1a2dc7fda7d6806f792c01c4c2d593a6ddf24cc272ed0df1dc44319ffd86a6e9
BLAKE2b-256 checksum
How to use checksums
ee1e1e9a6630d94a094cc7a4d153a5497ee8457541b54ecb0d7c1beb6f254d1d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 7, 2026.

Transparency log

Release files / interai_risk_oracle-0.1.3b0-py3-none-any.whl

Download URL interai_risk_oracle-0.1.3b0-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2d7ab8c027ac44bfc4a96656d126fe65a2cb8e00c863abfbb752d36ab3eae648
BLAKE2b-256 checksum
How to use checksums
cf3404869197575e3276ae4bff00b8716b00cf1ddaa1e1265052ac28962d8458
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 7, 2026.

Transparency log
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