Catalog PyPI
PACKAGE EXPLORERView in registry

a2a-core

PyPI

Python Client SDK for Autonomous Agent-to-Agent (A2A) Micro-Utilities with x402 V2 Micropayments

Versions collected1
Direct dependencies3From release 1.1.0
Last observed20 Oct, 16:24 UTC

README

Version 1.1.0 documentation

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

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}

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
1.1.017 Sept 20263

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 16:24 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:644db086e75157f21ab279284109534806886bc8ccda73eb7e93412958a9e88a