langchain-aluvia-webbrowser
Version:
A LangChain WebBrowser tool that uses Aluvia mobile connectivity to browse websites and extract information
22 lines • 912 B
TypeScript
import { WebBrowser, WebBrowserArgs } from "@langchain/classic/tools/webbrowser";
export interface AluviaWebBrowserArgs extends WebBrowserArgs {
/**
* Aluvia API token. If not provided, will use ALUVIA_TOKEN environment variable.
* Get your token from https://dashboard.aluvia.io/credentials
*/
aluviaToken?: string;
}
/**
* A WebBrowser tool that gives your agent the ability to visit websites and extract information through Aluvia proxies.
*/
export default class AluviaWebBrowser extends WebBrowser {
private readonly aluviaToken;
private proxyAgent?;
constructor(args: AluviaWebBrowserArgs);
static create(args: AluviaWebBrowserArgs): Promise<AluviaWebBrowser>;
_call(...args: Parameters<WebBrowser["_call"]>): Promise<string>;
private setupProxyConfig;
private getProxyUrl;
dispose(): Promise<void>;
}
//# sourceMappingURL=aluvia-webbrowser.d.ts.map