← 返回
未分类

Ucp Checkout A2a

Implement UCP Checkout over the A2A (Agent-to-Agent) binding — enable autonomous agent-to-agent commerce using Agent Cards and structured message parts. Use...
在 A2A(代理转代理)绑定上实现 UCP 结账,使用代理卡片和结构化消息部件实现自主代理间商务。
ichiorca ichiorca 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 243
下载
💾 0
安装
1
版本
#latest

概述

UCP Checkout — A2A Binding

Before writing code

Fetch live spec: Web-search site:ucp.dev specification checkout-a2a and fetch the page for the exact message structure, DataPart keys, and Agent Card format.

Also review Google's A2A protocol spec for the underlying transport: https://google.github.io/A2A/

Conceptual Architecture

What is A2A?

A2A (Agent-to-Agent) is a protocol for autonomous inter-agent communication. UCP's A2A binding lets a Platform agent talk to a Business agent using structured messages rather than REST calls.

How It Works

  1. Discovery: Business publishes an Agent Card at the URL declared in their /.well-known/ucp profile under services.dev.ucp.shopping.a2a.endpoint.
  2. Communication: Platform sends messages with checkout data in DataPart objects. Business agent responds with checkout state in DataPart objects.
  3. Identification: Platform includes UCP-Agent header and X-A2A-Extensions header referencing the UCP spec version.

Key Data Part Keys

KeyDirectionPurpose
-------------------------
a2a.ucp.checkoutBothCheckout session data
a2a.ucp.checkout.payment_dataPlatform → BusinessPayment credentials for completion
a2a.ucp.checkout.risk_signalsPlatform → BusinessOptional risk signals
ap2.merchant_authorizationBusiness → PlatformMerchant's JWS detached content signature for AP2 mandate flow
ap2.checkout_mandatePlatform → BusinessSD-JWT+kb credential proving user-authorized agent checkout

Message Structure

Messages use A2A's standard format:

  • messageId: Unique ID (used for idempotency)
  • contextId: Session/conversation ID
  • kind: "message"
  • role: "user" (from platform) or "agent" (from business)
  • parts: Array of TextPart and DataPart objects

Checkout data is carried in DataPart with the appropriate key.

Idempotency

The Business agent uses messageId to detect duplicate requests. Task tracking uses taskId with contextId.

When to Use A2A

  • Fully autonomous agent-to-agent commerce (no human in the loop for most steps)
  • Multi-agent architectures where commerce is one capability among many
  • When you want the Business to maintain its own agent logic (not just expose tools)

Implementation Guidance

Before implementing, fetch the latest sample A2A Business Agent from https://github.com/Universal-Commerce-Protocol/samples (look for the a2a/ directory) to see the reference pattern.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-21 14:54 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

Find Skills

guipi888
场景驱动+关键词双模式技能发现工具。当用户用自然语言描述场景/需求(如"我想做一个海报""帮我分析股票"),或明确说"安装技能/find skills/找个skill"时,自动从官方内置、本地已安装、SkillHub、虾评、GitHub、C
★ 1,494 📥 558,383
dev-programming

Ucp Checkout Rest

ichiorca
实现 UCP Checkout REST 绑定:创建、获取、更新、完成、取消结算会话,使用正确的请求头、幂等性及状态转换。
★ 0 📥 312
ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,412 📥 325,282