langcode
Version:
A Plugin-Based Framework for Managing and Using LangChain
19 lines (18 loc) • 654 B
TypeScript
import { PythonInterpreterTool } from "@langchain/community/experimental/tools/pyinterpreter";
import { PluginDescriptions } from "./plugin";
import { PyodideInterface } from "pyodide";
export type PythonExecutorInitConfig = {};
export type PythonExecutorRunArgs = {
code: string;
packages?: string[];
micropipPackages?: string[];
};
export interface PythonExecutorExpose extends PluginDescriptions {
pythonInterpreter: PythonInterpreterTool | null;
pyodideInstance: PyodideInterface | null;
}
export declare const PythonExecutorPluginTypes: {
runArgs: PythonExecutorRunArgs;
return: any;
expose: PythonExecutorExpose;
};