Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-langchain-anthropic for 
openSUSE:Factory checked in at 2026-08-14 22:06:53
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-langchain-anthropic (Old)
 and      /work/SRC/openSUSE:Factory/.python-langchain-anthropic.new.1258 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-langchain-anthropic"

Fri Aug 14 22:06:53 2026 rev:7 rq:1371027 version:1.5.6

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-langchain-anthropic/python-langchain-anthropic.changes
    2026-08-12 16:13:27.960901189 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-langchain-anthropic.new.1258/python-langchain-anthropic.changes
  2026-08-14 22:07:12.199490503 +0200
@@ -1,0 +2,11 @@
+Thu Aug 13 11:13:11 UTC 2026 - Martin Pluskal <[email protected]>
+
+- Update to 1.5.6:
+  * Normalize tool_search_tool_result blocks so that streaming-only
+    index fields are no longer sent back to the Anthropic API
+  * Correct model profile data for Claude Fable 5, Sonnet 5 and
+    Opus 4.1: structured output is now advertised for Fable 5 and
+    Sonnet 5, Fable 5 gains reasoning-effort levels, and the stale
+    Opus 4.1 profile override was dropped
+
+-------------------------------------------------------------------

Old:
----
  langchain_anthropic-1.5.5.tar.gz

New:
----
  langchain_anthropic-1.5.6.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-langchain-anthropic.spec ++++++
--- /var/tmp/diff_new_pack.pArR25/_old  2026-08-14 22:07:13.238528333 +0200
+++ /var/tmp/diff_new_pack.pArR25/_new  2026-08-14 22:07:13.240528406 +0200
@@ -18,7 +18,7 @@
 
 %{?sle15_python_module_pythons}
 Name:           python-langchain-anthropic
-Version:        1.5.5
+Version:        1.5.6
 Release:        0
 Summary:        Integration package connecting Claude (Anthropic) APIs and 
LangChain
 License:        MIT

++++++ langchain_anthropic-1.5.5.tar.gz -> langchain_anthropic-1.5.6.tar.gz 
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/langchain_anthropic-1.5.5/PKG-INFO 
new/langchain_anthropic-1.5.6/PKG-INFO
--- old/langchain_anthropic-1.5.5/PKG-INFO      2020-02-02 01:00:00.000000000 
+0100
+++ new/langchain_anthropic-1.5.6/PKG-INFO      2020-02-02 01:00:00.000000000 
+0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.5
 Name: langchain-anthropic
-Version: 1.5.5
+Version: 1.5.6
 Summary: Integration package connecting Claude (Anthropic) APIs and LangChain
 Project-URL: Homepage, 
https://docs.langchain.com/oss/python/integrations/providers/anthropic
 Project-URL: Documentation, 
https://reference.langchain.com/python/integrations/langchain_anthropic/
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/langchain_anthropic-1.5.5/langchain_anthropic/_version.py 
new/langchain_anthropic-1.5.6/langchain_anthropic/_version.py
--- old/langchain_anthropic-1.5.5/langchain_anthropic/_version.py       
2020-02-02 01:00:00.000000000 +0100
+++ new/langchain_anthropic-1.5.6/langchain_anthropic/_version.py       
2020-02-02 01:00:00.000000000 +0100
@@ -1,3 +1,3 @@
 """Version information for `langchain-anthropic`."""
 
-__version__ = "1.5.5"
+__version__ = "1.5.6"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/langchain_anthropic-1.5.5/langchain_anthropic/chat_models.py 
new/langchain_anthropic-1.5.6/langchain_anthropic/chat_models.py
--- old/langchain_anthropic-1.5.5/langchain_anthropic/chat_models.py    
2020-02-02 01:00:00.000000000 +0100
+++ new/langchain_anthropic-1.5.6/langchain_anthropic/chat_models.py    
2020-02-02 01:00:00.000000000 +0100
@@ -672,6 +672,23 @@
                                 },
                             ),
                         )
+                    elif block["type"] == "tool_search_tool_result":
+                        # Omit streaming-only fields, such as `index`, from 
results.
+                        content.append(
+                            _normalize_block_tool_use_id(
+                                {
+                                    k: v
+                                    for k, v in block.items()
+                                    if k
+                                    in (
+                                        "type",
+                                        "content",
+                                        "tool_use_id",
+                                        "cache_control",
+                                    )
+                                },
+                            ),
+                        )
                     elif block["type"] == "tool_result":
                         # Regular tool results that need content formatting
                         tool_content = _format_messages(
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/langchain_anthropic-1.5.5/langchain_anthropic/data/_profiles.py 
new/langchain_anthropic-1.5.6/langchain_anthropic/data/_profiles.py
--- old/langchain_anthropic-1.5.5/langchain_anthropic/data/_profiles.py 
2020-02-02 01:00:00.000000000 +0100
+++ new/langchain_anthropic-1.5.6/langchain_anthropic/data/_profiles.py 
2020-02-02 01:00:00.000000000 +0100
@@ -34,13 +34,21 @@
         "video_outputs": False,
         "reasoning_output": True,
         "tool_calling": True,
-        "structured_output": False,
+        "structured_output": True,
         "attachment": True,
         "temperature": False,
         "image_url_inputs": True,
         "pdf_tool_message": True,
         "image_tool_message": True,
         "tool_call_streaming": True,
+        "reasoning_effort_levels": [
+            "low",
+            "medium",
+            "high",
+            "xhigh",
+            "max",
+        ],
+        "reasoning_effort_default": "high",
     },
     "claude-haiku-4-5": {
         "name": "Claude Haiku 4.5 (latest)",
@@ -94,14 +102,6 @@
         "image_tool_message": True,
         "tool_call_streaming": True,
     },
