From f85d30c484f26c0656dd91ad5f9c5ed26c0a2fce Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Sun, 3 Aug 2025 21:42:45 -0400 Subject: wip: plugins --- packages/plugin/src/example.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'packages/plugin/src/example.ts') 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 }, } } -- cgit v1.2.3