UNPKG

koishi-plugin-chatluna-plugin-common

Version:
14 lines (13 loc) 577 B
import { Tool } from '@langchain/core/tools'; import { Context } from 'koishi'; import { ChatLunaPlugin } from 'koishi-plugin-chatluna/services/chat'; import { Config } from '..'; 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 MusicTool extends Tool { name: string; constructor(); /** @ignore */ _call(input: string, _: any, config: ChatLunaToolRunnable): Promise<string>; description: string; }