From 184ea8aeb2be68e184c5937f8d51df22cc8ff081 Mon Sep 17 00:00:00 2001 From: ccurme Date: Fri, 17 Jan 2025 15:26:33 -0500 Subject: [PATCH] anthropic[patch]: update tool choice type (#29276) --- libs/partners/anthropic/langchain_anthropic/chat_models.py | 2 +- libs/partners/anthropic/pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/partners/anthropic/langchain_anthropic/chat_models.py b/libs/partners/anthropic/langchain_anthropic/chat_models.py index 842d30ae00d..af7045d74ae 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 a57fe6c4a6f..16ceb2ba6b6 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"