import { Tool } from "@langchain/core/tools"; //#region src/tools/requests.d.ts interface Headers { [key: string]: string; } /** * Interface for HTTP request tools. Contains properties for headers and * maximum output length. */ interface RequestTool { headers: Headers; maxOutputLength: number; } /** * Class for making GET requests. Extends the Tool class and implements * the RequestTool interface. The input should be a URL string, and the * output will be the text response of the GET request. */ declare class RequestsGetTool extends Tool implements RequestTool { headers: Headers; static lc_name(): string; name: string; maxOutputLength: number; constructor(headers?: Headers, { maxOutputLength }?: { maxOutputLength?: number; }); /** @ignore */ _call(input: string): Promise; description: string; } /** * Class for making POST requests. Extends the Tool class and implements * the RequestTool interface. The input should be a JSON string with two * keys: 'url' and 'data'. The output will be the text response of the * POST request. */ declare class RequestsPostTool extends Tool implements RequestTool { headers: Headers; static lc_name(): string; name: string; maxOutputLength: number; constructor(headers?: Headers, { maxOutputLength }?: { maxOutputLength?: number; }); /** @ignore */ _call(input: string): Promise; description: string; } //#endregion export { Headers, RequestsGetTool, RequestsPostTool }; //# sourceMappingURL=requests.d.ts.map