复制安装命令
用 Codex 或 Claude 安装复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它先审查 Skill 页面再帮你安装。
复制前请先查看来源、License 和安全提示。
A reference implementation of the Agentic Commerce Protocol (ACP) and Universal Commerce Protoco...
用 Codex 或 Claude 安装复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它先审查 Skill 页面再帮你安装。
复制前请先查看来源、License 和安全提示。
来源文件:README.md

A reference implementation of the Agentic Commerce Protocol (ACP) and Universal Commerce Protocol (UCP), built for merchant-controlled checkout, payments, and agent orchestration.

flowchart TB
subgraph Client["Client Layer"]
CA[🤖 Client Agent]
subgraph Webhooks["UI Webhook Receivers"]
WH_ACP["/api/webhooks/acp"]
WH_UCP["/api/webhooks/ucp"]
BRIDGE["Webhook → Agent Activity Bridge"]
end
end
subgraph Integration["Integration Options"]
direction LR
subgraph SDK["Apps SDK Layer"]
MCP["📦 Apps SDK MCP Server<br/>(Port 2091)"]
subgraph tools["Entry Point"]
T1["search-products<br/>(returns widget)"]
end
WIDGET["🛒 Autonomous Widget<br/>(cart, checkout, recs)"]
end
subgraph Native["Native Protocol Layer"]
ACP["🔗 ACP REST Transport"]
UCP["🔗 UCP A2A Transport"]
subgraph endpoints["Protocol Endpoints"]
E1["ACP: /checkout_sessions/*"]
E2["UCP: /.well-known/ucp"]
E3["UCP: /.well-known/agent-card.json"]
E4["UCP: /a2a (message/send)"]
end
end
end
subgraph Backend["Backend Services"]
MERCHANT["🏪 Merchant API<br/>(Port 8000)"]
PSP["💳 PSP Service<br/>(Port 8001)"]
subgraph merchant_features["Merchant Features"]
M1[Products & Sessions]
M2[Checkout & Promotions]
M3[Orders & Recommendations]
end
subgraph psp_features["PSP Features"]
P1[Payment Delegation]
P2[Vault Tokens]
P3[Idempotency]
end
end
subgraph Agents["NAT Agents"]
PROMO["🎯 Promotion Agent<br/>(Port 8002)"]
POST["📨 Post-Purchase Agent<br/>(Port 8003)"]
RECS["🔍 Recommendation Agent<br/>(Port 8004)"]
SEARCH["🔎 Search Agent<br/>(Port 8005)"]
end
subgraph NIMs["NVIDIA NIMs"]
LLM["🧠 Nemotron Nano LLM<br/>(Port 8010)"]
EMBED["📐 NV-EmbedQA-E5<br/>(Port 8011)"]
end
subgraph Data["Data Stores"]
SQLITE[("🗄️ SQLite<br/>Application DB")]
MILVUS[("🧠 Milvus<br/>Vector DB")]
end
CA -->|MCP| MCP
CA -->|REST| ACP
CA -->|A2A JSON-RPC| UCP
MCP -.->|loads| WIDGET
WIDGET -->|MCP tools| MCP
MCP --> MERCHANT
ACP --> E1
UCP --> E2
UCP --> E3
UCP --> E4
E1 --> MERCHANT
E4 --> MERCHANT
MERCHANT --> PSP
MERCHANT --> PROMO
MERCHANT --> POST
MERCHANT --> RECS
MERCHANT --> SEARCH
MERCHANT --> SQLITE
MERCHANT -->|ACP post-purchase webhook| WH_ACP
MERCHANT -->|UCP order webhook| WH_UCP
WH_ACP --> BRIDGE
WH_UCP --> BRIDGE
BRIDGE --> CA
PROMO --> LLM
POST --> LLM
RECS --> LLM
RECS --> EMBED
SEARCH --> LLM
SEARCH --> EMBED
EMBED --> MILVUS
RECS --> MILVUS
SEARCH --> MILVUS
This is the recommended path. It does not require local NIM containers.
git clone https://github.com/NVIDIA/Retail-Agentic-Commerce.git
cd Retail-Agentic-Commerce
cp env.example .env
Update .env:
NVIDIA_API_KEY=nvapi-xxx
In Codex or Claude Code, simply run: /setup
| Mode | Description | Guide |
|---|---|---|
| Docker (recommended) | Full stack in containers via Docker Compose | Docker Deployment |
| Local Development | Services on host, automated via install.sh | Local Development |
Quick local start:
./install.sh # install deps + start all 8 services
./stop.sh # stop everything
Local NIM deployment requires NVIDIA GPUs to host the inference models. The following table summarizes the models and their GPU requirements:
| Model | Purpose | Minimum GPU | Recommended GPU |
|---|---|---|---|
| Nemotron-Nano-30B-A3B | LLM — prompt planning, recommendations, search, promotions | 1× A100 (80 GB) | 1× H100 (80 GB) |
| NV-EmbedQA-E5-v5 | Embedding — semantic search and product retrieval | 1× A100 (80 GB) | 1× H100 (80 GB) |
Total: 2× A100 (80 GB) minimum, 2× H100 (80 GB) recommended for best performance.
Note: These requirements apply only to self-hosted local NIM deployment. The default deployment uses public NVIDIA API endpoints and does not require any GPU hardware.
Only needed for self-hosted local inference. The default deployment already works with public endpoints.
For step-by-step instructions (prerequisites, GPU setup, NIM containers, validation), see the Local NIM Deployment Notebook.
src/
├── merchant/ # Merchant API (FastAPI)
├── payment/ # PSP service (FastAPI)
├── apps_sdk/ # MCP server + widget
├── agents/ # NAT agents and configs
└── ui/ # Next.js demo UI
deploy/
├── docker-deployment.md
├── local-development.md
└── 1_Deploy_Agentic_Commerce.ipynb
docs/
├── architecture.md
├── features/
└── specs/
GOVERNING TERMS: The Blueprint scripts are governed by Apache License, Version 2.0, and enables use of separate open source and proprietary software governed by their respective licenses: Nemotron-Nano-V3, (ii) MIT license for NV-EmbedQA-E5-v5. The sample data is governed by the NVIDIA Data License for Retail Agentic Commerce.
This project will download and install additional third-party open source software projects. Review the license terms of these open source projects before use, found in License-3rd-party.txt.
name: ui
description: React and Next.js frontend development standards for Retail-Agentic-Commerce. Use when creating or modifying UI pages, components, hooks, styling, tests, or Apps SDK widget browser behavior in src/ui or related frontend surfaces.Use this skill for frontend changes in src/ui/ and related UI surfaces.
AGENTS.md before coding.Run these commands from src/ui before committing UI-related changes:
pnpm lint
pnpm format:check
pnpm typecheck
pnpm test:run
If the change also touches backend code, run the backend CI parity commands in skills/features/SKILL.md.
Use browser automation tools when available for:
Validation should prove the real UI path works. Prefer snapshots or screenshots, interaction evidence, and console checks over assumptions.
'use client' only when interactivity or browser APIs require it.page.tsx, layout.tsx, loading.tsx, and error.tsx.Image and Link where appropriate.any; justify unavoidable uses in a short comment.console.log calls.*.test.tsx or *.spec.tsx.getByRole and accessible queries over getByTestId.The work is incomplete if relevant tests or checks were skipped without an explicit reason, if the browser path was changed but not verified, or if the implementation does not match the repo docs and architecture.
评论 (0)
暂无评论,成为第一个评论者吧!