Skip to content

The agent engineering platform.

multiple: push deprecation removals to 1.0 (#28236)

Erick Friisd1108607f4d7
diff --git a/docs/docs/contributing/how_to/integrations/from_template.mdx b/docs/docs/contributing/how_to/integrations/from_template.mdx
index e2edc80eae..22ff840ab7 100644
--- a/docs/docs/contributing/how_to/integrations/from_template.mdx
+++ b/docs/docs/contributing/how_to/integrations/from_template.mdx
@@ -112,7 +112,7 @@ from langchain_core._api.deprecation import deprecated
@deprecated(
since="0.0.<next community version>",
- removal="0.2.0",
+ removal="1.0.0",
alternative_import="langchain_parrot_link.ChatParrotLink"
)
class ChatParrotLink(BaseChatModel):
diff --git a/libs/community/langchain_community/embeddings/nemo.py b/libs/community/langchain_community/embeddings/nemo.py
index 38a20ffb45..478928e047 100644
--- a/libs/community/langchain_community/embeddings/nemo.py
+++ b/libs/community/langchain_community/embeddings/nemo.py
@@ -45,7 +45,7 @@ def is_endpoint_live(url: str, headers: Optional[dict], payload: Any) -> bool:
@deprecated(
since="0.0.37",
- removal="0.2.0",
+ removal="1.0.0",
message=(
"Directly instantiating a NeMoEmbeddings from langchain-community is "
"deprecated. Please use langchain-nvidia-ai-endpoints NVIDIAEmbeddings "
diff --git a/libs/partners/anthropic/langchain_anthropic/chat_models.py b/libs/partners/anthropic/langchain_anthropic/chat_models.py
index 2ed4103676..719327e78d 100644
--- a/libs/partners/anthropic/langchain_anthropic/chat_models.py
+++ b/libs/partners/anthropic/langchain_anthropic/chat_models.py
@@ -1329,7 +1329,7 @@ def _make_message_chunk_from_anthropic_event(
return message_chunk
-@deprecated(since="0.1.0", removal="0.3.0", alternative="ChatAnthropic")
+@deprecated(since="0.1.0", removal="1.0.0", alternative="ChatAnthropic")
class ChatAnthropicMessages(ChatAnthropic):
pass
diff --git a/libs/partners/anthropic/langchain_anthropic/experimental.py b/libs/partners/anthropic/langchain_anthropic/experimental.py
index eae408862d..2d2e35fae2 100644
--- a/libs/partners/anthropic/langchain_anthropic/experimental.py
+++ b/libs/partners/anthropic/langchain_anthropic/experimental.py
@@ -146,7 +146,7 @@ def _xml_to_tool_calls(elem: Any, tools: List[Dict]) -> List[Dict[str, Any]]:
@deprecated(
"0.1.5",
- removal="0.3.0",
+ removal="1.0.0",
alternative="ChatAnthropic",
message=(
"Tool-calling is now officially supported by the Anthropic API so this "
diff --git a/libs/partners/anthropic/langchain_anthropic/llms.py b/libs/partners/anthropic/langchain_anthropic/llms.py
index 986137902c..0b2579946d 100644
--- a/libs/partners/anthropic/langchain_anthropic/llms.py
+++ b/libs/partners/anthropic/langchain_anthropic/llms.py
@@ -381,7 +381,7 @@ class AnthropicLLM(LLM, _AnthropicCommon):
)
-@deprecated(since="0.1.0", removal="0.3.0", alternative="AnthropicLLM")
+@deprecated(since="0.1.0", removal="1.0.0", alternative="AnthropicLLM")
class Anthropic(AnthropicLLM):
"""Anthropic large language model."""
diff --git a/libs/partners/fireworks/langchain_fireworks/chat_models.py b/libs/partners/fireworks/langchain_fireworks/chat_models.py
index 11b24197f6..9297710470 100644
--- a/libs/partners/fireworks/langchain_fireworks/chat_models.py
+++ b/libs/partners/fireworks/langchain_fireworks/chat_models.py
@@ -627,7 +627,7 @@ class ChatFireworks(BaseChatModel):
@deprecated(
since="0.2.1",
alternative="langchain_fireworks.chat_models.ChatFireworks.bind_tools",
- removal="0.3.0",
+ removal="1.0.0",
)
def bind_functions(
self,
diff --git a/libs/partners/groq/langchain_groq/chat_models.py b/libs/partners/groq/langchain_groq/chat_models.py
index b935922e6a..f8e518cc4f 100644
--- a/libs/partners/groq/langchain_groq/chat_models.py
+++ b/libs/partners/groq/langchain_groq/chat_models.py
@@ -654,7 +654,7 @@ class ChatGroq(BaseChatModel):
@deprecated(
since="0.2.1",
alternative="langchain_groq.chat_models.ChatGroq.bind_tools",
- removal="0.3.0",
+ removal="1.0.0",
)
def bind_functions(
self,
diff --git a/libs/partners/openai/langchain_openai/chat_models/base.py b/libs/partners/openai/langchain_openai/chat_models/base.py
index 94c96202b0..4579e94a49 100644
--- a/libs/partners/openai/langchain_openai/chat_models/base.py
+++ b/libs/partners/openai/langchain_openai/chat_models/base.py
@@ -1001,7 +1001,7 @@ class BaseChatOpenAI(BaseChatModel):
@deprecated(
since="0.2.1",
alternative="langchain_openai.chat_models.base.ChatOpenAI.bind_tools",
- removal="0.3.0",
+ removal="1.0.0",
)
def bind_functions(
self,
diff --git a/libs/partners/pinecone/langchain_pinecone/vectorstores.py b/libs/partners/pinecone/langchain_pinecone/vectorstores.py
index 05fbd91995..9dacbd2488 100644
--- a/libs/partners/pinecone/langchain_pinecone/vectorstores.py
+++ b/libs/partners/pinecone/langchain_pinecone/vectorstores.py
@@ -640,7 +640,7 @@ class PineconeVectorStore(VectorStore):
return None
-@deprecated(since="0.0.3", removal="0.3.0", alternative="PineconeVectorStore")
+@deprecated(since="0.0.3", removal="1.0.0", alternative="PineconeVectorStore")
class Pinecone(PineconeVectorStore):
"""Deprecated. Use PineconeVectorStore instead."""