feat(agent): node_detail 也默认给 worker,并随回看工具一起补绑

worker 已能通过 search_all_worker_traces / get_worker_trace 拿到 intent_id/
节点 id,配套把 node_detail 也下放给 worker,便于就地查节点完整详情。

- WorkerTools() 增加 node_detail
- 从 seedWorkerReadToolsUnbind 解绑清单去掉 node_detail(保留 list_facts/
  list_companies/list_worker_traces)
- 原 seedWorkerCrossTraceRebind 泛化为 seedWorkerReadbackRebind,补绑清单追加
  node_detail,flag 升到 v2 让已跑过旧迁移的库也补上
This commit is contained in:
Autumn-27 committed 2026-09-13 09:35:18 -04:00
1 parent 2ba395856d
commit c9bfa35113
2 files changed
+23 -22

No files matched your search

+3 -2
View File
@@ -579,9 +579,10 @@ func (t *ToolSet) WorkerTools() []actool.CoreTool {
// search_all_worker_traces:不必先知道 intent_id,按关键字全局捞命中步骤;
// get_worker_trace:锁定某条 work 后列步骤/就地搜/取完整内容。
t.searchAllWorkerTraces(), t.getWorkerTrace(),
// node_detail:worker 拿到 intent_id/节点 id 后可查该节点完整详情(配合上面的回看)。
t.nodeDetail(),
// 以下工具仍【不给】worker,只留给 planner/main(读上下文、跨 work 复盘是规划职责,
// worker 只做单条意图的执行与写回):list_facts / node_detail / list_companies /
// list_worker_traces。
// worker 只做单条意图的执行与写回):list_facts / list_companies / list_worker_traces。
}
}