360 Secure SkillHub
360 安全技能中心

a2a-Market-ACP-Lite-Negotiation

这是仅支持网关循环模式的ACP协商技能,通过CLI启动,以买方或卖方角色注册到指定网关,接收协商轮次后,可选择规则引擎或OpenClaw大模型引擎生成决策响应。支持自动启动协商会话,可配置金额、轮次等参数,适用于自动化买卖协商场景,输入为CLI命令参数,输出为向网关提交的协商响应。

luoqianchenguni-max
luoqianchenguni-max
热度 57.74
最近更新 2026-05-11 17:33:42
分类:自动化依赖:代码执行 / 第三方 API / 内部调用大模型应用场景:自动化脚本 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add a2a-market-acp-lite-negotiation
Metadata
name
a2a-market-acp-lite-negotiation
description
Gateway-only ACP negotiation skill with optional OpenClaw model-driven turn decisions.

a2a-Market ACP Lite Negotiation

This skill is now gateway-only. Single-turn local decision mode has been removed.

Gateway Loop Mode (only mode)

Start one participant in one terminal:

node src/cli/index.js --role buyer --agent-id buyer-openclaw --gateway http://127.0.0.1:3085

Flow:

  1. POST /agents/register
  2. Loop GET /agents/pull
  3. POST /agents/respond
  4. For NEGOTIATION_TURN, decide by selected engine (rule or openclaw)

Core flags

  • --role buyer|seller
  • --gateway (default http://127.0.0.1:3085)
  • --agent-id
  • --decision-engine rule|openclaw (default rule)
  • --auth-token (default market-auth-token)
  • --pull-timeout-ms (default 25000)
  • --retry-delay-ms (default 1000)
  • --max-polls (0 means infinite)
  • --verbose true|false

OpenClaw engine flags

  • --provider-env (default OPENAI_API_KEY)
  • --api-key (optional direct key)
  • --allow-no-key true|false (default false)
  • --thinking (default low)
  • --timeout seconds (default 60)
  • --openclaw-extra-prompt (optional)

Auto-start session flags

  • --start-session true|false
  • --counterparty-agent-id (required with --start-session true)
  • --list-amount-minor-units (default 9000)
  • --currency (default USD)
  • --max-rounds (default 5)
  • --product (optional)
  • --goal (optional)
  • --floor-minor-units (optional)
  • --ceiling-minor-units (optional)
  • --session-id (default nego_<timestamp>)
  • --wait-counterparty-ms (default 15000)
  • --stop-on-session-end true|false

Single terminal: run skill + model + auto-kickoff

node src/cli/index.js \
  --role buyer \
  --agent-id buyer-openclaw \
  --gateway http://127.0.0.1:3085 \
  --decision-engine openclaw \
  --start-session true \
  --counterparty-agent-id seller-openclaw \
  --list-amount-minor-units 9000 \
  --currency USD \
  --max-rounds 5 \
  --wait-counterparty-ms 30000

Executable Entrypoint

node src/cli/index.js