koishi-plugin-chatluna-plugin-common
Version:
plugin service for agent mode of chatluna
19 lines (18 loc) • 749 B
TypeScript
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 TodosTool extends StructuredTool {
name: string;
schema: any;
constructor();
_call(input: z.infer<typeof this.schema>, _: any, config: ChatLunaToolRunnable): Promise<string>;
private generateTodos;
private setTodoStatus;
private batchSetTodoStatus;
private getTodos;
description: string;
}