refactor: unify tool reason requirements
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { optionalToolReason } from "../tool-reason.js";
|
||||
import { tool } from "../tool.js";
|
||||
|
||||
import { executeFrontendAction } from "./frontend_action.js";
|
||||
@@ -8,11 +9,7 @@ export default tool({
|
||||
description:
|
||||
"将已经完成分析并确定等级的 SCADA 点位结果高亮、编号并定位到前端地图。等级只能来自已完成的分析结论。",
|
||||
args: {
|
||||
reason: tool.schema
|
||||
.string()
|
||||
.trim()
|
||||
.min(1)
|
||||
.describe("Why the completed SCADA analysis should be rendered on the map."),
|
||||
reason: optionalToolReason,
|
||||
items: tool.schema
|
||||
.array(
|
||||
tool.schema.object({
|
||||
|
||||
Reference in New Issue
Block a user