Skip to content

The agent engineering platform.

release(core): 1.6.0 (#39760)

ccurme85602c3676fb
diff --git a/libs/core/langchain_core/version.py b/libs/core/langchain_core/version.py
index 3c136974b3..d1d28acff8 100644
--- a/libs/core/langchain_core/version.py
+++ b/libs/core/langchain_core/version.py
@@ -1,3 +1,3 @@
"""Version information for `langchain-core`."""
-VERSION = "1.5.6"
+VERSION = "1.6.0"
diff --git a/libs/core/pyproject.toml b/libs/core/pyproject.toml
index f740465702..2fa0ff1b31 100644
--- a/libs/core/pyproject.toml
+++ b/libs/core/pyproject.toml
@@ -21,7 +21,7 @@ classifiers = [
"Topic :: Software Development :: Libraries :: Python Modules",
]
-version = "1.5.6"
+version = "1.6.0"
requires-python = ">=3.10.0,<4.0.0"
dependencies = [
"langsmith>=0.3.45,<1.0.0",
diff --git a/libs/core/scripts/check_version.py b/libs/core/scripts/check_version.py
index c3a894554a..6f7712a76e 100644
--- a/libs/core/scripts/check_version.py
+++ b/libs/core/scripts/check_version.py
@@ -1,20 +1,14 @@
-"""Check version consistency between package metadata and generated artifacts.
+"""Check version consistency between `pyproject.toml` and `version.py`.
This script validates that the version defined in pyproject.toml matches the `VERSION`
-variable in `langchain_core/version.py`. It also checks checked-in snapshots that embed
-`langchain-core` version metadata. Intended for use as a pre-commit hook to prevent
-version mismatches.
+variable in `langchain_core/version.py`. Intended for use as a pre-commit hook to
+prevent version mismatches.
"""
import re
import sys
from pathlib import Path
-# Matches the `langchain-core` version embedded in serialized model metadata,
-# e.g. `{'versions': {'langchain-core': '1.4.7'}}`. Intentionally broad: every such
-# occurrence in a snapshot is expected to track the released version.
-SNAPSHOT_VERSION_PATTERN = re.compile(r"langchain-core': '([^']+)'")
-
def get_pyproject_version(pyproject_path: Path) -> str | None:
"""Extract version from `pyproject.toml`."""
@@ -30,24 +24,6 @@ def get_version_py_version(version_path: Path) -> str | None:
return match.group(1) if match else None
-def get_snapshot_version_mismatches(
- snapshots_dir: Path, expected_version: str
-) -> list[tuple[Path, int, str]]:
- """Find snapshot `langchain-core` version metadata that is out of date."""
- mismatches = []
- for snapshot_path in sorted(snapshots_dir.rglob("*.ambr")):
- # `errors="replace"` keeps a stray non-UTF-8 file from crashing the hook;
- # the version strings we match are ASCII, so decoding is unaffected.
- content = snapshot_path.read_text(encoding="utf-8", errors="replace")
- for match in SNAPSHOT_VERSION_PATTERN.finditer(content):
- version = match.group(1)
- if version == expected_version:
- continue
- line_number = content.count("\n", 0, match.start()) + 1
- mismatches.append((snapshot_path, line_number, version))
- return mismatches
-
-
def main() -> int:
"""Validate version consistency."""
script_dir = Path(__file__).parent
@@ -55,9 +31,6 @@ def main() -> int:
pyproject_path = package_dir / "pyproject.toml"
version_path = package_dir / "langchain_core" / "version.py"
- # Scoped to this package's snapshots: only core's own `tests/` tree embeds
- # `langchain-core` version metadata today.
- snapshots_dir = package_dir / "tests"
if not pyproject_path.exists():
print(f"Error: {pyproject_path} not found")
@@ -84,17 +57,6 @@ def main() -> int:
print(f" langchain_core/version.py: {version_py_version}")
return 1
- snapshot_mismatches = get_snapshot_version_mismatches(
- snapshots_dir, pyproject_version
- )
- if snapshot_mismatches:
- print("Error: Snapshot version mismatch detected!")
- print(f" expected langchain-core version: {pyproject_version}")
- for snapshot_path, line_number, snapshot_version in snapshot_mismatches:
- relative_path = snapshot_path.relative_to(package_dir)
- print(f" {relative_path}:{line_number}: {snapshot_version}")
- return 1
-
print(f"Version check passed: {pyproject_version}")
return 0
diff --git a/libs/core/uv.lock b/libs/core/uv.lock
index 6757854609..d53c7a2b93 100644
--- a/libs/core/uv.lock
+++ b/libs/core/uv.lock
@@ -1040,7 +1040,7 @@ wheels = [
[[package]]
name = "langchain-core"
-version = "1.5.6"
+version = "1.6.0"
source = { editable = "." }
dependencies = [
{ name = "httpx" },