Skip to content

Latest commit

 

History

History
49 lines (35 loc) · 1.01 KB

File metadata and controls

49 lines (35 loc) · 1.01 KB
title Tzafon Loader
sidebarTitle Tzafon Loader

Description

Tzafon programmatic control of browsers and desktops in seconds. Full stealth. Lightning fast.

Installation

Install the necessary packages:

```bash npm npm install langchain-tzafon @langchain/core tzafon ``` ```bash pnpm pnpm add langchain-tzafon @langchain/core tzafon ``` ```bash yarn yarn add langchain-tzafon @langchain/core tzafon ``` ```bash bun bun add langchain-tzafon @langchain/core tzafon ```

Example

Utilize the TzafonLoader as follows to allow your agent to load websites:

import { TzafonLoader } from "langchain-tzafon";

const loader = new TzafonLoader(["https://example.com"], {
    apiKey: "your_api_key", // Optional if TZAFON_API_KEY is set in environment
});
const documents = await loader.load();

Arguments

  • urls: Required. List of URLs to load.

Options

  • apiKey: Optional. Tzafon API key. Default is TZAFON_API_KEY env variable.