Skip to main content

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


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.1.0.tar.gz (8.3 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.1.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

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

Hashes for agentrx_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9d4f76e558e9eb418ac0310fd5e41cf028dd3e32b6cb3ef848a1dbb09720e12c
MD5 0adf2da8575172bb78169f684a869a6c
BLAKE2b-256 ff9ecebce5ef095ba14142b4caf116efa3ecf6c716df658639c968cb00217840

See more details on using hashes here.

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

Hashes for agentrx_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 81786e0daf1da5614713d784968b8b6ccd28b12c8ceac27ab012f0654e7dca87
MD5 54e4d04fb9e3376165953aa0921c7a56
BLAKE2b-256 c957150440edb7c36744da9803bfa064e96277234837fed1f89ad74308e0bb54

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