Metadata-Version: 2.4
Name: a2a-core
Version: 1.1.0
Summary: Python Client SDK for Autonomous Agent-to-Agent (A2A) Micro-Utilities with x402 V2 Micropayments
Author-email: Autonomous Agent Swarm Architects <ops@a2a.network>
License: Apache-2.0
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Intended Audience :: Developers
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: httpx>=0.25.0
Requires-Dist: pydantic>=2.0.0
Provides-Extra: crypto
Requires-Dist: eth-account>=0.10.0; extra == "crypto"

# a2a-core: Autonomous Agent-to-Agent Python Client SDK

Dual-tier client library for Autonomous Agent-to-Agent (A2A) micro-utilities featuring x402 V2 gasless micropayments on Base L2.

## Features
- **Tier 1 (Zero-Cost Local Fast-Path):** Strip markdown fences, repair whitespace, and validate JSON schemas locally at $0.00 compute cost.
- **Tier 2 (Cloud Booster Fallback):** Transparently escalate complex structural drift and SMT logic violations to Cloud Run micro-utilities via x402 V2 micropayments.
- **Pydantic v2 Integration:** Seamlessly catch and auto-repair `ValidationError` exceptions in multi-agent workflows (CrewAI, LangGraph, AutoGen).

## Installation
```bash
pip install a2a-core
```

## Quickstart
```python
from a2a import SchemaHarmonizer

harmonizer = SchemaHarmonizer()
result = harmonizer.harmonize(
    raw_payload='```json\n{"user_id": 123, "balance": 450.5}\n```',
    target_schema={"type": "object", "required": ["user_id", "balance"]}
)
print(result.canonical_ast)
# Output: {'user_id': 123, 'balance': 450.5}
```
