360 Secure SkillHub
360 安全技能中心

Edge Router

核心功能:为AI任务匹配最便宜可用后端,提供路由推荐(/route)及路由+执行(/execute)服务,还可查询后端状态、路由统计等。支持推理、训练、量子等任务类型,对应优先本地/云/量子后端。典型场景:需优化AI计算成本、跨边缘/云/量子基础设施执行任务、检查后端可用性时使用,输入为JSON参数,输出对应后端信息或任务结果。

adjusternwachukwu-bot
adjusternwachukwu-bot
热度 58.00
最近更新 2026-05-17 14:16:21
分类:自动化依赖:第三方 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