A wrapper that encapsulates access to the Tavily Search API. Primarily used for testing.

Constructors

Properties

Methods

Constructors

  • Constructs a new instance of the TavilySearchAPIWrapper.

    Parameters

    • fields: {
          tavilyApiKey?: string;
      }

      The fields used to initialize the wrapper.

      • OptionaltavilyApiKey?: string

        The API key used for authentication with the Tavily Search API.

        If unspecified, the wrapper will use the API key found in the environment variable TAVILY_API_KEY.

    Returns TavilySearchAPIWrapper

Properties

tavilyApiKey?: string

Methods