Metadata-Version: 2.4
Name: agentrx-sdk
Version: 0.3.0
Summary: Production recovery layer for AI agents — classifies tool failures and returns actionable recovery instructions.
Author: Chain Assets LLC
License: MIT
Project-URL: Homepage, https://chainassetslab.com
Project-URL: Repository, https://github.com/chainassetslab/agentrx-python
Keywords: ai,agents,llm,recovery,mcp,langchain,crewai
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: httpx>=0.27.0
Requires-Dist: pydantic>=2.0.0
Provides-Extra: dev
Requires-Dist: pytest>=8.0.0; extra == "dev"
Requires-Dist: pytest-asyncio>=0.23.0; extra == "dev"
Requires-Dist: respx>=0.21.0; extra == "dev"
Provides-Extra: langchain
Requires-Dist: langchain-core>=0.1.0; extra == "langchain"
Provides-Extra: crewai
Requires-Dist: crewai>=0.1.0; extra == "crewai"
Provides-Extra: all
Requires-Dist: langchain-core>=0.1.0; extra == "all"
Requires-Dist: crewai>=0.1.0; extra == "all"

# 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
