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.

Download files

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

Source Distribution

interai_risk_oracle-0.1.2b0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

interai_risk_oracle-0.1.2b0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file interai_risk_oracle-0.1.2b0.tar.gz.

File metadata

  • Download URL: interai_risk_oracle-0.1.2b0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for interai_risk_oracle-0.1.2b0.tar.gz
Algorithm Hash digest
SHA256 8d4e3d61e7c03072aad12b97f582a6d7bc32e0dd87fa7fe785505d3b7f5d3e7f
MD5 90c9b72fc35a63340c4711483c4606ff
BLAKE2b-256 1b9269a63de0c6557e2bf6b124e8166f3bc5aec2a0d4fd54d16d11413abde844

See more details on using hashes here.

Provenance

The following attestation bundles were made for interai_risk_oracle-0.1.2b0.tar.gz:

Publisher: publish-python.yml on InterAILabs/ai-risk-oracle

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file interai_risk_oracle-0.1.2b0-py3-none-any.whl.

File metadata

File hashes

Hashes for interai_risk_oracle-0.1.2b0-py3-none-any.whl
Algorithm Hash digest
SHA256 c9a06aed510b8436b39452338be2fa5b834ca77efc7641855b60e0c5c09ab7e5
MD5 d26e6901c6a70ea0c4bc42e09dbd47a3
BLAKE2b-256 16781be1810cfebe717913166a42c27ee472a42d06252d1e589999af7cfd9c2d

See more details on using hashes here.

Provenance

The following attestation bundles were made for interai_risk_oracle-0.1.2b0-py3-none-any.whl:

Publisher: publish-python.yml on InterAILabs/ai-risk-oracle

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.2b0 This release

2 files

Supported by

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