Optional
apiThe base URL to be used for the Tavily Search API.
Optional
apiAn API wrapper that can be used to interact with the Tavily Search API. Useful for testing.
If specified, the tool will use this API wrapper instead of creating a new one, and fields used in API Wrapper initialization, like TavilySearchAPIRetrieverFields.tavilyApiKey, will be ignored.
Optional
autoWhether to automatically determine optimal search parameters based on the query. This can only be set during tool instantiation, not at invocation time.
Optional
chunksThe number of content chunks to retrieve from each source. Each chunk's length is maximum 500 characters. Available only when searchDepth is advanced. See https://docs.tavily.com/docs/rest-api/api-reference
Optional
country?: undefined | stringThe country to search in. MUST be the full country name in lowercase like "united states" or "united kingdom".
Optional
description?: undefined | stringThe description of the tool.
Optional
excludeA list of domains to specifically exclude from the search results.
Optional
includeInclude a short answer to the original query.
Optional
includeA list of domains to specifically include in the search results.
Optional
includeWhether to include the favicon URL for each result.
Optional
includeWhen includeImages is set to True, this option adds descriptive text for each image.
Optional
includeInclude a list of query-related images in the response.
Optional
includeInclude the cleaned and parsed HTML content of each search result. "markdown" returns search result content in markdown format. "text" returns the plain text from the results and may increase latency. If true, defaults to "markdown"
Optional
maxThe maximum number of search results to return.
Optional
name?: undefined | stringThe name of the tool.
Optional
returnWhether to return the tool's output directly.
Setting this to true means that after the tool is called, an agent should stop looping.
Optional
searchThe depth of the search. It can be "basic" or "advanced".
Optional
tavilyThe API key used for authentication with the Tavily Search API.
Optional
timeThe time range of the search. This will filter the time range of the results back from the current date. See https://docs.tavily.com/docs/rest-api/api-reference
Optional
topic?: undefined | TopicTypeThe category of the search. This will determine which of our agents will be used for the search. Currently, only "general" and "news" are supported. See https://docs.tavily.com/docs/rest-api/api-reference
Options for the TavilySearchResults tool.