Skip to main content

AgentHealth Python SDK

Typed synchronous and asynchronous access to AgentHealth's Go CLI. This package preserves AHS v1 results, diagnostic codes, dependency relationships and graph IDs. Health failures return results; tool failures raise exceptions.

This SDK targets v0.22.1. Install with pip install agenthealth==0.22.1. See the release notes. Install a verified AgentHealth CLI of the same installed software version separately and put it on PATH, or pass its absolute path. Installation and imports never download or execute a binary. The SDK targets Python 3.10+ and CLI v0.22.1.

from agenthealth import Client, HealthStatus

client = Client(binary="/usr/local/bin/agenthealth", timeout=30)
report = client.check(target_type="http", endpoint="http://localhost:8080/health")
print(report.status, report.exit_code)
if report.status == HealthStatus.HEALTHY:
    print(report.result.target.name)
from agenthealth import async_check

async def probe():
    return await async_check("agenthealth.yaml")

Use Configuration for Python dictionaries or load_config for JSON/YAML. The same configuration supports all implemented CLI adapters, explicit active checks, nested dependencies and graph references. Credentials stay in configured references. Configuration is trusted executable input: MCP stdio can launch programs and endpoints can reach private networks. Loading validates schema; Go validates graph semantics at execution.

The SDK checks the exact CLI version, bounds configuration and output, enforces an overall deadline and stops checks on timeout/cancellation. POSIX checks use a dedicated process group to clean up descendants. On Windows termination covers the CLI process; detached stdio descendants require operator lifecycle controls. CLI stderr is never included in exceptions.

The SDK does not aggregate health independently, run OAuth login, register Python adapters, or auto-install the CLI. report.results preserves ordered roots, including each dependency projection. to_dict() preserves additional result fields. Relative paths retain the caller's working directory, matching the CLI; Configuration(data, base_dir=...) selects a different directory.

Source implementation is pre-1.0; PyPI availability is recorded separately in the repository capability status. See the repository's Python SDK guide for installation, release setup, errors and examples.

This package version: v0.22.1. Requires the matching CLI; model/LLM configuration is supported through the canonical schema.

Native database targets use the matching CLI; fixed SQL queries require explicit functional opt-in. Passwords use database.password_env references.

Qdrant/Pinecone vector-store checks are included in this version; use the matching v0.22.1 CLI. Other vector providers remain planned.

Phase 20 supplies the supported LangGraph/FastAPI runtime integration with safe peer hooks and an SDK consumer node. Other framework products remain planned.

Metadata

Release files for agenthealth 0.22.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 agenthealth 0.22.1
File Size Uploaded Provenance Actions
agenthealth-0.22.1.tar.gz 17.7 kB With provenance Details for agenthealth-0.22.1.tar.gz

Built distribution (wheel)

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

Total release size: 39.6 kB

Release files / agenthealth-0.22.1.tar.gz

Download URL agenthealth-0.22.1.tar.gz
Size 17.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e731cf58ea3991cfe31a93f15d10e4a0a6e5080883be9663cfff30cd18f702ff
BLAKE2b-256 checksum
How to use checksums
93c357eb4321191e8be829cd432e5a3a322f235e84fc52974a308d829aa66624
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 Nov 13, 2026.

Transparency log

Release files / agenthealth-0.22.1-py3-none-any.whl

Download URL agenthealth-0.22.1-py3-none-any.whl
Size 21.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
185f822a5aa6bc9b4ffbea0d03a839821c5e7b60b37a229e068c16441e045340
BLAKE2b-256 checksum
How to use checksums
97fe2b9e2c9f4ef8d68010c8de78fe1e4b6f17f946a0fcb2288b5492da1665bc
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 Nov 13, 2026.

Transparency log

Security for agenthealth 0.22.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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for agenthealth-0.22.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 Nov 13, 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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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