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

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
@@ -22,6 +22,7 @@ export default tool({
y_axis_name: tool.schema.string().optional().describe("Y-axis display name."),
},
async execute() {
// 图表数据已经在工具参数里,前端收到 tool_call 后直接渲染,不再二次请求后端。
return "图表将在对话中显示。";
},
});