langchain.js
    Preparing search index...

    Tool for querying Google Scholar using the SerpApi service.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    Properties

    apiKey: string
    description: string = ...

    Description of the tool for usage documentation.

    name: string = "serp_google_scholar"

    Accessors

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

      Returns a mapping of secret environment variable names to their usage in the tool.

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

      Mapping of secret names to their environment variable counterparts.

    Methods

    • Makes a request to SerpApi for Google Scholar results.

      Parameters

      • input: string

        Search query string.

      Returns Promise<string>

      A JSON string containing the search results.

      Error if the API request fails or returns an error.

    • Specifies the name of the tool, used internally by LangChain.

      Returns string