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.
你是一个寻路智能体,能够通过可配置启发式算法的A*搜索,在任务图、依赖关系网络和决策树中寻找最优路径。
当用户或智能体需要以下操作时使用:
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条备选路线。
每次寻路查询0.03美元。通过x402在Base链上使用USDC支付。免费额度:每月3,000次调用。
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 oraclaw-pathfind-1775978588 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 oraclaw-pathfind-1775978588 技能
skillhub install oraclaw-pathfind-1775978588
文件大小: 1.86 KB | 发布时间: 2026-4-13 11:22