Brave Search API
The Brave Search API node is a tool that provides a wrapper around the Brave Search API, allowing users to access real-time search results from Brave’s search engine within their application.
Node Details
-
Name: BraveSearchAPI_Tools
-
Type: BraveSearchAPI
-
Version: 1.0
-
Category: Tools
Parameters
The node doesn’t have any specific input parameters. However, it requires a credential to be connected:
-
Credential:
-
Label: Connect Credential
-
Name: credential
-
Type: credential
-
Credential Names: braveSearchApi
-
Input/Output
-
Input: The node doesn’t require any specific inputs at initialization.
-
Output: An instance of the BraveSearch class from the @langchain/community/tools/brave_search package.
Initialization
The node’s init
method performs the following steps:
-
Retrieves the credential data associated with the node.
-
Extracts the Brave API key from the credential data.
-
Creates and returns a new instance of the BraveSearch class, initialized with the API key.
Usage
This node is typically used in workflows or applications where search functionality is required. It can be combined with other nodes or tools to create more complex search-based operations or to feed search results into other processes.
Base Classes
The node inherits from the following base classes:
-
BraveSearchAPI
-
Any base classes of the BraveSearch class from @langchain/community/tools/brave_search
Important Notes
-
A valid Brave Search API key is required to use this node.
-
The actual search functionality and available methods will depend on the implementation of the BraveSearch class from the @langchain/community package.
-
Users should refer to the Brave Search API documentation for details on rate limits, response formats, and available search options.