DevOps v1.0.0

edge-router

Route AI agent compute tasks to the cheapest viable backend. Supports local inference (Ollama), cloud GPU (Vast.ai), and...

adjusternwachukwu 更新于 2026-03-13 1 浏览
下载 SKILL

技能说明

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.

使用场景

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

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/edge-router
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

4 个文件 · 19 kB
SKILL.md text/markdown
---
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)
```bash
curl -X POST "$BASE/route" -H "Content-Type: application/json" \
  -d '{"task_type": "inference"}'
```

### Execute (route + run)
```bash
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

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。