Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-langchain-core for
openSUSE:Factory checked in at 2026-09-28 10:39:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-langchain-core (Old)
and /work/SRC/openSUSE:Factory/.python-langchain-core.new.383539 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-langchain-core"
Mon Sep 28 10:39:01 2026 rev:16 rq:1380709 version:1.6.5
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-langchain-core/python-langchain-core.changes
2026-09-22 21:58:33.365420449 +0200
+++
/work/SRC/openSUSE:Factory/.python-langchain-core.new.383539/python-langchain-core.changes
2026-09-28 10:40:19.215536720 +0200
@@ -1,0 +2,7 @@
+Fri Sep 25 17:08:03 UTC 2026 - Martin Pluskal <[email protected]>
+
+- Update to version 1.6.5:
+ * fix(core): abbreviate long tool IDs in XML buffer
+ strings
+
+-------------------------------------------------------------------
Old:
----
langchain_core-1.6.4.tar.gz
New:
----
langchain_core-1.6.5.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-langchain-core.spec ++++++
--- /var/tmp/diff_new_pack.khMAhJ/_old 2026-09-28 10:40:19.803561378 +0200
+++ /var/tmp/diff_new_pack.khMAhJ/_new 2026-09-28 10:40:19.804561420 +0200
@@ -17,7 +17,7 @@
Name: python-langchain-core
-Version: 1.6.4
+Version: 1.6.5
Release: 0
Summary: Building applications with LLMs through composability
License: MIT
++++++ langchain_core-1.6.4.tar.gz -> langchain_core-1.6.5.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/langchain_core-1.6.4/PKG-INFO
new/langchain_core-1.6.5/PKG-INFO
--- old/langchain_core-1.6.4/PKG-INFO 2020-02-02 01:00:00.000000000 +0100
+++ new/langchain_core-1.6.5/PKG-INFO 2020-02-02 01:00:00.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.5
Name: langchain-core
-Version: 1.6.4
+Version: 1.6.5
Summary: Building applications with LLMs through composability
Project-URL: Homepage, https://docs.langchain.com/
Project-URL: Documentation,
https://reference.langchain.com/python/langchain_core/
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/langchain_core-1.6.4/langchain_core/messages/utils.py
new/langchain_core-1.6.5/langchain_core/messages/utils.py
--- old/langchain_core-1.6.4/langchain_core/messages/utils.py 2020-02-02
01:00:00.000000000 +0100
+++ new/langchain_core-1.6.5/langchain_core/messages/utils.py 2020-02-02
01:00:00.000000000 +0100
@@ -284,6 +284,16 @@
raise ValueError(msg)
+_TOOL_CALL_ID_DISPLAY_LIMIT = 64
+
+
+def _display_tool_call_id(tool_call_id: str) -> str:
+ """Abbreviate long tool-call IDs in formatted message strings."""
+ if len(tool_call_id) > _TOOL_CALL_ID_DISPLAY_LIMIT:
+ return f"{tool_call_id[:_TOOL_CALL_ID_DISPLAY_LIMIT]}..."
+ return tool_call_id
+
+
def get_buffer_string(
messages: Sequence[BaseMessage],
human_prefix: str = "Human",
@@ -327,6 +337,9 @@
If a message is an `AIMessage` and contains both tool calls under
`tool_calls`
and a function call under `additional_kwargs["function_call"]`, only
the tool
calls will be appended to the string representation.
+ In XML format, tool-call IDs longer than 64 characters are displayed
+ as the first 64 characters followed by `...`; the original messages
+ are not changed.
!!! note "XML format"
@@ -469,7 +482,7 @@
if has_tool_calls:
for tc in ai_msg.tool_calls:
- tc_id = quoteattr(str(tc.get("id") or ""))
+ tc_id = quoteattr(_display_tool_call_id(tc.get("id")
or ""))
tc_name = quoteattr(str(tc.get("name") or ""))
tc_args = escape(
json.dumps(tc.get("args", {}), ensure_ascii=False)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/langchain_core-1.6.4/langchain_core/version.py
new/langchain_core-1.6.5/langchain_core/version.py
--- old/langchain_core-1.6.4/langchain_core/version.py 2020-02-02
01:00:00.000000000 +0100
+++ new/langchain_core-1.6.5/langchain_core/version.py 2020-02-02
01:00:00.000000000 +0100
@@ -1,3 +1,3 @@
"""Version information for `langchain-core`."""
-VERSION = "1.6.4"
+VERSION = "1.6.5"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/langchain_core-1.6.4/pyproject.toml
new/langchain_core-1.6.5/pyproject.toml
--- old/langchain_core-1.6.4/pyproject.toml 2020-02-02 01:00:00.000000000
+0100
+++ new/langchain_core-1.6.5/pyproject.toml 2020-02-02 01:00:00.000000000
+0100
@@ -21,7 +21,7 @@
"Topic :: Software Development :: Libraries :: Python Modules",
]
-version = "1.6.4"
+version = "1.6.5"
requires-python = ">=3.10.0,<4.0.0"
dependencies = [
"langsmith>=0.3.45,<1.0.0",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/langchain_core-1.6.4/tests/unit_tests/messages/test_utils.py
new/langchain_core-1.6.5/tests/unit_tests/messages/test_utils.py
--- old/langchain_core-1.6.4/tests/unit_tests/messages/test_utils.py
2020-02-02 01:00:00.000000000 +0100
+++ new/langchain_core-1.6.5/tests/unit_tests/messages/test_utils.py
2020-02-02 01:00:00.000000000 +0100
@@ -1792,6 +1792,30 @@
assert "NYC" in result
+def test_get_buffer_string_abbreviates_long_tool_call_ids_in_xml_only() ->
None:
+ """Long IDs are shortened in display text without modifying protocol
messages."""
+ long_id = "call_" + "thought_signature" * 100
+ message = AIMessage(
+ content="calling",
+ tool_calls=[
+ {"name": "search", "args": {"query": "weather"}, "id": long_id},
+ {"name": "search", "args": {}, "id": "call_short"},
+ ],
+ )
+ result = ToolMessage(content="result", tool_call_id=long_id)
+
+ rendered = get_buffer_string([message, result], format="xml")
+ prefix = get_buffer_string([message, result])
+
+ assert f"{long_id[:64]}..." in rendered
+ assert long_id not in rendered
+ assert "call_short" in rendered
+ assert "result" in rendered
+ assert long_id in prefix
+ assert message.tool_calls[0]["id"] == long_id
+ assert result.tool_call_id == long_id
+
+
def test_get_buffer_string_with_tool_calls_empty_content() -> None:
"""Test `get_buffer_string` with `tool_calls` and empty `content`."""
messages = [
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/langchain_core-1.6.4/uv.lock
new/langchain_core-1.6.5/uv.lock
--- old/langchain_core-1.6.4/uv.lock 2020-02-02 01:00:00.000000000 +0100
+++ new/langchain_core-1.6.5/uv.lock 2020-02-02 01:00:00.000000000 +0100
@@ -1073,7 +1073,7 @@
[[package]]
name = "langchain-core"
-version = "1.6.4"
+version = "1.6.5"
source = { editable = "." }
dependencies = [
{ name = "httpx" },