langcode
Version:
A Plugin-Based Framework for Managing and Using LangChain
15 lines (14 loc) • 657 B
TypeScript
import { Plugin } from "../../types";
import { PluginType, PythonExecutorInitConfig, PythonExecutorRunArgs, PythonExecutorExpose } from "../../types";
export default class PythonExecutorPlugin implements Plugin<PythonExecutorInitConfig, PythonExecutorRunArgs, PythonExecutorExpose, any> {
name: string;
description: string;
type: PluginType;
RunConfigExample: PythonExecutorRunArgs;
InitConfigExample: PythonExecutorInitConfig;
private pythonInterpreter;
private pyodideInstance;
expose(): PythonExecutorExpose;
init(config: PythonExecutorInitConfig): Promise<void>;
run(args: PythonExecutorRunArgs): Promise<any>;
}