The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
Improvement[Community] Improve api doc of `BeautifulSoupTransformer` (#26423)
ZhangShenaoc3b3f46cb8ca
diff --git a/libs/community/langchain_community/document_transformers/beautiful_soup_transformer.py b/libs/community/langchain_community/document_transformers/beautiful_soup_transformer.pyindex 901aed2bdf..4fb27cfafe 100644--- a/libs/community/langchain_community/document_transformers/beautiful_soup_transformer.py+++ b/libs/community/langchain_community/document_transformers/beautiful_soup_transformer.py@@ -132,6 +132,7 @@ class BeautifulSoupTransformer(BaseDocumentTransformer):Args:html_content: The original HTML content string.tags: A list of tags to be extracted from the HTML.+ remove_comments: If set to True, the comments will be removed.Returns:A string combining the content of the extracted tags.@@ -184,6 +185,7 @@ def get_navigable_strings(Args:element: A BeautifulSoup element.+ remove_comments: If set to True, the comments will be removed.Returns:A generator of strings.