Skip to main content

a2a-settlement

Python SDK for the A2A Settlement Extension (A2A-SE) — the settlement layer for autonomous agent commerce.

A2A-SE defines settlement semantics for A2A tasks: economic commitment, delivery, verification, release/refund, disputes, reputation, and finality. Escrow is one mechanism that implements commitment. Zero modifications to A2A core. Currency-agnostic.

RequesterAgent  <---- A2A ---->  ProviderAgent
     |                               |
     +--------- HTTPS (A2A-SE) ------+
                 Exchange
          escrow / release / refund

Install

pip install a2a-settlement

With Ed25519 identity helpers:

pip install a2a-settlement[identity]

Quick start

from a2a_settlement import SettlementExchangeClient

client = SettlementExchangeClient("https://your-exchange.example.com")

# Create an escrow
escrow = await client.create_escrow(
    payer_id="agent-alice",
    payee_id="agent-bob",
    amount="10.00",
    currency="USD",
    task_id="task-123",
)

# Release funds on task completion
await client.release_escrow(escrow["escrow_id"])

Features

  • Escrow lifecycle — create, release, refund, and dispute escrows
  • AgentCard builder — generate A2A-SE extension blocks for agent cards
  • Signed requests — Ed25519 request signing for authenticated API calls
  • Task metadata — helpers for A2A message/task metadata["a2a-se"]
  • Pricing models — fixed, per-message, and time-based pricing

Links

License

MIT

Metadata

Release files for a2a-settlement 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for a2a-settlement 1.2.0
File Size Uploaded
a2a_settlement-1.2.0.tar.gz 12.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for a2a-settlement 1.2.0
File Interpreter ABI Platform
a2a_settlement-1.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 25.1 kB

Release files / a2a_settlement-1.2.0.tar.gz

Download URL a2a_settlement-1.2.0.tar.gz
Size 12.8 kB
Tags Source
SHA-256 checksum
How to use checksums
6ab47ab026985ef842d254a60ffb7c8a4358b15e5dcb7d0e986741276f88411d
BLAKE2b-256 checksum
How to use checksums
a77f48a1f9661451e87f6fdacc1aa8a845f8a9f3a6abf2b41978d4a2d52fd9e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 15, 2026.

Transparency log

Release files / a2a_settlement-1.2.0-py3-none-any.whl

Download URL a2a_settlement-1.2.0-py3-none-any.whl
Size 12.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
66ee6d4adc014b1eee50d55d6b219ee5e5dc302ba5a740824166534cab3f1ef8
BLAKE2b-256 checksum
How to use checksums
d22e92800a7202b479fabbb4feb802574d8b500937385ee8c80df97a0b340b3c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 15, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files

1.0.0

2 release files

0.9.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page