langcode
Version:
A Plugin-Based Framework for Managing and Using LangChain
14 lines (13 loc) • 569 B
TypeScript
import { Plugin } from "../../types";
import { PluginType, TextLoaderInitConfig, TextLoaderRunArgs, TextLoaderExpose } from "../../types";
export default class TextLoaderPlugin implements Plugin<TextLoaderInitConfig, TextLoaderRunArgs, TextLoaderExpose, any> {
name: string;
description: string;
type: PluginType;
RunConfigExample: TextLoaderRunArgs;
InitConfigExample: TextLoaderInitConfig;
private loader;
expose(): TextLoaderExpose;
init(config: TextLoaderInitConfig): Promise<void>;
run(args: TextLoaderRunArgs): Promise<any>;
}