-    "claude-opus-4-1": {
-        "image_url_inputs": True,
-        "pdf_inputs": True,
-        "pdf_tool_message": True,
-        "image_tool_message": True,
-        "structured_output": True,
-        "tool_call_streaming": True,
-    },
     "claude-opus-4-5": {
         "name": "Claude Opus 4.5 (latest)",
         "release_date": "2025-11-24",
@@ -404,7 +404,7 @@
         "video_outputs": False,
         "reasoning_output": True,
         "tool_calling": True,
-        "structured_output": False,
+        "structured_output": True,
         "attachment": True,
         "temperature": False,
         "image_url_inputs": True,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/langchain_anthropic-1.5.5/langchain_anthropic/data/profile_augmentations.toml
 
new/langchain_anthropic-1.5.6/langchain_anthropic/data/profile_augmentations.toml
--- 
old/langchain_anthropic-1.5.5/langchain_anthropic/data/profile_augmentations.toml
   2020-02-02 01:00:00.000000000 +0100
+++ 
new/langchain_anthropic-1.5.6/langchain_anthropic/data/profile_augmentations.toml
   2020-02-02 01:00:00.000000000 +0100
@@ -19,9 +19,6 @@
 reasoning_effort_levels = ["low", "medium", "high", "max"]
 reasoning_effort_default = "high"
 
-[overrides."claude-opus-4-1"]
-structured_output = true
-
 [overrides."claude-opus-4-5"]
 structured_output = true
 reasoning_effort_levels = ["low", "medium", "high"]
@@ -52,5 +49,11 @@
 reasoning_effort_default = "high"
 
 [overrides."claude-sonnet-5"]
+structured_output = true
+reasoning_effort_levels = ["low", "medium", "high", "xhigh", "max"]
+reasoning_effort_default = "high"
+
+[overrides."claude-fable-5"]
+structured_output = true
 reasoning_effort_levels = ["low", "medium", "high", "xhigh", "max"]
 reasoning_effort_default = "high"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/langchain_anthropic-1.5.5/pyproject.toml 
new/langchain_anthropic-1.5.6/pyproject.toml
--- old/langchain_anthropic-1.5.5/pyproject.toml        2020-02-02 
01:00:00.000000000 +0100
+++ new/langchain_anthropic-1.5.6/pyproject.toml        2020-02-02 
01:00:00.000000000 +0100
@@ -20,7 +20,7 @@
     "Topic :: Scientific/Engineering :: Artificial Intelligence",
 ]
 
-version = "1.5.5"
+version = "1.5.6"
 requires-python = ">=3.10.0,<4.0.0"
 dependencies = [
     "anthropic>=0.120.0,<1.0.0",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/langchain_anthropic-1.5.5/tests/unit_tests/test_chat_models.py 
new/langchain_anthropic-1.5.6/tests/unit_tests/test_chat_models.py
--- old/langchain_anthropic-1.5.5/tests/unit_tests/test_chat_models.py  
2020-02-02 01:00:00.000000000 +0100
+++ new/langchain_anthropic-1.5.6/tests/unit_tests/test_chat_models.py  
2020-02-02 01:00:00.000000000 +0100
@@ -3356,6 +3356,35 @@
     assert tool_result_block["content"][1]["tool_name"] == "weather_forecast"
 
 
+# Regression test for https://github.com/langchain-ai/langchain/issues/37584
+def test__format_messages_tool_search_result_drops_streaming_index() -> None:
+    """Test that streaming-only indexes are not sent to Anthropic."""
+    messages = [
+        AIMessage(  # type: ignore[misc]
+            [
+                {
+                    "type": "tool_search_tool_result",
+                    "tool_use_id": "srvtoolu_123",
+                    "content": [
+                        {"type": "tool_reference", "tool_name": "get_weather"},
+                    ],
+                    "index": 1,
+                },
+            ],
+        ),
+    ]
+
+    _, formatted = _format_messages(messages)
+
+    assert formatted[0]["content"][0] == {
+        "type": "tool_search_tool_result",
+        "tool_use_id": "srvtoolu_123",
+        "content": [
+            {"type": "tool_reference", "tool_name": "get_weather"},
+        ],
+    }
+
+
 def test_auto_append_betas_for_mcp_servers() -> None:
     """Test that `mcp-client-2025-11-20` beta is automatically appended
     for `mcp_servers`."""
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/langchain_anthropic-1.5.5/uv.lock 
new/langchain_anthropic-1.5.6/uv.lock
--- old/langchain_anthropic-1.5.5/uv.lock       2020-02-02 01:00:00.000000000 
+0100
+++ new/langchain_anthropic-1.5.6/uv.lock       2020-02-02 01:00:00.000000000 
+0100
@@ -617,7 +617,7 @@
 
 [[package]]
 name = "langchain-anthropic"
-version = "1.5.5"
+version = "1.5.6"
 source = { editable = "." }
 dependencies = [
     { name = "anthropic" },

Reply via email to