This commit is contained in:
2026-01-11 01:10:38 +08:00
commit 9830cbe735
10 changed files with 204 additions and 0 deletions

11
tool/project.ts Normal file
View File

@@ -0,0 +1,11 @@
import { tool } from "@opencode-ai/plugin"
export default tool({
description: "获取当前会话信息",
args: {},
async execute(args, context) {
// Access context information
const { agent, sessionID, messageID } = context
return `智能体: ${agent}, 会话ID: ${sessionID}, 消息ID: ${messageID}`
},
})