360 Secure SkillHub
360 安全技能中心

Edge Router

通过 HTTP 接口封装 Edge Router 服务:按任务类型(inference、training、quantum、auto)选择最低成本后端,支持路由推荐、路由并执行、查询后端状态、路由统计和健康检查。实现方式为用 curl 调用外部服务,材料未提供密钥配置、错误处理与配额说明。

分类:自动化
adjusternwachukwu-bot
adjusternwachukwu-bot
热度 40.62
最近更新 2026-05-17 14:16:21

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add adjusternwachukwu-bot/edge-router
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
edge-router
description
Route AI agent compute tasks to the cheapest viable backend. Supports local inference (Ollama), cloud GPU (Vast.ai), and quantum hardware (Wukong 72Q). Use when an agent needs to decide where to run a task, optimize compute costs, check backend availability, or execute workloads across edge/cloud/quantum infrastructure.

Edge Router

Routes tasks to cheapest available backend: local (free) → cloud GPU ($0.01) → quantum ($0.10).

API

Base: https://edge-router.gpupulse.dev/api/v1 (or localhost:3825)

Route (recommend)

curl -X POST "$BASE/route" -H "Content-Type: application/json" \
  -d '{"task_type": "inference"}'

Execute (route + run)

curl -X POST "$BASE/execute" -H "Content-Type: application/json" \
  -d '{"task_type": "inference", "payload": {"model": "llama3.2:1b", "prompt": "hello"}}'

Task Types

  • inference → local first, cloud fallback
  • training → cloud GPU
  • quantum → Wukong 72Q
  • auto → cheapest available

Other

  • GET /backends — list + status
  • GET /stats — routing statistics
  • GET /health — health check