添加注释以说明工具和会话的上下文处理
This commit is contained in:
@@ -22,6 +22,7 @@ export default tool({
|
||||
y_axis_name: tool.schema.string().optional().describe("Y-axis display name."),
|
||||
},
|
||||
async execute() {
|
||||
// 图表数据已经在工具参数里,前端收到 tool_call 后直接渲染,不再二次请求后端。
|
||||
return "图表将在对话中显示。";
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user