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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d4e3d61e7c03072aad12b97f582a6d7bc32e0dd87fa7fe785505d3b7f5d3e7f
|
|
| MD5 |
90c9b72fc35a63340c4711483c4606ff
|
|
| BLAKE2b-256 |
1b9269a63de0c6557e2bf6b124e8166f3bc5aec2a0d4fd54d16d11413abde844
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
interai_risk_oracle-0.1.2b0.tar.gz -
Subject digest:
8d4e3d61e7c03072aad12b97f582a6d7bc32e0dd87fa7fe785505d3b7f5d3e7f - Sigstore transparency entry: 2582689967
- Sigstore integration time:
-
Permalink:
InterAILabs/ai-risk-oracle@e5d1020ec5ceb5e636a3f9f89c4e001a295e72a9 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/InterAILabs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python.yml@e5d1020ec5ceb5e636a3f9f89c4e001a295e72a9 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file interai_risk_oracle-0.1.2b0-py3-none-any.whl.
File metadata
- Download URL: interai_risk_oracle-0.1.2b0-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c9a06aed510b8436b39452338be2fa5b834ca77efc7641855b60e0c5c09ab7e5
|
|
| MD5 |
d26e6901c6a70ea0c4bc42e09dbd47a3
|
|
| BLAKE2b-256 |
16781be1810cfebe717913166a42c27ee472a42d06252d1e589999af7cfd9c2d
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
interai_risk_oracle-0.1.2b0-py3-none-any.whl -
Subject digest:
c9a06aed510b8436b39452338be2fa5b834ca77efc7641855b60e0c5c09ab7e5 - Sigstore transparency entry: 2582689971
- Sigstore integration time:
-
Permalink:
InterAILabs/ai-risk-oracle@e5d1020ec5ceb5e636a3f9f89c4e001a295e72a9 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/InterAILabs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python.yml@e5d1020ec5ceb5e636a3f9f89c4e001a295e72a9 -
Trigger Event:
workflow_dispatch
-
Statement type: