The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
community[fix]: Handle None value in raw_content from Tavily API response (#30021)
kawamou8977ac5ab01e
diff --git a/libs/community/langchain_community/retrievers/tavily_search_api.py b/libs/community/langchain_community/retrievers/tavily_search_api.pyindex 61539d4ba3..aa0a08e3bf 100644--- a/libs/community/langchain_community/retrievers/tavily_search_api.py+++ b/libs/community/langchain_community/retrievers/tavily_search_api.py@@ -123,7 +123,7 @@ class TavilySearchAPIRetriever(BaseRetriever):Document(page_content=result.get("content", "")if not self.include_raw_content- else result.get("raw_content", ""),+ else (result.get("raw_content") or ""),metadata={"title": result.get("title", ""),"source": result.get("url", ""),