langchain.js
    Preparing search index...

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

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

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    Properties

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

    Accessors

    • get lc_namespace(): any[]

      Returns any[]

    Methods

    • Returns string