Skip to main content

Production recovery layer for AI agents — classifies tool failures and returns actionable recovery instructions.

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agentrx_sdk-0.3.0.tar.gz (12.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agentrx_sdk-0.3.0-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

Details for the file agentrx_sdk-0.3.0.tar.gz.

File metadata

  • Download URL: agentrx_sdk-0.3.0.tar.gz
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.1

File hashes

Hashes for agentrx_sdk-0.3.0.tar.gz
Algorithm Hash digest
SHA256 f54851dbe893a10ae1cd81252f1322222bd33e3e7bdf2df927e4e0d0fa092014
MD5 7440eeb6ed456c7833155e4da618adb5
BLAKE2b-256 025207121e79b28575d81d84cd73f99f9689dcf3f5e32c66bbb647d6b40d1d8d

See more details on using hashes here.

File details

Details for the file agentrx_sdk-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: agentrx_sdk-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 13.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.1

File hashes

Hashes for agentrx_sdk-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a89d55f2ca423917d39d41525419e282636c5dfb9626fa1d6a37be3ce1a4daf5
MD5 ce0e13e7528df243a513ad11775822c9
BLAKE2b-256 383cd83c66aaef6921c443d86d6e216aea7cba9089f488eae6a47add59587de2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page