UNPKG

@langchain/community

Version:
1 lines • 1.53 kB
{"version":3,"file":"serper.d.ts","names":["Tool","SerperParameters","Serper","_langchain_core_load_serializable4","SerializedNotImplemented","Partial","Promise"],"sources":["../../src/tools/serper.d.ts"],"sourcesContent":["import { Tool } from \"@langchain/core/tools\";\n/**\n * Defines the parameters that can be passed to the Serper class during\n * instantiation. It includes `gl` and `hl` which are optional.\n */\nexport type SerperParameters = {\n gl?: string;\n hl?: string;\n};\n/**\n * Wrapper around serper.\n *\n * You can create a free API key at https://serper.dev.\n *\n * To use, you should have the SERPER_API_KEY environment variable set.\n */\nexport declare class Serper extends Tool {\n static lc_name(): string;\n /**\n * Converts the Serper instance to JSON. This method is not implemented\n * and will throw an error if called.\n * @returns Throws an error.\n */\n toJSON(): import(\"@langchain/core/load/serializable\").SerializedNotImplemented;\n protected key: string;\n protected params: Partial<SerperParameters>;\n constructor(apiKey?: string | undefined, params?: Partial<SerperParameters>);\n name: string;\n /** @ignore */\n _call(input: string): Promise<any>;\n description: string;\n}\n//# sourceMappingURL=serper.d.ts.map"],"mappings":";;;;;;;;AAKA;AAWqBE,KAXTD,gBAAAA,GAWe;EAAAE,EAAAA,CAAAA,EAAAA,MAAAA;EASGF,EAAAA,CAAAA,EAAAA,MAAAA;CAARI;;;;;AATkB;;;cAAnBH,MAAAA,SAAeF,IAAAA;;;;;;;YAATG,kCAAAA,CAO+BC;;oBAEpCC,QAAQJ;oDACwBI,QAAQJ;;;wBAGpCK"}