04f2f814f9
Co-authored-by: Copilot <copilot@github.com>
20 lines
789 B
TypeScript
20 lines
789 B
TypeScript
import { tool } from "@opencode-ai/plugin";
|
|
|
|
export default tool({
|
|
description: "为选定的管网要素打开前端的历史记录或计算结果面板。",
|
|
args: {
|
|
feature_infos: tool.schema
|
|
.array(tool.schema.tuple([tool.schema.string(), tool.schema.string()]))
|
|
.describe("List of [id, type] pairs."),
|
|
data_type: tool.schema
|
|
.enum(["realtime", "scheme", "none"])
|
|
.describe("History data source type."),
|
|
start_time: tool.schema.string().optional().describe("Optional ISO8601 start time."),
|
|
end_time: tool.schema.string().optional().describe("Optional ISO8601 end time."),
|
|
},
|
|
async execute() {
|
|
// 返回短确认即可;面板打开动作由前端根据 tool_call 参数完成。
|
|
return "已打开计算结果面板。";
|
|
},
|
|
});
|