The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
community: Additional AWS deprecations (#29447)
Michael Chine1203786954f
diff --git a/libs/community/langchain_community/llms/sagemaker_endpoint.py b/libs/community/langchain_community/llms/sagemaker_endpoint.pyindex db86beb9e0..e78d265441 100644--- a/libs/community/langchain_community/llms/sagemaker_endpoint.py+++ b/libs/community/langchain_community/llms/sagemaker_endpoint.py@@ -5,6 +5,7 @@ import jsonfrom abc import abstractmethodfrom typing import Any, Dict, Generic, Iterator, List, Mapping, Optional, TypeVar, Union+from langchain_core._api.deprecation import deprecatedfrom langchain_core.callbacks import CallbackManagerForLLMRunfrom langchain_core.language_models.llms import LLMfrom langchain_core.utils import pre_init@@ -124,6 +125,11 @@ class LLMContentHandler(ContentHandlerBase[str, str]):"""Content handler for LLM class."""+@deprecated(+ since="0.3.16",+ removal="1.0",+ alternative_import="langchain_aws.llms.SagemakerEndpoint",+)class SagemakerEndpoint(LLM):"""Sagemaker Inference Endpoint models.diff --git a/libs/community/langchain_community/retrievers/bedrock.py b/libs/community/langchain_community/retrievers/bedrock.pyindex 6415bc9767..d7fe03ad2c 100644--- a/libs/community/langchain_community/retrievers/bedrock.py+++ b/libs/community/langchain_community/retrievers/bedrock.py@@ -1,5 +1,6 @@from typing import Any, Dict, List, Optional+from langchain_core._api.deprecation import deprecatedfrom langchain_core.callbacks import CallbackManagerForRetrieverRunfrom langchain_core.documents import Documentfrom langchain_core.retrievers import BaseRetriever@@ -18,6 +19,11 @@ class RetrievalConfig(BaseModel, extra="allow"): # type: ignore[call-arg]vectorSearchConfiguration: VectorSearchConfig+@deprecated(+ since="0.3.16",+ removal="1.0",+ alternative_import="langchain_aws.AmazonKnowledgeBasesRetriever",+)class AmazonKnowledgeBasesRetriever(BaseRetriever):"""Amazon Bedrock Knowledge Bases retriever.diff --git a/libs/community/langchain_community/retrievers/kendra.py b/libs/community/langchain_community/retrievers/kendra.pyindex d674c36866..1b7cc5fbcd 100644--- a/libs/community/langchain_community/retrievers/kendra.py+++ b/libs/community/langchain_community/retrievers/kendra.py@@ -11,6 +11,7 @@ from typing import (Union,)+from langchain_core._api.deprecation import deprecatedfrom langchain_core.callbacks import CallbackManagerForRetrieverRunfrom langchain_core.documents import Documentfrom langchain_core.retrievers import BaseRetriever@@ -323,6 +324,11 @@ KENDRA_CONFIDENCE_MAPPING = {}+@deprecated(+ since="0.3.16",+ removal="1.0",+ alternative_import="langchain_aws.AmazonKendraRetriever",+)class AmazonKendraRetriever(BaseRetriever):"""`Amazon Kendra Index` retriever.