feat: 主聊天流程接入工具调用 — Synthesizer 支持 ChatWithTools
Synthesizer 现在向 LLM 传递工具定义并通过 ChatWithTools 执行 工具调用循环(最多5轮),执行结果通过 ToolRegistry 记录到调用 日志。Orchestrator 通过 SetToolRegistry() 注入。用户聊天现在可以 触发 web_search 等工具,调用记录在 DevTools 监控页面可见。 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -321,6 +321,7 @@ func main() {
|
||||
memRetriever,
|
||||
memExtractor,
|
||||
)
|
||||
orch.SetToolRegistry(toolRegistry)
|
||||
log.Println("对话编排器 v2.0 已就绪")
|
||||
_ = orch
|
||||
|
||||
|
||||
Reference in New Issue
Block a user