mirror of
https://github.com/hwchase17/langchain.git
synced 2026-06-09 10:17:00 +00:00
chore(langchain): bump langgraph to 1.2.4 (#37857)
This commit is contained in:
@@ -9,9 +9,9 @@ A subagent boundary is a nested run whose `lc_agent_name` is set *and* differs
|
|||||||
from its parent namespace's `lc_agent_name`. Plain subgraphs inherit the
|
from its parent namespace's `lc_agent_name`. Plain subgraphs inherit the
|
||||||
parent's name (so they compare equal and are excluded); unnamed agents have
|
parent's name (so they compare equal and are excluded); unnamed agents have
|
||||||
`lc_agent_name == None` (also excluded). For genuine subagents the base also
|
`lc_agent_name == None` (also excluded). For genuine subagents the base also
|
||||||
recovers the originating tool call and passes it through as a `cause`
|
recovers the originating tool call and exposes it as a `cause`
|
||||||
(`{"type": "toolCall", "tool_call_id": ...}`), joined from the parent task's
|
(`{"type": "toolCall", "tool_call_id": ...}`) via `self._pending_cause`, joined
|
||||||
pending tool calls.
|
from the parent task's pending tool calls.
|
||||||
|
|
||||||
This transformer gates on that boundary and surfaces a typed handle on
|
This transformer gates on that boundary and surfaces a typed handle on
|
||||||
`run.subagents`, then forwards child-scope events into the handle's mux so the
|
`run.subagents`, then forwards child-scope events into the handle's mux so the
|
||||||
@@ -160,9 +160,12 @@ class SubagentTransformer(_TasksLifecycleBase):
|
|||||||
ns: tuple[str, ...],
|
ns: tuple[str, ...],
|
||||||
graph_name: str | None,
|
graph_name: str | None,
|
||||||
trigger_call_id: str | None,
|
trigger_call_id: str | None,
|
||||||
*,
|
|
||||||
cause: LifecycleCause | None = None,
|
|
||||||
) -> None:
|
) -> None:
|
||||||
|
# langgraph >=1.2.4 delivers the triggering `cause` via the base's
|
||||||
|
# `self._pending_cause` instance state rather than an `_on_started`
|
||||||
|
# keyword argument, so overrides predating `cause` keep working. Read it
|
||||||
|
# here to surface the originating tool call on the handle.
|
||||||
|
cause = self._pending_cause
|
||||||
child_lc = self._lc_by_ns.get(ns)
|
child_lc = self._lc_by_ns.get(ns)
|
||||||
# Surface any nested run carrying an lc_agent_name (set by create_agent).
|
# Surface any nested run carrying an lc_agent_name (set by create_agent).
|
||||||
# A same-named nested agent — e.g. a subagent that invokes itself —
|
# A same-named nested agent — e.g. a subagent that invokes itself —
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ version = "1.3.2"
|
|||||||
requires-python = ">=3.10.0,<4.0.0"
|
requires-python = ">=3.10.0,<4.0.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"langchain-core>=1.4.0,<2.0.0",
|
"langchain-core>=1.4.0,<2.0.0",
|
||||||
"langgraph>=1.2.2,<1.3.0",
|
"langgraph>=1.2.4,<1.3.0",
|
||||||
"pydantic>=2.7.4,<3.0.0",
|
"pydantic>=2.7.4,<3.0.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
8
libs/langchain_v1/uv.lock
generated
8
libs/langchain_v1/uv.lock
generated
@@ -2025,7 +2025,7 @@ requires-dist = [
|
|||||||
{ name = "langchain-perplexity", marker = "extra == 'perplexity'" },
|
{ name = "langchain-perplexity", marker = "extra == 'perplexity'" },
|
||||||
{ name = "langchain-together", marker = "extra == 'together'" },
|
{ name = "langchain-together", marker = "extra == 'together'" },
|
||||||
{ name = "langchain-xai", marker = "extra == 'xai'" },
|
{ name = "langchain-xai", marker = "extra == 'xai'" },
|
||||||
{ name = "langgraph", specifier = ">=1.2.3,<1.3.0" },
|
{ name = "langgraph", specifier = ">=1.2.4,<1.3.0" },
|
||||||
{ name = "pydantic", specifier = ">=2.7.4,<3.0.0" },
|
{ name = "pydantic", specifier = ">=2.7.4,<3.0.0" },
|
||||||
]
|
]
|
||||||
provides-extras = ["community", "anthropic", "openai", "azure-ai", "google-vertexai", "google-genai", "fireworks", "ollama", "together", "mistralai", "huggingface", "groq", "aws", "baseten", "deepseek", "xai", "perplexity"]
|
provides-extras = ["community", "anthropic", "openai", "azure-ai", "google-vertexai", "google-genai", "fireworks", "ollama", "together", "mistralai", "huggingface", "groq", "aws", "baseten", "deepseek", "xai", "perplexity"]
|
||||||
@@ -2603,7 +2603,7 @@ wheels = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "langgraph"
|
name = "langgraph"
|
||||||
version = "1.2.3"
|
version = "1.2.4"
|
||||||
source = { registry = "https://pypi.org/simple" }
|
source = { registry = "https://pypi.org/simple" }
|
||||||
dependencies = [
|
dependencies = [
|
||||||
{ name = "langchain-core" },
|
{ name = "langchain-core" },
|
||||||
@@ -2613,9 +2613,9 @@ dependencies = [
|
|||||||
{ name = "pydantic" },
|
{ name = "pydantic" },
|
||||||
{ name = "xxhash" },
|
{ name = "xxhash" },
|
||||||
]
|
]
|
||||||
sdist = { url = "https://files.pythonhosted.org/packages/5c/55/e42f59b5e4cce75085f68abb77114c4d1152628157bd60c2587881bca559/langgraph-1.2.3.tar.gz", hash = "sha256:7f89cd5f0946fe29bd7ca048e2a84d3c14e7f652e38bb98e00f0ba8b7004b9d0", size = 718812, upload-time = "2026-06-01T18:55:54.458Z" }
|
sdist = { url = "https://files.pythonhosted.org/packages/1c/43/dac5a2621c1e57f8eb7f0703f6f6fe34a5caf62f8f0fb4d2bb395bb454ea/langgraph-1.2.4.tar.gz", hash = "sha256:5df076973a2d23efb13eceb279d1e5b46feebcbbeded0a86a2ef669abd9e4399", size = 720374, upload-time = "2026-06-02T17:07:37.347Z" }
|
||||||
wheels = [
|
wheels = [
|
||||||
{ url = "https://files.pythonhosted.org/packages/39/9b/287f11be799f2f4dd289ab19d23788df22ac20ce884a010d0696f79016db/langgraph-1.2.3-py3-none-any.whl", hash = "sha256:22e6c89084adb3edb7855f6ffa692af3d75925f9c70deb43b86da14db1b02c78", size = 244841, upload-time = "2026-06-01T18:55:52.945Z" },
|
{ url = "https://files.pythonhosted.org/packages/48/9e/31ca236104966d7bb14ea9e93cfd73350aea8c41008ddf057b65794ed10d/langgraph-1.2.4-py3-none-any.whl", hash = "sha256:ffe3e1e31dce28907640f82525858470f293506d2b272d07ea3b3ce97974b067", size = 245402, upload-time = "2026-06-02T17:07:35.977Z" },
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
|||||||
Reference in New Issue
Block a user