添加注释以说明工具和会话的上下文处理

This commit is contained in:
2026-04-29 11:58:13 +08:00
parent d3e7baca99
commit b857ca543d
11 changed files with 15 additions and 0 deletions
+1
View File
@@ -9,6 +9,7 @@ export default tool({
.describe("Type of feature to locate."),
},
async execute() {
// 前端工具只负责生成 tool part,真正的地图动作由 Agent SSE 适配层转发给浏览器执行。
return "已在地图上定位到指定要素。";
},
});