langchain.js
    Preparing search index...

    Class that uses the Google Search API to perform custom searches. Requires environment variables GOOGLE_API_KEY and GOOGLE_CSE_ID to be set.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    Properties

    apiKey: string
    description: string = "a custom search engine. useful for when you need to answer questions about current events. input should be a search query. outputs a JSON array of results."
    googleCSEId: string
    name: string = "google-custom-search"

    Accessors

    • get lc_secrets(): undefined | { [key: string]: string }

      Returns undefined | { [key: string]: string }

    Methods

    • Parameters

      • input: string

      Returns Promise<string>

    • Returns string