Template
temp
This commit is contained in:
1 parent
704a02f217
commit
7840cbd746
14 files changed
+151
-2
No files matched your search
@@ -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}`
|
||||
},
|
||||
})
|
||||
Reference in new issue
Block a user