cli-a2a
它能做什么
这项技能展示如何使用 OmniRoute 命令行与智能体对智能体(A2A)服务器通信。适合想把任务发给智能体、跟踪任务并测试协议的开发者。
适用场景
- ✓当用户想从命令行把任务发送给 OmniRoute 智能体的时候。
- ✓当用户想查看智能体任务的状态或历史的时候。
- ✓当用户想测试智能体对智能体的 JSON-RPC 协议的时候。
技能链接
https://github.com/cheaper-inference/OmniRoute/blob/release/v3.8.53/skills/cli-a2a/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请把任务发给我的 OmniRoute 智能体,完成后把结果显示给我。”
每周 5 个新技能,1 分钟读完。
工作原理
这项技能列出 A2A 服务器的命令行命令。这些命令可以查看状态、查看智能体卡片、用 JSON 输入调用技能,以及监视、流式输出或取消任务。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Overview
Interact with the OmniRoute A2A server from the CLI. Send tasks, inspect skill execution history, and test the JSON-RPC 2.0 agent-to-agent protocol interactively.
Quick install
npm install -g omniroute # or: npx omniroute
omniroute --version
Subcommands
a2a
Agent-to-Agent (A2A) server
Example:
omniroute a2a
a2a status
Show A2A server status
Flags:
--json
Example:
omniroute a2a status
a2a card
Print the Agent Card JSON
Example:
omniroute a2a card
a2a skills
Example:
omniroute a2a skills
a2a invoke <skill>
Flags:
--input <json>--input-file <path>--wait--timeout <ms>
Example:
omniroute a2a invoke <skill>
a2a tasks
Example:
omniroute a2a tasks
a2a list
Flags:
--status <s>--skill <s>--limit <n>--since <ts>
Example:
omniroute a2a list
a2a get <id>
Example:
omniroute a2a get <id>
a2a cancel <id>
Flags:
--yes
Example:
omniroute a2a cancel <id>
a2a watch <id>
Example:
omniroute a2a watch <id>
a2a stream <id>
Example:
omniroute a2a stream <id>
a2a logs <id>
Example:
omniroute a2a logs <id>
常见问题
这个工具怎么安装?
这项技能建议用 npm 安装 omniroute 包,或者用 npx 直接运行。
我可以等任务完成吗?
可以。调用命令有一个等待选项,还有以毫秒为单位的超时设置。
我可以取消任务吗?
可以。取消命令会先要求确认,除非你加上确认参数。
详情
作者的原始描述
Interact with the OmniRoute A2A server from the CLI. Send tasks, inspect skill execution history, and test the JSON-RPC 2.0 agent-to-agent protocol interactively.
热度
- GitHub 星标
- 84k
- 排名
- #1396
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …