TavilyExtractInput#
- class langchain_tavily.tavily_extract.TavilyExtractInput[source]#
Bases:
BaseModel
Input for [TavilyExtract] Extract web page content from one or more specified URLs using Tavily Extract.
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.
self is explicitly positional-only to allow self as a field name.
- param extract_depth: Literal['basic', 'advanced'] | None = 'basic'#
Controls the thoroughness of web content extraction.
Use “basic” for faster extraction of main text content.
Use “advanced” (default) to retrieve comprehensive content including tables and embedded elements. Always use “advanced” for LinkedIn and YouTube URLs for optimal results.
Better for complex websites but may increase response time.
- param include_images: bool | None = False#
Determines whether to extract and include images from the source URLs.
Set to True when visualizations are needed for better context or understanding.
Default is False (extracts text content only).
- param urls: List[str] [Required]#
list of urls to extract