技能标识:unified-reasoning
Unified Reasoning Engine with FoT optimization - Combines ToT, GoT, Self-Consistency, and Meta-Reasoning with parallel execution and caching for 2-5x speedup
用途: 所有推理的单一入口——自动选择并应用最佳策略,支持并行执行与智能缓存。
v2.0 新增: 思维框架(FoT)优化
| 策略 | 最佳适用场景 | 性能表现 |
|---|---|---|
| 思维链 | 简单问题 | 快速,准确率60% |
| 思维树 |
┌─────────────────────────────────────────────────┐
│ 统一推理引擎 │
├─────────────────────────────────────────────────┤
│ │
│ ┌─────────────────────────────────────────┐ │
│ │ 元推理层 │ │
│ │ 分析 → 选择策略 → 执行 │ │
│ └─────────────────────────────────────────┘ │
│ ↓ │
│ ┌─────────┬─────────┬─────────┬─────────┐ │
│ │ 思维链 │ 思维树 │ 思维图 │ 自洽性 │ │
│ │ 线性 │ 分支 │ 组合 │ 投票 │ │
│ └─────────┴─────────┴─────────┴─────────┘ │
│ ↓ │
│ ┌─────────────────────────────────────────┐ │
│ │ 混合组合 │ │
│ │ 运行多种 → 合并结果 │ │
│ └─────────────────────────────────────────┘ │
│ │
└─────────────────────────────────────────────────┘
powershell
powershell
问题分析:
├── 复杂度:简单 → 思维链
├── 需要综合 → 思维图
├── 需要验证 → 自洽性
├── 存在多种解决方案 → 思维树
├── 复杂 → 思维图
└── 默认 → 思维树
| 特征 | 检测方法 |
|---|---|
| 复杂度 | 词数分析 |
| 领域 |
powershell
. skills/unified-reasoning/reasoning-engine.ps1
$result = Invoke-Reasoning -Problem 学习一门新编程语言的最佳方法是什么?
powershell
$result = Invoke-Reasoning
-Problem 这个计算是否正确:840的15% = 126?
-Strategy SelfConsistency
-NumSolutions 7
-ShowAll
powershell
$result = Invoke-Reasoning
-Problem 将这些想法整合成一个连贯的策略...
-Strategy GraphOfThoughts
-MaxPaths 6
| 问题类型 | 思维链 | 思维树 | 思维图 | 自洽性 | 元推理 |
|---|---|---|---|---|---|
| 简单数学 | 90% | 92% | 88% | 95% | 93% |
| 逻辑谜题 |
元推理 自动适应问题类型。
统一推理引擎与AGI决策流程集成:
powershell
# 对复杂决策使用统一推理
$reasoning = Invoke-Reasoning
-Problem 什么行动最能实现:$Goal
-Strategy MetaReasoning
-MaxPaths 5
return @{
action = $reasoning.solution
confidence = $reasoning.confidence
reasoning = $reasoning
}
}
yaml
unified_reasoning:
default_strategy: MetaReasoning
chainofthought:
enabled: true
treeofthoughts:
default_branches: 3
default_depth: 3
max_branches: 7
graphofthoughts:
default_nodes: 5
max_nodes: 10
connection_probability: 0.5
self_consistency:
default_solutions: 5
min_solutions: 3
max_solutions: 10
min_confidence: 0.6
meta_reasoning:
complexitythresholdsimple: 10 # 词数
complexitythresholdcomplex: 30 # 词数
hybrid:
default_strategies:
- TreeOfThoughts
- SelfConsistency
powershell
@{
strategy = TreeOfThoughts # 使用的策略
solution = 最佳路径:branch_2 # 最终答案
confidence = 0.87 # 0.0 到 1.0
duration = 45 # 毫秒
timestamp = 2026-02-26T22:35:00+02:00
metThreshold = $true # 置信度 >= 阈值
# 策略特定数据
tree = @{ ... } # 思维树
graph = @{ ... } # 思维图
votes = @{ ... } # 自洽性
metaReasoning = @{ ... } # 元推理
}
powershell
function Invoke-ParallelTreeOfThoughts {
param($Problem, $Branches = 3)
# 并行执行所有分支
$jobs = @()
for ($i = 0;
以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:
帮我安装 SkillHub 和 unified-reasoning-1776292497 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 unified-reasoning-1776292497 技能
skillhub install unified-reasoning-1776292497
文件大小: 5.1 KB | 发布时间: 2026-4-16 17:08