docs: refresh tools page and try details tabs (#7769)

* * Added collapsible sections for Inputs and Outputs to improve readability and organization.
* Removed deprecated components and clarified legacy status for certain tools.

* icosa-url

* details-tab-styling

* code-review

* input-anchor

* Apply suggestions from code review

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>

* Update docs/docs/Components/components-tools.md

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>

* exa-search-url

---------

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>
This commit is contained in:
Mendon Kissling 2025-05-08 11:04:40 -04:00 • committed by GitHub
commit 178c443c26
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 353 additions and 330 deletions

View file

@ -388,3 +388,23 @@ body {
); );
} }
/* Component details styling */
.markdown details {
width: 100%;
background: var(--ifm-background-color);
border: 1px solid var(--ifm-color-emphasis-300);
border-radius: var(--ifm-global-radius);
margin-bottom: 1rem;
}
.markdown details summary {
width: 100%;
padding: 0.5rem 1rem;
cursor: pointer;
}
.markdown details > div {
padding: 1rem;
border-top: 1px solid var(--ifm-color-emphasis-300);
}

View file

@ -31,20 +31,24 @@ For an example, see [Make any component a tool](/agents-tool-calling-agent-compo
This component searches and retrieves papers from [arXiv.org](https://arXiv.org). This component searches and retrieves papers from [arXiv.org](https://arXiv.org).
### Inputs <details>
<summary>Parameters</summary>
| Name | Display Name | Info | **Inputs**
|------|--------------|------|
| search_query | Search Query | The search query for arXiv papers (for example, `quantum computing`) |
| search_type | Search Field | The field to search in |
| max_results | Max Results | Maximum number of results to return |
### Outputs | Name | Type | Description |
|------|------|-------------|
| search_query | String | The search query for arXiv papers. For example, `quantum computing`. |
| search_type | String | The field to search in. |
| max_results | Integer | The maximum number of results to return. |
| Name | Display Name | Info | **Outputs**
|------|--------------|------|
| papers | Papers | List of retrieved arXiv papers |
| Name | Type | Description |
|------|------|-------------|
| papers | List[Data] | A list of retrieved arXiv papers. |
</details>
## Astra DB tool ## Astra DB tool
@ -95,7 +99,10 @@ If you want to apply filters regardless of the LLM's input, use the **Static Fil
| Is Timestamp | For date or time-based filters, enable this option to automatically convert values to the timestamp format that the Astrapy client expects. This ensures compatibility with the underlying API without requiring manual formatting. | | Is Timestamp | For date or time-based filters, enable this option to automatically convert values to the timestamp format that the Astrapy client expects. This ensures compatibility with the underlying API without requiring manual formatting. |
| Operator | Defines the filtering logic applied to the attribute. You can use any valid [Data API filter operator](https://docs.datastax.com/en/astra-db-serverless/api-reference/filter-operator-collections.html). For example, to filter a time range on the timestamp attribute, use two parameters: one with the `$gt` operator for "greater than", and another with the `$lt` operator for "less than". | | Operator | Defines the filtering logic applied to the attribute. You can use any valid [Data API filter operator](https://docs.datastax.com/en/astra-db-serverless/api-reference/filter-operator-collections.html). For example, to filter a time range on the timestamp attribute, use two parameters: one with the `$gt` operator for "greater than", and another with the `$lt` operator for "less than". |
### Inputs <details>
<summary>Parameters</summary>
**Inputs**
| Name | Type | Description | | Name | Type | Description |
|-------------------|--------|----------------------------------------------------------------------------------------------------------------------------------| |-------------------|--------|----------------------------------------------------------------------------------------------------------------------------------|
@ -109,204 +116,198 @@ If you want to apply filters regardless of the LLM's input, use the **Static Fil
| Static Filters | Dict | Attribute-value pairs used to filter query results. | | Static Filters | Dict | Attribute-value pairs used to filter query results. |
| Limit | String | The number of documents to return. | | Limit | String | The number of documents to return. |
### Outputs
**Outputs**
The **Data** output is used when directly querying Astra DB, while the **Tool** output is used when integrating with agents. The **Data** output is used when directly querying Astra DB, while the **Tool** output is used when integrating with agents.
| Name | Type | Description | | Name | Type | Description |
|------|------|-------------| |------|------|-------------|
| Data | List[`Data`] | A list of [Data](/concepts-objects) objects containing the query results from Astra DB. Each `Data` object contains the document fields specified by the projection attributes. Limited by the `number_of_results` parameter. | | Data | List[Data] | A list of [Data](/concepts-objects) objects containing the query results from Astra DB. Each `Data` object contains the document fields specified by the projection attributes. Limited by the `number_of_results` parameter. |
| Tool | StructuredTool | A LangChain `StructuredTool` object that can be used in agent workflows. Contains the tool name, description, argument schema based on tool parameters, and the query function. | | Tool | StructuredTool | A LangChain `StructuredTool` object that can be used in agent workflows. Contains the tool name, description, argument schema based on tool parameters, and the query function. |
</details>
## Astra DB CQL Tool ## Astra DB CQL Tool
The `Astra DB CQL Tool` allows agents to query data from CQL tables in Astra DB. The `Astra DB CQL Tool` allows agents to query data from CQL tables in Astra DB.
The main difference between this tool and the **Astra DB Tool** is that this tool is specifically designed for CQL tables and requires partition keys for querying, while also supporting clustering keys for more specific queries. <details>
<summary>Parameters</summary>
### Inputs **Inputs**
| Name | Type | Description | | Name | Type | Description |
|-------------------|--------|----------------------------------------------------------------------------------------------------------------------------------------------------| |------|------|-------------|
| Tool Name | String | The name used to reference the tool in the agent's prompt. | | Tool Name | String | The name used to reference the tool in the agent's prompt. |
| Tool Description | String | A brief description of the tool to guide the model in using it. | | Tool Description | String | A brief description of the tool to guide the model in using it. |
| Keyspace | String | The name of the keyspace. | | Keyspace | String | The name of the keyspace. |
| Table Name | String | The name of the Astra DB CQL table to query. | | Table Name | String | The name of the Astra DB CQL table to query. |
| Token | SecretString | The authentication token for Astra DB. | | Token | SecretString | The authentication token for Astra DB. |
| API Endpoint | String | The Astra DB API endpoint. | | API Endpoint | String | The Astra DB API endpoint. |
| Projection Fields | String | The attributes to return, separated by commas. Default: "*". | | Projection Fields | String | The attributes to return, separated by commas. Default: "*". |
| Partition Keys | Dict | Required parameters that the model must fill to query the tool. | | Partition Keys | Dict | Required parameters that the model must fill to query the tool. |
| Clustering Keys | Dict | Optional parameters the model can fill to refine the query. Required parameters should be marked with an exclamation mark (for example, `!customer_id`). | | Clustering Keys | Dict | Optional parameters the model can fill to refine the query. Required parameters should be marked with an exclamation mark, for example, `!customer_id`. |
| Static Filters | Dict | Attribute-value pairs used to filter query results. | | Static Filters | Dict | Attribute-value pairs used to filter query results. |
| Limit | String | The number of records to return. | | Limit | String | The number of records to return. |
### Outputs **Outputs**
| Name | Type | Description | | Name | Type | Description |
|------|------|-------------| |------|------|-------------|
| Data | List[Data] | A list of [Data](/concepts-objects) objects containing the query results from the Astra DB CQL table. Each Data object contains the document fields specified by the projection fields. Limited by the `number_of_results` parameter. | | Data | List[Data] | A list of [Data](/concepts-objects) objects containing the query results from the Astra DB CQL table. Each Data object contains the document fields specified by the projection fields. Limited by the `number_of_results` parameter. |
| Tool | StructuredTool | A LangChain StructuredTool object that can be used in agent workflows. Contains the tool name, description, argument schema based on partition and clustering keys, and the query function. | | Tool | StructuredTool | A LangChain StructuredTool object that can be used in agent workflows. Contains the tool name, description, argument schema based on partition and clustering keys, and the query function. |
</details>
## Bing Search API ## Bing Search API
This component allows you to call the Bing Search API. This component allows you to call the Bing Search API.
### Inputs <details>
<summary>Parameters</summary>
| Name | Type | Description | **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 | Name | Type | Description |
|------|------|-------------|
| bing_subscription_key | SecretString | A Bing API subscription key. |
| input_value | String | The search query input. |
| bing_search_url | String | A custom Bing Search URL. |
| k | Integer | The number of search results to return. |
| Name | Type | Description | **Outputs**
|---------|-----------|--------------------------------------|
| results | List[Data]| List of search results |
| tool | Tool | Bing Search tool for use in LangChain|
## Calculator Tool | Name | Type | Description |
|------|------|-------------|
| results | List[Data] | A list of search results. |
| tool | Tool | A Bing Search tool for use in LangChain. |
This component creates a tool for performing basic arithmetic operations on a given expression. </details>
### Inputs
| Name | Type | Description |
|------------|--------|--------------------------------------------------------------------|
| expression | String | The arithmetic expression to evaluate (for example, `4*4*(33/22)+12-20`). |
### Outputs
| Name | Type | Description |
|--------|------|-------------------------------------------------|
| result | Tool | Calculator tool for use in LangChain |
This component allows you to evaluate basic arithmetic expressions. It supports addition, subtraction, multiplication, division, and exponentiation. The tool uses a secure evaluation method that prevents the execution of arbitrary Python code.
## Combinatorial Reasoner ## Combinatorial Reasoner
This component runs Icosa's Combinatorial Reasoning (CR) pipeline on an input to create an optimized prompt with embedded reasons. For more information, see [Icosa Computing](https://www.icosacomputing.com/). This component runs Icosa's Combinatorial Reasoning (CR) pipeline on an input to create an optimized prompt with embedded reasons. For more information, see [Icosa computing](https://www.icosacomputing.com/).
### Inputs <details>
<summary>Parameters</summary>
| Name | Display Name | Description | **Inputs**
|------------------------|--------------|---------------------------------------|
| prompt | Prompt | Input to run CR on |
| openai_api_key | OpenAI API Key | OpenAI API key for authentication |
| username | Username | Username for Icosa API authentication |
| password | Password | Password for Icosa API authentication |
| model_name | Model Name | OpenAI LLM to use for reason generation|
### Outputs | Name | Type | Description |
|------|------|-------------|
| prompt | String | The input to run CR on. |
| openai_api_key | SecretString | An OpenAI API key for authentication. |
| username | String | A username for Icosa API authentication. |
| password | SecretString | A password for Icosa API authentication. |
| model_name | String | The OpenAI LLM to use for reason generation. |
| Name | Display Name | Description | **Outputs**
|---------|-----------|--------------------------------------|
| optimized_prompt | Optimized Prompt| A message object containing the optimized prompt | | Name | Type | Description |
| reasons | Selected Reasons| A list of the selected reasons that are embedded in the optimized prompt| |------|------|-------------|
| optimized_prompt | Message | A message object containing the optimized prompt. |
| reasons | List[String] | A list of the selected reasons that are embedded in the optimized prompt. |
</details>
## DuckDuckGo search ## DuckDuckGo search
This component performs web searches using the [DuckDuckGo](https://www.duckduckgo.com) search engine with result-limiting capabilities. This component performs web searches using the [DuckDuckGo](https://www.duckduckgo.com) search engine with result-limiting capabilities.
### Inputs <details>
<summary>Parameters</summary>
| Name | Display Name | Info | **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 | Name | Type | Description |
|------|------|-------------|
| input_value | String | The search query to execute with DuckDuckGo. |
| max_results | Integer | The maximum number of search results to return. Default: 5. |
| max_snippet_length | Integer | The maximum length of each result snippet. Default: 100. |
| Name | Display Name | Info | **Outputs**
|------|--------------|------|
| data | [Data](/concepts-objects#data-object) | List of search results as Data objects containing snippets and full content. | | Name | Type | Description |
| text | Text | Search results formatted as a single text string. | |------|------|-------------|
| data | List[Data] | A list of search results as Data objects containing snippets and full content. |
| text | String | The search results formatted as a single text string. |
</details>
## Exa Search ## Exa Search
This component provides an [https://exa.ai/](Exa Search) toolkit for search and content retrieval. This component provides an [Exa Search](https://exa.ai/) toolkit for search and content retrieval.
### Inputs <details>
<summary>Parameters</summary>
| Name | Display Name | Info | **Inputs**
|------|--------------|------|
| metaphor_api_key | Exa Search API Key | API key for Exa Search (entered as a password) |
| use_autoprompt | Use Autoprompt | Whether to use autoprompt feature (default: true) |
| search_num_results | Search Number of Results | Number of results to return for search (default: 5) |
| similar_num_results | Similar Number of Results | Number of similar results to return (default: 5) |
### Outputs | Name | Type | Description |
|------|------|-------------|
| metaphor_api_key | SecretString | An API key for Exa Search. |
| use_autoprompt | Boolean | Whether to use the autoprompt feature. Default: true. |
| search_num_results | Integer | The number of results to return for search. Default: 5. |
| similar_num_results | Integer | The number of similar results to return. Default: 5. |
**Outputs**
| Name | Type | Description |
|------|------|-------------|
| tools | List[Tool] | A list of search tools provided by the toolkit. |
</details>
| Name | Display Name | Info |
|------|--------------|------|
| tools | Tools | List of search tools provided by the toolkit |
## Glean Search API ## Glean Search API
This component allows you to call the Glean Search API. This component allows you to call the Glean Search API.
### Inputs <details>
<summary>Parameters</summary>
| Name | Type | Description | **Inputs**
|------------------------|--------------|---------------------------------------|
| glean_api_url | String | URL of the Glean API |
| glean_access_token | SecretString | Access token for Glean API authentication |
| query | String | Search query input |
| page_size | Integer | Number of results per page (default: 10) |
| request_options | Dict | Additional options for the API request (optional) |
### Outputs | Name | Type | Description |
|------|------|-------------|
| glean_api_url | String | The URL of the Glean API. |
| glean_access_token | SecretString | An access token for Glean API authentication. |
| query | String | The search query input. |
| page_size | Integer | The number of results per page. Default: 10. |
| request_options | Dict | Additional options for the API request. |
| Name | Type | Description | **Outputs**
|---------|-----------|--------------------------------------|
| results | List[Data]| List of search results |
| tool | Tool | Glean Search tool for use in LangChain|
## Google Search API | Name | Type | Description |
|------|------|-------------|
| results | List[Data] | A list of search results. |
| tool | Tool | A Glean Search tool for use in LangChain. |
:::important </details>
This component is in **Legacy**, which means it is no longer in active development as of Langflow version 1.3.
:::
This component allows you to call the Google Search API.
### Inputs
| Name | Type | Description |
|------------------------|--------------|---------------------------------------|
| 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
| Name | Type | Description |
|---------|-----------|--------------------------------------|
| results | List[Data]| List of search results |
| tool | Tool | Google Search tool for use in LangChain|
## Google Serper API ## Google Serper API
This component allows you to call the Serper.dev Google Search API. This component allows you to call the Serper.dev Google Search API.
### Inputs <details>
<summary>Parameters</summary>
| Name | Type | Description | **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 | Name | Type | Description |
|------|------|-------------|
| serper_api_key | SecretString | An API key for Serper.dev authentication. |
| input_value | String | The search query input. |
| k | Integer | The number of search results to return. |
| Name | Type | Description | **Outputs**
|---------|-----------|--------------------------------------|
| results | List[Data]| List of search results |
| tool | Tool | Google Serper search tool for use in LangChain|
| Name | Type | Description |
|------|------|-------------|
| results | List[Data] | A list of search results. |
| tool | Tool | A Google Serper search tool for use in LangChain. |
</details>
## MCP server ## MCP server
@ -380,258 +381,260 @@ The flow looks like this:
6. Open the **Playground** and chat with your tool. 6. Open the **Playground** and chat with your tool.
The agent chooses the correct tool based on your query. The agent chooses the correct tool based on your query.
### Inputs <details>
<summary>Parameters</summary>
| Name | Type | Description | **Inputs**
|---------|--------|--------------------------------------------|
| command | String | MCP command (default: `uvx mcp-sse-shim@latest`) |
### Outputs | Name | Type | Description |
|------|------|-------------|
| command | String | The MCP command. Default: `uvx mcp-sse-shim@latest`. |
| Name | Type | Description | **Outputs**
|-------|-----------|-------------------------------------------|
| tools | List[Tool]| List of tools exposed by the MCP server |
## MCP Tools (stdio) | Name | Type | Description |
:::important |------|------|-------------|
This component is deprecated as of Langflow version 1.3. | tools | List[Tool] | A list of tools exposed by the MCP server. |
Instead, use the [MCP server component](/components-tools#mcp-server)
:::
</details>
## MCP Tools (SSE) ## Wikidata
:::important
This component is deprecated as of Langflow version 1.3.
Instead, use the [MCP server component](/components-tools#mcp-server)
:::
## Python Code Structured Tool This component performs a search using the Wikidata API.
<details>
<summary>Parameters</summary>
**Inputs**
| Name | Type | Description |
|------|------|-------------|
| query | String | The text query for similarity search on Wikidata. |
**Outputs**
| Name | Type | Description |
|------|------|-------------|
| data | List[Data] | The search results from Wikidata API as a list of Data objects. |
| text | Message | The search results formatted as a text message. |
</details>
## Legacy components
Legacy components are available for use but are no longer supported.
### Calculator Tool
This component allows you to evaluate basic arithmetic expressions. It supports addition, subtraction, multiplication, division, and exponentiation.
<details>
<summary>Parameters</summary>
**Inputs**
| Name | Type | Description |
|------|------|-------------|
| expression | String | The arithmetic expression to evaluate. For example, `4*4*(33/22)+12-20`. |
**Outputs**
| Name | Type | Description |
|------|------|-------------|
| result | Tool | A calculator tool for use in LangChain. |
</details>
### Google Search API
This component allows you to call the Google Search API.
<details>
<summary>Parameters</summary>
**Inputs**
| Name | Type | Description |
|------|------|-------------|
| google_api_key | SecretString | A Google API key for authentication. |
| google_cse_id | SecretString | A Google Custom Search Engine ID. |
| input_value | String | The search query input. |
| k | Integer | The number of search results to return. |
**Outputs**
| Name | Type | Description |
|------|------|-------------|
| results | List[Data] | A list of search results. |
| tool | Tool | A Google Search tool for use in LangChain. |
</details>
### Python Code Structured Tool
This component creates a structured tool from Python code using a dataclass. This component creates a structured tool from Python code using a dataclass.
The component dynamically updates its configuration based on the provided Python code, allowing for custom function arguments and descriptions. The component dynamically updates its configuration based on the provided Python code, allowing for custom function arguments and descriptions.
### Inputs <details>
<summary>Parameters</summary>
| Name | Type | Description | **Inputs**
|------------------------|--------------|---------------------------------------|
| tool_code | String | Python code for the tool's dataclass |
| tool_name | String | Name of the tool |
| tool_description | String | Description of the tool |
| return_direct | Boolean | Whether to return the function output directly |
| tool_function | String | Selected function for the tool |
| global_variables | Dict | Global variables or data for the tool |
### Outputs | Name | Type | Description |
|------|------|-------------|
| tool_code | String | The Python code for the tool's dataclass. |
| tool_name | String | The name of the tool. |
| tool_description | String | The description of the tool. |
| return_direct | Boolean | Whether to return the function output directly. |
| tool_function | String | The selected function for the tool. |
| global_variables | Dict | Global variables or data for the tool. |
| Name | Type | Description | **Outputs**
|-------------|-------|-----------------------------------------|
| result_tool | Tool │ Structured tool created from the Python code |
## Python REPL Tool | Name | Type | Description |
|------|------|-------------|
| result_tool | Tool | A structured tool created from the Python code. |
:::important </details>
This component is in **Legacy**, which means it is no longer in active development as of Langflow version 1.3.
::: ### Python REPL Tool
This component creates a Python REPL (Read-Eval-Print Loop) tool for executing Python code. This component creates a Python REPL (Read-Eval-Print Loop) tool for executing Python code.
### Inputs <details>
<summary>Parameters</summary>
| Name | Type | Description | **Inputs**
|-----------------|--------------|--------------------------------------------------------|
| name | String | The name of the tool (default: "python_repl") |
| description | String | A description of the tool's functionality |
| global_imports | List[String] | List of modules to import globally (default: ["math"]) |
### Outputs | Name | Type | Description |
|------|------|-------------|
| name | String | The name of the tool. Default: `python_repl`. |
| description | String | A description of the tool's functionality. |
| global_imports | List[String] | A list of modules to import globally. Default: `math`. |
| Name | Type | Description | **Outputs**
|------|------|--------------------------------------------|
| tool | Tool | Python REPL tool for use in LangChain |
## Retriever Tool | Name | Type | Description |
|------|------|-------------|
| tool | Tool | A Python REPL tool for use in LangChain. |
</details>
### Retriever Tool
This component creates a tool for interacting with a retriever in LangChain. This component creates a tool for interacting with a retriever in LangChain.
### Inputs <details>
<summary>Parameters</summary>
| Name | Type | Description | **Inputs**
|-------------|---------------|---------------------------------------------|
| retriever | BaseRetriever | The retriever to interact with |
| name | String | The name of the tool |
| description | String | A description of the tool's functionality |
### Outputs | Name | Type | Description |
|------|------|-------------|
| retriever | BaseRetriever | The retriever to interact with. |
| name | String | The name of the tool. |
| description | String | A description of the tool's functionality. |
| Name | Type | Description | **Outputs**
|------|------|--------------------------------------------|
| tool | Tool | Retriever tool for use in LangChain |
## SearXNG Search Tool | Name | Type | Description |
|------|------|-------------|
| tool | Tool | A retriever tool for use in LangChain. |
This component creates a tool for searching using SearXNG, a metasearch engine. </details>
### Inputs ### Search API
| Name | Type | Description |
|-------------|--------------|---------------------------------------|
| url | String | The URL of the SearXNG instance |
| max_results | Integer | Maximum number of results to return |
| categories | List[String] | Categories to search in |
| language | String | Language for the search results |
### Outputs
| Name | Type | Description |
|-------------|------|--------------------------------------------|
| result_tool | Tool | SearXNG search tool for use in LangChain |
## Search API
:::important
This component is in **Legacy**, which means it is no longer in active development as of Langflow version 1.3.
:::
This component calls the `searchapi.io` API. It can be used to search the web for information. This component calls the `searchapi.io` API. It can be used to search the web for information.
For more information, see the [SearchAPI documentation](https://www.searchapi.io/docs/google). For more information, see the [SearchAPI documentation](https://www.searchapi.io/docs/google).
### Inputs <details>
<summary>Parameters</summary>
| Name | Display Name | Info | **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 | Name | Type | Description |
|------|------|-------------|
| engine | String | The search engine to use. Default: `google`. |
| api_key | SecretString | The API key for authenticating with SearchAPI. |
| input_value | String | The search query or input for the API call. |
| search_params | Dict | Additional parameters for customizing the search. |
| Name | Display Name | Info | **Outputs**
|------|-----------------|------------------------------------------------------|
| data | Search Results | List of Data objects containing search results |
| tool | Search API Tool | A Tool object for use in LangChain workflows |
## Serp Search API | Name | Type | Description |
|------|------|-------------|
| data | List[Data] | A list of Data objects containing search results. |
| tool | Tool | A Tool object for use in LangChain workflows. |
This component creates a tool for searching using the Serp API. </details>
### Inputs ### SearXNG Search Tool
| Name | Type | Description | This component creates a tool for searching using SearXNG, a metasearch engine.
|------------------|--------------|---------------------------------------------|
| serpapi_api_key | SecretString | API key for Serp API authentication |
| input_value | String | Search query input |
| search_params | Dict | Additional search parameters (optional) |
### Outputs <details>
<summary>Parameters</summary>
| Name | Type | Description | **Inputs**
|---------|-----------|---------------------------------------------|
| results | List[Data]| List of search results |
| tool | Tool | Serp API search tool for use in LangChain |
## Tavily AI Search | Name | Type | Description |
|------|------|-------------|
| url | String | The URL of the SearXNG instance. |
| max_results | Integer | The maximum number of results to return. |
| categories | List[String] | The categories to search in. |
| language | String | The language for the search results. |
This component performs searches using the Tavily AI search engine, which is optimized for LLMs and RAG applications. **Outputs**
### Inputs | Name | Type | Description |
|------|------|-------------|
| result_tool | Tool | A SearXNG search tool for use in LangChain. |
| Name | Display Name | Info | </details>
|------|--------------|------|
| 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 ### Wikipedia API
| Name | Display Name | Info |
|------|--------------|------|
| data | Data | The search results as a list of Data objects. |
| text | Text | The search results formatted as a text string. |
## Wikidata
:::important
This component is in **Legacy**, which means it is no longer in active development as of Langflow version 1.3.
:::
This component performs a search using the Wikidata API.
### Inputs
| Name | Display Name | Info |
|------|--------------|------|
| query | Query | The text query for similarity search on Wikidata. |
### Outputs
| Name | Display Name | Info |
|------|--------------|------|
| data | Data | The search results from Wikidata API as a list of Data objects. |
| text | Message | The search results formatted as a text message. |
## Wikipedia API
:::important
This component is in **Legacy**, which means it is no longer in active development as of Langflow version 1.3.
:::
This component creates a tool for searching and retrieving information from Wikipedia. This component creates a tool for searching and retrieving information from Wikipedia.
### Inputs <details>
<summary>Parameters</summary>
| Name | Type | Description | **Inputs**
|-------------------------|---------|-----------------------------------------------------------|
| input_value | String | Search query input |
| lang | String | Language code for Wikipedia (default: "en") |
| k | Integer | Number of results to return |
| load_all_available_meta | Boolean | Whether to load all available metadata (advanced) |
| doc_content_chars_max | Integer | Maximum number of characters for document content (advanced)|
### Outputs | Name | Type | Description |
|------|------|-------------|
| input_value | String | The search query input. |
| lang | String | The language code for Wikipedia. Default: `en`. |
| k | Integer | The number of results to return. |
| load_all_available_meta | Boolean | Whether to load all available metadata. |
| doc_content_chars_max | Integer | The maximum number of characters for document content. |
| Name | Type | Description | **Outputs**
|---------|-----------|---------------------------------------|
| results | List[Data]| List of Wikipedia search results |
| tool | Tool | Wikipedia search tool for use in LangChain |
## Wolfram Alpha API | Name | Type | Description |
|------|------|-------------|
| results | List[Data] | A list of Wikipedia search results. |
| tool | Tool | A Wikipedia search tool for use in LangChain. |
This component creates a tool for querying the Wolfram Alpha API. </details>
### Inputs ## Deprecated components
| Name | Type | Description | Deprecated components have been replaced by newer alternatives and should not be used in new projects.
|-------------|--------------|--------------------------------|
| input_value | String | Query input for Wolfram Alpha |
| app_id | SecretString | Wolfram Alpha API App ID |
### Outputs ### MCP Tools (stdio)
:::important
| Name | Type | Description | This component is deprecated as of Langflow version 1.3.
|---------|-----------|------------------------------------------------| Instead, use the [MCP server component](/components-tools#mcp-server)
| results | List[Data]| List containing the Wolfram Alpha API response | :::
| tool | Tool | Wolfram Alpha API tool for use in LangChain |
## Yahoo Finance News Tool
This component creates a tool for retrieving news from Yahoo Finance.
### Inputs
This component does not have any input parameters.
### Outputs
| Name | Type | Description |
|------|------|----------------------------------------------|
| tool | Tool | Yahoo Finance News tool for use in LangChain |
### MCP Tools (SSE)
:::important
This component is deprecated as of Langflow version 1.3.
Instead, use the [MCP server component](/components-tools#mcp-server)
:::