changed return type for fetch_page_content to Dict[str,str]

This commit is contained in:
Geoff-Robin 2025-10-06 18:27:54 +05:30
parent 3c9e5f830b
commit 0a9b624010

View file

@ -18,7 +18,7 @@ async def fetch_page_content(
preferred_tool: Optional[Literal["tavily", "beautifulsoup"]] = "beautifulsoup", preferred_tool: Optional[Literal["tavily", "beautifulsoup"]] = "beautifulsoup",
tavily_config: Optional[TavilyConfig] = None, tavily_config: Optional[TavilyConfig] = None,
soup_crawler_config: Optional[SoupCrawlerConfig] = None, soup_crawler_config: Optional[SoupCrawlerConfig] = None,
) -> Dict[str, Union[str, Dict[str, str]]]: ) -> Dict[str, str]:
"""Fetch content from one or more URLs using the specified tool. """Fetch content from one or more URLs using the specified tool.
This function retrieves web page content using either BeautifulSoup (with custom This function retrieves web page content using either BeautifulSoup (with custom