summaryrefslogtreecommitdiffhomepage
path: root/packages/plugin/src/example.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/plugin/src/example.ts')
-rw-r--r--packages/plugin/src/example.ts8
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
},
}
}