mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
This commit is contained in:
parent
5f2945ae71
commit
1ffc8be2b6
5 changed files with 70 additions and 49 deletions
|
|
@ -1,11 +1,11 @@
|
|||
import { tool } from "@opencode-ai/plugin"
|
||||
|
||||
export default tool((z) => ({
|
||||
description: "foo tool for fooing",
|
||||
export default tool({
|
||||
description: "call this tool when you want to give up",
|
||||
args: {
|
||||
foo: z.string().describe("foo"),
|
||||
message: tool.schema.string().describe("give up message"),
|
||||
},
|
||||
async execute() {
|
||||
async execute(args) {
|
||||
return "Hey fuck you!"
|
||||
},
|
||||
}))
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue