Search Tools
Search tool components provide agents with the ability to search the web and retrieve real-time information from various search engines and services.
DuckDuckGo Search
This component performs web searches using the DuckDuckGo search engine with result-limiting capabilities.
Inputs
input_value
Search Query
The search query to execute with DuckDuckGo.
max_results
Max Results
The maximum number of search results to return. Default: 5
.
max_snippet_length
Max Snippet Length
The maximum length of each result snippet. Default: 100
.
Outputs
text
Text
Search results formatted as a single text string.
Google Search API
This component allows you to call the Google Search API.
Inputs
google_api_key
SecretString
Google API key for authentication
google_cse_id
SecretString
Google Custom Search Engine ID
input_value
String
Search query input
k
Integer
Number of search results to return
Outputs
results
List[Data]
List of search results
tool
Tool
Google Search tool for use in LangChain
Google Serper API
This component allows you to call the Serper.dev Google Search API.
Inputs
serper_api_key
SecretString
API key for Serper.dev authentication
input_value
String
Search query input
k
Integer
Number of search results to return
Outputs
results
List[Data]
List of search results
tool
Tool
Google Serper search tool for use in LangChain
Bing Search API
This component allows you to call the Bing Search API.
Inputs
bing_subscription_key
SecretString
Bing API subscription key
input_value
String
Search query input
bing_search_url
String
Custom Bing Search URL (optional)
k
Integer
Number of search results to return
Outputs
results
List[Data]
List of search results
tool
Tool
Bing Search tool for use in LangChain
Search API
This component calls the searchapi.io
API. It can be used to search the web for information.
For more information, see the SearchAPI documentation.
Inputs
engine
Engine
The search engine to use (default: "google")
api_key
SearchAPI API Key
The API key for authenticating with SearchAPI
input_value
Input
The search query or input for the API call
search_params
Search parameters
Additional parameters for customizing the search
Outputs
data
Search Results
List of Data objects containing search results
tool
Search API Tool
A Tool object for use in LangChain workflows
Tavily AI Search
This component performs searches using the Tavily AI search engine, which is optimized for LLMs and RAG applications.
Inputs
api_key
Tavily API Key
Your Tavily API Key.
query
Search Query
The search query you want to execute with Tavily.
search_depth
Search Depth
The depth of the search.
topic
Search Topic
The category of the search.
max_results
Max Results
The maximum number of search results to return.
include_images
Include Images
Include a list of query-related images in the response.
include_answer
Include Answer
Include a short answer to original query.
Outputs
data
Data
The search results as a list of Data objects.
text
Text
The search results formatted as a text string.
Usage Notes
Real-time Information: These tools enable agents to access current web information
Multiple Providers: Different search engines offer varying result quality and coverage
Rate Limiting: Consider API rate limits when using commercial search APIs
Privacy: DuckDuckGo provides privacy-focused search results
Specialized: Tavily AI is optimized specifically for AI applications and RAG workflows
Last updated