The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
refactor(core): improve docstrings for HTML link extraction utilities (#34550)
Aman Gupta50c5bb5607da
diff --git a/libs/core/langchain_core/utils/html.py b/libs/core/langchain_core/utils/html.pyindex 880a2edc00..b6bbf5cf22 100644--- a/libs/core/langchain_core/utils/html.py+++ b/libs/core/langchain_core/utils/html.py@@ -43,7 +43,7 @@ def find_all_links(pattern: Regex to use for extracting links from raw HTML.Returns:- all links+ A list of all links found in the HTML."""pattern = pattern or DEFAULT_LINK_REGEXreturn list(set(re.findall(pattern, raw_html)))@@ -73,7 +73,7 @@ def extract_sub_links(exception. Otherwise, raise the exception.Returns:- sub links.+ A list of absolute paths to sub links."""base_url_to_use = base_url if base_url is not None else urlparsed_base_url = urlparse(base_url_to_use)