Drop-in recovery and resilience layer for AI agents
Project description
agentrx-python
Make your AI agents bulletproof in two lines.
Installation
pip install agentrx-sdk
Quick Start
from agentrx import with_recovery
@with_recovery(api_key="your_key", agent_id="my_agent") async def call_my_tool(payload: dict) -> dict: return await some_api.call(payload)
When call_my_tool raises an exception, AgentRx diagnoses it and automatically retries, corrects the payload, or tells you exactly what went wrong.
Environment Variables
AGENTRX_API_KEY — Your API key (required) AGENTRX_BASE_URL — AgentRx server URL (default: http://localhost:8000) OTEL_TRACE_ID — OpenTelemetry trace ID (optional) LANGSMITH_RUN_ID — LangSmith run ID (optional)
License
MIT
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 agentrx_sdk-0.1.0.tar.gz.
File metadata
- Download URL: agentrx_sdk-0.1.0.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d4f76e558e9eb418ac0310fd5e41cf028dd3e32b6cb3ef848a1dbb09720e12c
|
|
| MD5 |
0adf2da8575172bb78169f684a869a6c
|
|
| BLAKE2b-256 |
ff9ecebce5ef095ba14142b4caf116efa3ecf6c716df658639c968cb00217840
|
File details
Details for the file agentrx_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: agentrx_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
81786e0daf1da5614713d784968b8b6ccd28b12c8ceac27ab012f0654e7dca87
|
|
| MD5 |
54e4d04fb9e3376165953aa0921c7a56
|
|
| BLAKE2b-256 |
c957150440edb7c36744da9803bfa064e96277234837fed1f89ad74308e0bb54
|