nat.plugins.langchain.tools.tavily_internet_search#
Classes#
Tool that retrieves relevant contexts from web search (using Tavily) for the given question. |
Functions#
|
Module Contents#
- class TavilyInternetSearchToolConfig(/, **data: Any)#
Bases:
nat.data_models.function.FunctionBaseConfigTool that retrieves relevant contexts from web search (using Tavily) for the given question. Requires a TAVILY_API_KEY.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.
- async tavily_internet_search(
- tool_config: TavilyInternetSearchToolConfig,
- builder: nat.builder.builder.Builder,