跳到正文
Skillpedia
智能体84k · #1418

omni-agents-a2a

它能做什么

这项技能展示 AI 智能体如何通过智能体对智能体协议调用 OmniRoute。适合构建需要从 OmniRoute 获取路由、成本、配额或健康信息的智能体的开发者。

适用场景

  • ✓当用户想让智能体向 OmniRoute 查询路由或成本信息的时候。
  • ✓当用户想从另一个智能体检查 OmniRoute 的健康或配额状态的时候。
  • ✓当用户想了解 OmniRoute 有哪些可用能力的时候。

技能链接

https://github.com/cheaper-inference/OmniRoute/blob/release/v3.8.53/skills/omni-agents-a2a/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/cheaper-inference/OmniRoute/blob/release/v3.8.53/skills/omni-agents-a2a/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请让我的智能体检查 OmniRoute 的健康报告和成本分析。”

每周 5 个新技能,1 分钟读完。

工作原理

这项技能说明了公开发现地址上的智能体卡片(Agent Card)和 JSON-RPC 端点。它列出六项内置技能:智能路由、配额管理、提供商发现、成本分析、健康报告和能力列表。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

<!-- generated by src/lib/agentSkills/generator.ts; manual edits will be overwritten -->

Overview

Interact with OmniRoute via JSON-RPC 2.0 agent-to-agent protocol. 6 built-in A2A skills: smart-routing, quota-management, provider-discovery, cost-analysis, health-report, list-capabilities.

Authentication

All requests require a valid Bearer token or session cookie. Obtain a token via POST /api/auth/login or configure REQUIRE_API_KEY=false for local development.

Endpoints

No endpoints mapped for this area yet.

Payloads

See the full OpenAPI specification at GET /api/openapi/spec or docs/openapi.yaml for detailed request/response schemas.

<!-- skill:custom-start --> <!-- Migrated from skills/omniroute-a2a/SKILL.md (preserved curated content) -->

OmniRoute — A2A Protocol

Requires OMNIROUTE_URL and OMNIROUTE_KEY. See entry-point SKILL for setup.

OmniRoute publishes an Agent Card at /.well-known/agent.json and accepts JSON-RPC 2.0 calls at /a2a.

Discovery

curl $OMNIROUTE_URL/.well-known/agent.json

Returns Agent Card with skills, endpoints, auth scheme.

Available skills

Skill Purpose
smart-routing Given a prompt, recommends best provider/model combo
quota-management Reports quota balance for given provider/account
provider-discovery Lists providers matching capability filters (vision, JSON mode, tools, max-context)
cost-analysis Estimates cost for a given request shape
health-report Returns system health (circuit states, latencies, errors)

Call example (JSON-RPC 2.0)

curl -X POST $OMNIROUTE_URL/a2a \
  -H "Authorization: Bearer $OMNIROUTE_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "method": "tasks/send",
    "params": {
      "skillId": "smart-routing",
      "input": { "prompt_length": 4000, "tools": true, "vision": false }
    },
    "id": 1
  }'

Response shape

{
  "jsonrpc": "2.0",
  "result": {
    "taskId": "...",
    "status": "completed",
    "output": { "recommended_combo": "...", "reasoning": "..." }
  },
  "id": 1
}

Errors

  • -32600 → invalid request (bad JSON-RPC envelope)
  • -32601 → method not found (check method field)
  • -32602 → invalid params (check skillId against Agent Card)
  • 401 → missing/invalid OMNIROUTE_KEY

Reference

Full docs: https://github.com/diegosouzapw/OmniRoute/blob/main/docs/frameworks/A2A-SERVER.md

<!-- skill:custom-end -->
常见问题

智能体如何找到 OmniRoute?

服务器会在一个公开的发现地址上发布智能体卡片,这项技能会说明如何读取它。

需要什么登录凭证?

请求需要有效的 bearer 令牌或会话 cookie,这项技能说明可以通过登录获取令牌。

本地测试有捷径吗?

这项技能说明,在本地开发时可以关闭密钥要求。

详情

作者的原始描述

Interact with OmniRoute via JSON-RPC 2.0 agent-to-agent protocol. 6 built-in A2A skills: smart-routing, quota-management, provider-discovery, cost-analysis, health-report, list-capabilities.

repo: cheaper-inference/OmniRoute

热度

GitHub 星标
84k
排名
#1418
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能