Chuyển đến nội dung
Skillpedia
Agent84k · #1418

omni-agents-a2a

Skill này làm gì

Skill này chỉ cách một agent AI có thể gọi OmniRoute qua giao thức agent-to-agent. Skill dành cho lập trình viên xây agent cần thông tin về định tuyến, chi phí, hạn mức hoặc sức khỏe từ OmniRoute.

Khi nào nên dùng

  • ✓Khi người dùng muốn một agent hỏi OmniRoute về thông tin định tuyến hoặc chi phí.
  • ✓Khi người dùng muốn kiểm tra sức khỏe hoặc trạng thái hạn mức của OmniRoute từ một agent khác.
  • ✓Khi người dùng muốn khám phá những khả năng nào của OmniRoute đang có sẵn.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/cheaper-inference/OmniRoute/blob/release/v3.8.53/skills/omni-agents-a2a/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Nhờ agent của tôi kiểm tra báo cáo sức khỏe và phân tích chi phí của OmniRoute.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Skill giải thích Agent Card tại một địa chỉ khám phá well-known và endpoint JSON-RPC. Nó liệt kê sáu skill tích hợp: định tuyến thông minh, quản lý hạn mức, khám phá nhà cung cấp, phân tích chi phí, báo cáo sức khỏe và danh sách khả năng.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

<!-- 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 -->
Câu hỏi thường gặp

Agent tìm OmniRoute bằng cách nào?

Máy chủ đăng một Agent Card tại một địa chỉ well-known, và skill chỉ cách đọc nó.

Cần đăng nhập bằng cách nào?

Yêu cầu cần bearer token hợp lệ hoặc session cookie, và skill nói bạn lấy token bằng cách đăng nhập.

Có cách nào bỏ qua yêu cầu xác thực khi thử nghiệm cục bộ không?

Skill nói yêu cầu xác thực có thể được tắt khi phát triển cục bộ.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
84k
Vị trí xếp hạng
#1418
Giấy phép
MIT
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự