Class SerpAPI

Wrapper around SerpAPI.

To use, you should have the serpapi package installed and the SERPAPI_API_KEY environment variable set.

Hierarchy

  • Tool
    • SerpAPI

Constructors

Properties

Methods

Constructors

  • Parameters

    • apiKey: undefined | string = ...
    • params: Partial<SerpAPIParameters> = {}
    • baseUrl: string = "https://serpapi.com"

    Returns SerpAPI

Properties

description: string = "a search engine. useful for when you need to answer questions about current events. input should be a search query."
name: string = "search"
baseUrl: string
key: string
params: Partial<SerpAPIParameters>

Methods

  • Returns SerializedNotImplemented

  • Builds a URL for the SerpAPI request.

    Type Parameters

    • P extends UrlParameters

    Parameters

    • path: string

      The path for the request.

    • parameters: P

      The parameters for the request.

    • baseUrl: string

      The base URL for the request.

    Returns string

    A string representing the built URL.

Generated using TypeDoc