UNPKG

langcode

Version:

A Plugin-Based Framework for Managing and Using LangChain

18 lines (17 loc) 510 B
import { PluginDescriptions } from "./plugin"; import { SerpAPI, SerpAPIParameters } from "@langchain/community/tools/serpapi"; export type SerpAPIToolInitConfig = { apiKey: string; params?: Partial<SerpAPIParameters>; }; export type SerpAPIToolRunArgs = { query: string; }; export interface SerpAPIToolExpose extends PluginDescriptions { tool: SerpAPI | null; } export declare const SerpAPIToolPluginTypes: { runArgs: SerpAPIToolRunArgs; return: any; expose: SerpAPIToolExpose; };