The Serper node is a wrapper around the Serper.dev Google Search API. It provides a tool for performing Google searches within your application.
inputs
array. The main input it requires is the Serper API key, which is obtained through the connected credential.
Output is not explicitly defined in this class, but it will return a new instance of the Serper
class from the @langchain/community/tools/serper
package.
Serper
class, passing the API key as a parameter.
Serper_Tools
implements the INode
interface.
getBaseClasses
, getCredentialData
, and getCredentialParam
from the project’s utility module.
init
method is asynchronous and handles the initialization of the Serper tool with the provided API key.