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