Agent HealthKit
Agent HealthKit is a platform-agnostic health monitoring SDK for AI agent frameworks. It provides a lightweight adapter interface that any agent system can implement to expose runtime metrics (memory usage, context size, error rates, uptime), built-in detectors for common failure modes like context bloat and resource exhaustion, and a unified run_full_check API that aggregates detector results into actionable health reports — all with zero required dependencies.
Install
pip install agent-healthkit
# Optional: system resource monitoring (CPU/RAM)
pip install agent-healthkit[system]
Quick Start
from healthkit_sdk import GenericAdapter, run_full_check
adapter = GenericAdapter()
adapter.set_metrics(memory_mb=512, context_tokens=45000, error_rate=0.01, uptime_seconds=3600)
report = run_full_check(adapter)
print(report.status) # "healthy" | "warning" | "critical"
print(report.issues) # list of detected issues
Built-in Detectors
| Detector | Description | Triggers When |
|---|---|---|
ContextBloatDetector |
Monitors token/context window usage | Context > 80% of max (warning) or > 95% (critical) |
SystemResourcesDetector |
Monitors CPU and RAM usage via psutil |
RAM > 80% (warning) or CPU > 90% (critical) |
Extending
Implement BaseAdapter to connect your own agent framework:
from healthkit_sdk import BaseAdapter, AgentMetrics
class MyAdapter(BaseAdapter):
def collect_metrics(self) -> AgentMetrics:
return AgentMetrics(memory_mb=..., context_tokens=..., ...)
License
MIT © JakebotLabs
Metadata
Release files for agent-healthkit 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| agent_healthkit-0.3.1.tar.gz | 11.4 kB | Without provenance | Details for agent_healthkit-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| agent_healthkit-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for agent_healthkit-0.3.1-py3-none-any.whl |
Total release size: 27.2 kB
Release files / agent_healthkit-0.3.1.tar.gz
| Download URL | agent_healthkit-0.3.1.tar.gz |
|---|---|
| Size | 11.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
34c4022fa73860444e8e496aa04ffa80eaddcc55d218ced533953d4a1b3e9ef6
|
|
BLAKE2b-256 checksum How to use checksums |
13b1ef20a4ac8fdadc010621c643ddc76e0e97a0206a4cbd863da9fb7c0a3ac1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / agent_healthkit-0.3.1-py3-none-any.whl
| Download URL | agent_healthkit-0.3.1-py3-none-any.whl |
|---|---|
| Size | 15.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e727cc34e85ec988872c16e04fefc8f558230c8cb18bd8438b3d8448d7c51e34
|
|
BLAKE2b-256 checksum How to use checksums |
6a53d025af3d803bc35b1f57778eb5117735c74daaca63b339dbc5113e7465c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for agent-healthkit 0.3.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.