Skip to content

The agent engineering platform.

anthropic[patch]: update tool choice type (#29276)

ccurme184ea8aeb2be
diff --git a/libs/partners/anthropic/langchain_anthropic/chat_models.py b/libs/partners/anthropic/langchain_anthropic/chat_models.py
index 842d30ae00..af7045d74a 100644
--- a/libs/partners/anthropic/langchain_anthropic/chat_models.py
+++ b/libs/partners/anthropic/langchain_anthropic/chat_models.py
@@ -982,7 +982,7 @@ class ChatAnthropic(BaseChatModel):
)
else:
kwargs["tool_choice"] = {
- "type": "any",
+ "type": "auto",
"disable_parallel_tool_use": disable_parallel_tool_use,
}
diff --git a/libs/partners/anthropic/pyproject.toml b/libs/partners/anthropic/pyproject.toml
index a57fe6c4a6..16ceb2ba6b 100644
--- a/libs/partners/anthropic/pyproject.toml
+++ b/libs/partners/anthropic/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "langchain-anthropic"
-version = "0.3.2"
+version = "0.3.3"
description = "An integration package connecting AnthropicMessages and LangChain"
authors = []
readme = "README.md"