UNPKG

koishi-plugin-chatluna-plugin-common

Version:
29 lines (28 loc) 1.04 kB
import { StructuredTool } from '@langchain/core/tools'; import { Context } from 'koishi'; import { ChatLunaPlugin } from 'koishi-plugin-chatluna/services/chat'; import { Config } from '..'; import { z } from 'zod'; import { ChatLunaToolRunnable } from 'koishi-plugin-chatluna/llm-core/platform/types'; export declare function apply(ctx: Context, config: Config, plugin: ChatLunaPlugin): Promise<void>; export declare class GroupMuteTool extends StructuredTool { config: Config; name: string; schema: z.ZodObject<{ userId: z.ZodString; muteTime: z.ZodNumber; operatorUserId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { userId?: string; muteTime?: number; operatorUserId?: string; }, { userId?: string; muteTime?: number; operatorUserId?: string; }>; constructor(config: Config); /** @ignore */ _call(input: z.infer<typeof this.schema>, _: any, config: ChatLunaToolRunnable): Promise<string>; description: string; }