Skip to main content

HumanAgent Python SDK

Human checkpoint infrastructure for AI workflows. When your AI agent needs judgment, trust, or a licensed signature — HumanAgent routes it.

Install

pip install humanagent

Quick start

from humanagent import HumanAgent

client = HumanAgent(api_key="ha_live_...")

# Create a checkpoint and wait for result
result = client.checkpoint(
    task="Review NDA for compliance gaps",
    credential="bar_licensed:US",
    sla="30min",
    budget=25.00
)

if result["status"] == "completed":
    print(result["result"]["approved"])   # True/False
    print(result["result"]["notes"])      # Reviewer's notes
    print(result["audit_hash"])           # SHA-256 tamper-evident hash

# Fire and forget (use webhook)
created = client.checkpoint(
    task="Pick best 3 ad creatives",
    credential="general",
    sla="1hr",
    budget=5.00,
    callback_url="https://my-agent.com/webhook",
    wait=False
)
print(created["checkpoint_id"])

API

HumanAgent(api_key, base_url=None, timeout=30)

Initialize the client.

.checkpoint(task, credential, sla, budget, ...wait=True)

Create a checkpoint. If wait=True, polls until result. If wait=False, returns immediately.

.create_checkpoint(task, credential, sla, budget, ...)

Create without waiting.

.get_checkpoint(checkpoint_id)

Poll status.

More info

Release files for humanagent 0.1.0

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

Source distribution (sdist)

Source distribution for humanagent 0.1.0
File Size Uploaded
humanagent-0.1.0.tar.gz 5.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for humanagent 0.1.0
File Interpreter ABI Platform
humanagent-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.9 kB

Release files / humanagent-0.1.0.tar.gz

Download URL humanagent-0.1.0.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b8b8947c03c6636bf20139a90692ef16c740084113ad811c8d87320e4e9d9e6b
BLAKE2b-256 checksum
How to use checksums
b8abf25bea7d1b7e01bb415abff9a35685552e1f876611b5ff70bdbfa732211b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.1

Release files / humanagent-0.1.0-py3-none-any.whl

Download URL humanagent-0.1.0-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1a2873f8ca45208e47b507ff56cea646a64f88c1cd009051d6fcc06b31bdf289
BLAKE2b-256 checksum
How to use checksums
b98579364590b8a7f4db91cb58d5890ec079bc80dbedcb7f884163291cb6dd71
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.1

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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