diff options
| author | Dax Raad <[email protected]> | 2025-08-03 21:42:45 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-08-03 21:43:58 -0400 |
| commit | f85d30c484f26c0656dd91ad5f9c5ed26c0a2fce (patch) | |
| tree | ff8cc896fa4eee9da0c83ccbf0a49343c5590472 /packages/plugin/src/example.ts | |
| parent | 1bac46612cef3b383af2ce411ca2ad313d5c5ce0 (diff) | |
| download | opencode-f85d30c484f26c0656dd91ad5f9c5ed26c0a2fce.tar.gz opencode-f85d30c484f26c0656dd91ad5f9c5ed26c0a2fce.zip | |
wip: plugins
Diffstat (limited to 'packages/plugin/src/example.ts')
| -rw-r--r-- | packages/plugin/src/example.ts | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/packages/plugin/src/example.ts b/packages/plugin/src/example.ts index 4e9bc4b88..998108f0a 100644 --- a/packages/plugin/src/example.ts +++ b/packages/plugin/src/example.ts @@ -3,12 +3,8 @@ import { Plugin } from "./index" export const ExamplePlugin: Plugin = async ({ app, client, $ }) => { return { permission: {}, - tool: { - execute: { - async before(input, output) { - console.log("before", input, output) - }, - }, + async "chat.params"(input, output) { + output.topP = 1 }, } } |
