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
ValidationErrorexceptions in multi-agent workflows (CrewAI, LangGraph, AutoGen).
Installation
pip install a2a-core
Quickstart
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}
Metadata
Release files for a2a-core 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| a2a_core-1.1.0.tar.gz | 11.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| a2a_core-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.1 kB
Release files / a2a_core-1.1.0.tar.gz
| Download URL | a2a_core-1.1.0.tar.gz |
|---|---|
| Size | 11.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6eaa6a8006edd04ae7cae7e26e668780f6a72632080097b97dc6ff6446ab34dc
|
|
BLAKE2b-256 checksum How to use checksums |
992dc5c68f53675d413536bc2e67829bb905aaeaa0115420e53162d9012aaab8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / a2a_core-1.1.0-py3-none-any.whl
| Download URL | a2a_core-1.1.0-py3-none-any.whl |
|---|---|
| Size | 12.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3d4c4134c707330ba4ea8ff9932cc05692457ad9e6622cddfd96b99404d9c879
|
|
BLAKE2b-256 checksum How to use checksums |
5ecb3f411bfb2ae6b3e65e4af931f0877884c771db0088da91df22a0533bb74d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Security for a2a-core 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.