style(opencode): format tool definitions

This commit is contained in:
2026-06-07 17:08:17 +08:00
parent 9d4e5486e9
commit ba46258845
9 changed files with 116 additions and 54 deletions
+11 -3
View File
@@ -5,15 +5,23 @@ export default tool({
args: {
reason: tool.schema
.string()
.describe("Why this history panel should be opened for the current task."),
.describe(
"Why this history panel should be opened for the current task.",
),
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."),
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 参数完成。