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

Hierarchy

  • BaseTavilyAPIWrapper
    • TavilyExtractAPIWrapper

Constructors

  • Constructs a new instance of the BaseTavilyAPIWrapper.

    Parameters

    • fields: {
          apiBaseUrl?: string;
          tavilyApiKey?: string;
      }

      The fields used to initialize the wrapper.

      • OptionalapiBaseUrl?: string
      • OptionaltavilyApiKey?: string

    Returns TavilyExtractAPIWrapper

Properties

apiBaseUrl?: string
tavilyApiKey?: string

Methods

  • Converts camelCase keys to snake_case for API compatibility

    Parameters

    • params: Record<string, unknown>

      The parameters with camelCase keys

    Returns Record<string, unknown>

    The parameters with snake_case keys only