a2a-core


توضیحات

Python Client SDK for Autonomous Agent-to-Agent (A2A) Micro-Utilities with x402 V2 Micropayments
ویژگی مقدار
سیستم عامل OS Independent
نام فایل a2a-core-1.1.0
نام a2a-core
نسخه کتابخانه 1.1.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده -
ایمیل نویسنده Autonomous Agent Swarm Architects <ops@a2a.network>
آدرس صفحه اصلی -
آدرس اینترنتی https://pypi.org/project/a2a-core/
مجوز Apache-2.0
# 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} ```


نیازمندی

مقدار نام
- httpx>=0.25.0
- pydantic>=2.0.0
xtr eth-account>=0.10.0;


زبان مورد نیاز

مقدار نام
>=3.9 Python


نحوه نصب


نصب پکیج whl a2a-core-1.1.0:

    pip install a2a-core.whl


نصب پکیج tar.gz a2a-core-1.1.0:

    pip install a2a-core.tar.gz