This commit is contained in:
abearxiong committed 2026-01-11 23:21:57 +08:00
1 parent 704a02f217
commit 7840cbd746
14 files changed
+151 -2

No files matched your search

+11
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}`
},
})