AI Reliability Toolkit — runtime observability for AI agents
Project description
ART SDK — AI Reliability Toolkit
Runtime observability and reliability for AI agents. Zero dependencies.
Install
pip install art-sdk
pip install art-sdk[openai] # with OpenAI instrumentation
Quick Start
import art
# Evaluate any prompt/response pair
result = art.evaluate(
prompt="What is the capital of France?",
response="The capital of France is Paris."
)
print(result.confidence_score) # 0–100
print(result.hallucination_score) # 0–100 (lower is better)
# Auto-instrument OpenAI — every call gets evaluated
art.instrument_openai()
client = openai.OpenAI()
response = client.chat.completions.create(...)
# [ART] gpt-4o | confidence:82 hallucination:12 | $0.00023 | 340ms
# Group multi-step agent calls into a trace
with art.trace("session-abc"):
r1 = client.chat.completions.create(...) # step 0
r2 = client.chat.completions.create(...) # step 1
# Enforce a cost budget
with art.cost_guard(max_usd=0.05):
response = client.chat.completions.create(...)
# raises art.BudgetExceededError if over budget
Configure
art.init(
pipeline="my-agent", # tag your pipeline
export_to="console", # "console" | "art_cloud" | "none"
art_cloud_url="http://...", # ART Cloud endpoint (optional)
max_usd_per_request=0.10, # global cost cap (optional)
)
Release to PyPI
This repo publishes to PyPI with GitHub Actions via trusted publishing.
- Bump
versioninpyproject.toml - Commit and push to
main - Create and push a matching tag, e.g.
v0.1.1 - GitHub Actions builds and publishes to PyPI
First-time PyPI setup:
- In PyPI, add a trusted publisher (or pending publisher) for project
art-sdk - Owner:
aixel-code - Repository:
art-sdk - Workflow:
publish-pypi.yml
Manual local fallback:
uv build
uv publish
Project details
Release history Release notifications | RSS feed
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 art_sdk-0.1.1.tar.gz.
File metadata
- Download URL: art_sdk-0.1.1.tar.gz
- Upload date:
- Size: 139.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e983f35589cf572f5f9da0764d5b5046b107d33903d975405002dd3ebc74e164
|
|
| MD5 |
d46e0de7362ce1edea29f6b36c444662
|
|
| BLAKE2b-256 |
fe176aaa9d88685adec967915b3886ce8884574a9baee4b98c0631cf3aa3c9f4
|
Provenance
The following attestation bundles were made for art_sdk-0.1.1.tar.gz:
Publisher:
publish-pypi.yml on aixel-code/art-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
art_sdk-0.1.1.tar.gz -
Subject digest:
e983f35589cf572f5f9da0764d5b5046b107d33903d975405002dd3ebc74e164 - Sigstore transparency entry: 1059633268
- Sigstore integration time:
-
Permalink:
aixel-code/art-sdk@f55cbf504a79567dc9b6e6d2a324021458444027 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/aixel-code
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@f55cbf504a79567dc9b6e6d2a324021458444027 -
Trigger Event:
push
-
Statement type:
File details
Details for the file art_sdk-0.1.1-py3-none-any.whl.
File metadata
- Download URL: art_sdk-0.1.1-py3-none-any.whl
- Upload date:
- Size: 19.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
53f7fcfee379c0a004a8b2d2c8cb9680adc4e251239a62adadc0f67626d5e459
|
|
| MD5 |
adb314c3a7943105c2dff2a55092cc62
|
|
| BLAKE2b-256 |
453665016082bae24af764e7cd856886ddb4fc0d3d7dadcd9cc6c2b4eb62f7d9
|
Provenance
The following attestation bundles were made for art_sdk-0.1.1-py3-none-any.whl:
Publisher:
publish-pypi.yml on aixel-code/art-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
art_sdk-0.1.1-py3-none-any.whl -
Subject digest:
53f7fcfee379c0a004a8b2d2c8cb9680adc4e251239a62adadc0f67626d5e459 - Sigstore transparency entry: 1059633272
- Sigstore integration time:
-
Permalink:
aixel-code/art-sdk@f55cbf504a79567dc9b6e6d2a324021458444027 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/aixel-code
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@f55cbf504a79567dc9b6e6d2a324021458444027 -
Trigger Event:
push
-
Statement type: