Skip to main content

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.

  1. Bump version in pyproject.toml
  2. Commit and push to main
  3. Create and push a matching tag, e.g. v0.1.1
  4. 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

Metadata

Release files for art-sdk 0.1.1

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

Source distribution (sdist)

Source distribution for art-sdk 0.1.1
File Size Uploaded Provenance
art_sdk-0.1.1.tar.gz 139.4 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for art-sdk 0.1.1
File Interpreter ABI Platform
art_sdk-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 158.9 kB

Release files / art_sdk-0.1.1.tar.gz

Download URL art_sdk-0.1.1.tar.gz
Size 139.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e983f35589cf572f5f9da0764d5b5046b107d33903d975405002dd3ebc74e164
BLAKE2b-256 checksum
How to use checksums
fe176aaa9d88685adec967915b3886ce8884574a9baee4b98c0631cf3aa3c9f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Mar 8, 2026.

Transparency log

Release files / art_sdk-0.1.1-py3-none-any.whl

Download URL art_sdk-0.1.1-py3-none-any.whl
Size 19.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
53f7fcfee379c0a004a8b2d2c8cb9680adc4e251239a62adadc0f67626d5e459
BLAKE2b-256 checksum
How to use checksums
453665016082bae24af764e7cd856886ddb4fc0d3d7dadcd9cc6c2b4eb62f7d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Mar 8, 2026.

Transparency log

Security for art-sdk 0.1.1

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for art_sdk-0.1.1.tar.gz

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 Mar 8, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

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