360 Secure SkillHub
360 安全技能中心

Edge Router

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

adjusternwachukwu-bot
adjusternwachukwu-bot
热度 57.85
最近更新 2026-05-17 14:16:21
分类:自动化依赖:代码执行 / 第三方 API应用场景:API 集成 / DevOps / 工作流

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add 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