A class designed to interact with web pages, either to extract information from them or to summarize their content. It uses the axios library to send HTTP requests and the cheerio library to parse the returned HTML.

Example

const browser = new WebBrowser({
model: new ChatOpenAI({ temperature: 0 }),
embeddings: new OpenAIEmbeddings({}),
});
const result = await browser.invoke("https:exampleurl.com");

Hierarchy

Constructors

Properties

Constructors

Properties

description: string = ...
name: string = "web-browser"

Generated using TypeDoc