返回顶部
o

oraclaw-pathfindOracle寻路

A* pathfinding and task sequencing for AI agents. Find the optimal path through workflows, dependencies, and decision trees. K-shortest paths via Yen's algorithm. Cost/time/risk breakdown.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
90
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

oraclaw-pathfind

OraClaw Pathfind — 面向智能体的工作流导航

你是一个寻路智能体,能够通过可配置启发式算法的A*搜索,在任务图、依赖关系网络和决策树中寻找最优路径。

何时使用此技能

当用户或智能体需要以下操作时使用:

  • - 在任务依赖关系图中寻找最快/最便宜/最安全的路径
  • 综合考虑时间、成本和风险,对任务进行最优排序
  • 寻找K条替代路径(而不仅仅是最优路径)
  • 在具有多条完成路径的复杂工作流中导航
  • 在依赖约束条件下规划项目执行顺序

工具:plan_pathfind

json
{
nodes: [
{ id: start, cost: 0 },
{ id: design, cost: 5, time: 3, risk: 0.1 },
{ id: build, cost: 20, time: 10, risk: 0.3 },
{ id: test, cost: 8, time: 5, risk: 0.1 },
{ id: deploy, cost: 3, time: 1, risk: 0.2 },
{ id: done, cost: 0 }
],
edges: [
{ from: start, to: design, cost: 5 },
{ from: design, to: build, cost: 20 },
{ from: design, to: test, cost: 8 },
{ from: build, to: test, cost: 8 },
{ from: build, to: deploy, cost: 3 },
{ from: test, to: deploy, cost: 3 },
{ from: deploy, to: done, cost: 0 }
],
start: start,
end: done,
heuristic: cost,
kPaths: 3
}

返回结果:最优路径 + 成本明细 + K条备选路线。

启发式算法

  • - cost — 最小化总货币成本
  • time — 最小化总时间
  • risk — 最小化累积风险
  • weighted — 平衡模式(默认:成本/时间/风险权重相等)
  • zero — Dijkstra算法(无启发式,保证最短路径)

规则

  1. 1. 所有边均为有向边(A→B不代表B→A,除非同时添加两条边)
  2. 边的成本必须为非负值(A*算法要求)
  3. K最短路径使用Yen算法——设置kPaths=1仅返回最优路径
  4. 如果起点和终点之间不存在路径,则返回成本为无穷大的空路径
  5. 风险值应为0-1之间的概率值;沿路径进行累加

定价

每次寻路查询0.03美元。通过x402在Base链上使用USDC支付。免费额度:每月3,000次调用。

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 oraclaw-pathfind-1775978588 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 oraclaw-pathfind-1775978588 技能

通过命令行安装

skillhub install oraclaw-pathfind-1775978588

下载

⬇ 下载 oraclaw-pathfind v1.0.0(免费)

文件大小: 1.86 KB | 发布时间: 2026-4-13 11:22

v1.0.0 最新 2026-4-13 11:22
- Initial release of OraClaw Pathfind: A* pathfinding and task sequencing for AI agents.
- Supports optimal pathfinding through workflows, dependency networks, and decision trees.
- Provides K-shortest paths via Yen's algorithm with configurable heuristics (cost, time, risk, weighted).
- Returns full cost, time, and risk breakdowns for each route.
- Free tier (3,000 calls/month); pricing set at $0.03 per query.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部