Compare commits

..
29 Commits
Author SHA1 Message Date
Sera 58a6e1cc5b release(langgraph): 1.2.24 (#9752)
Bumps langgraph from 1.2.23 to 1.2.24.

Includes:

- Handle `REMOVE_ALL_MESSAGES` in `_messages_delta_reducer` and `None`
checkpoints in `DeltaChannel` (#9735)

🤖 Generated with [Claude Code](https://claude.com/claude-code)
2026-11-20 01:00:31 +00:00
Sera 8aea1fea7f fix(langgraph): handle REMOVE_ALL_MESSAGES in _messages_delta_reducer and None checkpoints in DeltaChannel (#9735)
- `_messages_delta_reducer`: `RemoveMessage(id=REMOVE_ALL_MESSAGES)` now
clears the state and every earlier write in the batch; before, the
sentinel was silently ignored.
- `DeltaChannel.from_checkpoint(None)` now starts the channel empty,
like `MISSING`. A checkpointer that stores the blob as null used to pass
`None` to the reducer on replay, which raised `TypeError`
(langchain-ai/deepagents#3564).
- `REMOVE_ALL_MESSAGES` is now defined in `langgraph.pregel._messages`
to avoid a circular import; `from langgraph.graph.message import
REMOVE_ALL_MESSAGES` still works.

deepagents keeps its own copy of this reducer only for these behaviors.
Its copy isn't recognized by `ensure_message_ids`, so some deepagents
messages never get stable ids. With this change, deepagents can switch
to this reducer: langchain-ai/deepagents#7819.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
2026-11-19 23:08:16 +00:00
Sera 37becf152a fix(sdk-py): publish integration progress events on a named channel (#9746)
`sdk-py integration` fails on `main` (`test_extensions`: `unexpected
step sequence: []`). It started with `langgraph-api` 0.20.0.dev2 in the
`latest-py3.12` image, not #9728. That version wraps
`get_stream_writer()` data as `custom` events with `{"payload": ...}`
and no `name`, so `custom:progress` matches nothing.

## Changes
- The test graph relays root-level `progress` writes onto a named
`StreamChannel("progress")`, which the server delivers as
`custom:progress`.
- The extensions test and script read each event's `payload`.

## Reviewer notes
- The last real pass was Nov 15 (image on 0.20.0.dev1). Runs since then
either skipped the job (path filter) or failed.
- The Python SDK's `thread.extensions[name]` yields the `{name,
payload}` envelope; JS yields `payload`. That parity gap is separate.

## Test Plan
- [x] Integration suite against `langgraph dev` with `langgraph-api`
0.20.0.dev4 and local langgraph: 55 passed (2 failed before)

[no screenshot]

🤖 Generated with [Claude Code](https://claude.com/claude-code)
2026-11-19 18:00:08 -05:00
Elior Nataf Lackritz 7830b91a24 release(langgraph): 1.2.23 (#9742)
Bumps langgraph from 1.2.22 to 1.2.23, and raises the langgraph-prebuilt
floor to 1.1.3 so upgrading langgraph also brings the `ToolNode` side of
#9728.

Includes:

- Give tool calls dispatched with `Send` the same typed state as an edge
(#9728)
- Avoid warning races in dynamic schemas (#9716)
2026-11-19 00:28:16 -05:00
Elior Nataf Lackritz a03c71268e release(prebuilt): 1.1.3 (#9741)
Bumps langgraph-prebuilt from 1.1.2 to 1.1.3.

Includes:

- `ToolNode` gives tool calls sent with `Send("tools", [tool_call])` the
graph's typed state, with langgraph 1.2.23 (#9728)
- State overrides from `wrap_tool_call` now reach the tool (#9730)
2026-11-19 00:21:06 -05:00
Elior Nataf Lackritz 292106d223 fix(langgraph,prebuilt): give Send-dispatched tool calls the same state as an edge (#9728)
**Problem.** When tool calls reach `ToolNode` as a bare list,
`Send("tools", [tool_call])`, tools get the state as a plain dict of
channel values. That is the dispatch `create_agent` uses since #7594 and
langchain-ai/langchain#36960. On a graph whose state is a Pydantic model
or a dataclass, `ToolRuntime.state` and `InjectedState` (typed or not)
get a dict, and values that entered as JSON input stay dicts too, so a
`list[Item]` field arrives as a list of dicts. The same tools reached
through an edge, or through a `ToolCallWithContext` Send, get the model.

**Why.** `StateGraph` coerces state to the schema when it builds a
node's input, and a Send task's input is the Send arg. `ToolNode` reads
the state itself through `CONFIG_KEY_READ`, which returns raw channel
values, and it can't coerce them because it doesn't know the graph's
schema.

**Fix.** Pregel gives each Send task a `CONFIG_KEY_READ_STATE` function
that returns the state the node would get from an edge: its input keys,
managed values included, coerced to its input schema. It is the same
`_proc_input` call that builds a pull task's input. `ToolNode` uses it
for bare tool-call lists. Every other task sets the key to `None`, so a
graph running inside a Send task, such as a subagent called from a tool,
never reads its parent's state. Both packages change together because
`ToolNode` is the only reader of the key.

**Compatibility.** On the bare-list path, Pydantic and dataclass graphs
now get the model instead of a dict, and TypedDict graphs get the tools
node's input keys instead of every channel. Both match what an edge
delivers. `create_agent` graphs (TypedDict state, no managed values) see
the same state as before. With an older `langgraph` that doesn't set the
key, `ToolNode` keeps today's behavior.

`test_tool_node_send_tool_call_gets_same_state_as_edge` fails on main
for the Pydantic and dataclass schemas.
`test_tool_node_in_graph_run_by_send_gets_that_graphs_state` fails if
the other tasks stop setting the key to `None`.
2026-11-18 23:55:29 -05:00
Elior Nataf Lackritz bbd52757e7 fix(prebuilt): make wrap_tool_call state overrides reach the tool (#9730)
`ToolCallRequest.override(state=...)` is a documented override, but
tools never saw the new state. Tool injection reads the state from
`request.runtime`, which the override left unchanged, so `InjectedState`
and `ToolRuntime.state` both kept the original. Wrappers had to override
`runtime` as well to get it there.

`override(state=...)` now also replaces `runtime.state`, so the request
carries one state: the tool gets it through both `InjectedState` and
`ToolRuntime`, and so does any inner wrapper that reads
`request.runtime.state`. This covers `create_agent` middleware, which
runs through this `ToolNode`. If a wrapper passes both `state` and a
`runtime` holding a different state, `state` wins. Overriding only
`runtime` behaves as before.

The new test runs a sync and an async wrapper, with and without a stale
`runtime` in the same call. On main the tool sees the original state in
the first case and the stale runtime's state in the second.
2026-11-18 16:32:59 -05:00
84ced603d3 chore(deps): bump the minor-and-patch group in /libs/checkpoint-postgres with 6 updates (#9524)
Bumps the minor-and-patch group in /libs/checkpoint-postgres with 6
updates:

| Package | From | To |
| --- | --- | --- |
| [orjson](https://github.com/ijl/orjson) | `3.12.0` | `3.13.0` |
| [pytest](https://github.com/pytest-dev/pytest) | `9.1.1` | `9.2.0` |
| [pytest-asyncio](https://github.com/pytest-dev/pytest-asyncio) |
`1.4.0` | `1.4.1` |
| [pytest-mock](https://github.com/pytest-dev/pytest-mock) | `3.16.0` |
`3.17.0` |
| [ruff](https://github.com/astral-sh/ruff) | `0.16.9` | `0.17.3` |
| [ty](https://github.com/astral-sh/ty) | `0.0.84` | `0.0.94` |

Updates `orjson` from 3.12.0 to 3.13.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/ijl/orjson/releases">orjson's
releases</a>.</em></p>
<blockquote>
<h2>3.13.0</h2>
<h3>Changed</h3>
<ul>
<li>No longer publish PyPI wheels for Windows x86/i686.</li>
</ul>
<h3>Added</h3>
<ul>
<li>Serialize new Python 3.15 built-in type <code>frozendict</code>
identical to
<code>dict</code> (PEP 814).</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/ijl/orjson/blob/master/CHANGELOG.md">orjson's
changelog</a>.</em></p>
<blockquote>
<h2>3.13.0 - 2026-08-17</h2>
<h3>Changed</h3>
<ul>
<li>No longer publish PyPI wheels for Windows x86/i686.</li>
</ul>
<h3>Added</h3>
<ul>
<li>Serialize new Python 3.15 built-in type <code>frozendict</code>
identical to
<code>dict</code> (PEP 814).</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/ijl/orjson/commit/bd00937c5c46ab20eb5d7fe1cfc034b906c4578f"><code>bd00937</code></a>
3.13.0</li>
<li><a
href="https://github.com/ijl/orjson/commit/de1fd5a0bf3497c22267fe21ce9038fee4d9dacc"><code>de1fd5a</code></a>
frozendict</li>
<li><a
href="https://github.com/ijl/orjson/commit/f110dbe19873fe532b9dffa6c022d2769ed95479"><code>f110dbe</code></a>
build update</li>
<li>See full diff in <a
href="https://github.com/ijl/orjson/compare/3.12.0...3.13.0">compare
view</a></li>
</ul>
</details>
<br />

Updates `pytest` from 9.1.1 to 9.2.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/pytest-dev/pytest/releases">pytest's
releases</a>.</em></p>
<blockquote>
<h2>9.2.0</h2>
<h1>pytest 9.2.0 (2026-10-27)</h1>
<h2>Removals and backward incompatible breaking changes</h2>
<ul>
<li>
<p><a
href="https://redirect.github.com/pytest-dev/pytest/issues/14716">#14716</a>:
<code>-c</code> now raises a usage error for a path that does not exist,
is a directory, or is in a format pytest has no loader for. Such paths
were previously either ignored or reported as an unhandled
<code>FileNotFoundError</code>.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/pytest-dev/pytest/issues/8593">#8593</a>:
The <code>indirect</code>, <code>ids</code> and <code>scope</code>
arguments of <code>Metafunc.parametrize()
&lt;pytest.Metafunc.parametrize&gt;</code> -- and therefore of
<code>@pytest.mark.parametrize &lt;pytest.mark.parametrize
ref&gt;</code> -- are now keyword-only.</p>
<p>Passing them positionally was a common source of confusing errors,
e.g. <code>parametrize(&quot;arg1&quot;, &quot;arg2&quot;, [(1,
2)])</code> made the argvalues land in <code>indirect</code> and failed
with <code>indirect fixture '(1, 2)' doesn't exist</code>; such mistakes
now fail with an understandable <code>TypeError</code>. The type
annotations have always declared these arguments as keyword-only.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/pytest-dev/pytest/issues/993">#993</a>:
Plugin import failures at startup are now reported and classified
instead of escaping as a raw traceback with the accidental exit code
<code>1</code>:</p>
<ul>
<li>a plugin that cannot be found -- via <code>-p</code>,
<code>pytest_plugins</code> or <code>PYTEST_PLUGINS</code> -- exits with
<code>pytest.ExitCode</code> <code>USAGE_ERROR</code> (<code>4</code>),
like a <code>conftest.py</code> that fails to import;</li>
<li>a plugin that is found but raises while importing -- including a
broken <code>pytest11</code> entry point or a missing plugin dependency
-- exits with <code>pytest.ExitCode</code> <code>INTERNAL_ERROR</code>
(<code>3</code>), with the traceback preserved.</li>
</ul>
<p><code>pytest.main</code> now returns these codes instead of raising
<code>ImportError</code>. Also fixed an <code>IndexError</code> from
pytest's own internals when the plugin raised an exception with no
arguments.</p>
</li>
</ul>
<h2>Deprecations (removal in next major release)</h2>
<ul>
<li>
<p><a
href="https://redirect.github.com/pytest-dev/pytest/issues/14742">#14742</a>:
The private <code>_pytest.python.CallSpec2</code> name has been renamed
to <code>CallSpec</code>.
The old <code>CallSpec2</code> alias remains available for now and will
be removed in pytest 10 or 11.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/pytest-dev/pytest/issues/14755">#14755</a>:
Schedule <em>yield_fixture</em> decorator for removal in pytest 10 or
11.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/pytest-dev/pytest/issues/14774">#14774</a>:
Similarly to the deprecation of class-scoped fixtures defined as
instance methods in pytest 9.1,
<em>all</em> higher-scoped fixtures (<code>module</code>,
<code>package</code>, and <code>session</code>) defined
as instance methods are now deprecated.</p>
<p>They suffer from the same issue the original deprecation only fixed
for
class-scoped fixtures, see <code>10819</code> and
<code>14011</code>.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/pytest-dev/pytest/issues/14808">#14808</a>:
Passing a non-string value to a <code>string</code>-typed ini option now
emits a <code>pytest.PytestRemovedIn10Warning</code>. This affects
<code>[tool.pytest.ini_options]</code> in <code>pyproject.toml</code>.
In pytest 10 this will raise a <code>TypeError</code>, matching the
behavior of the corresponding TOML config path.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/pytest-dev/pytest/issues/7323">#7323</a>:
Passing <code>bytes</code> to <code>TerminalReporter.write_line()</code>
is now deprecated, pass a <code>str</code> instead.</p>
</li>
</ul>
<h2>New features</h2>
<ul>
<li><a
href="https://redirect.github.com/pytest-dev/pytest/issues/14743">#14743</a>:
<!-- raw HTML omitted -->Full diff:<!-- raw HTML omitted --> now
contains a legend explaining the <!-- raw HTML omitted -->+<!-- raw HTML
omitted --> &amp; <!-- raw HTML omitted -->-<!-- raw HTML omitted -->
symbols in diff output.</li>
<li><a
href="https://redirect.github.com/pytest-dev/pytest/issues/2781">#2781</a>:
When <code>strict_markers</code> is enabled, marker names used in
<code>-m</code> expressions are now validated against registered
markers.</li>
<li><a
href="https://redirect.github.com/pytest-dev/pytest/issues/6881">#6881</a>:
Added the <code>parametrize_long_str_id_strategy</code> configuration
option to control how long <code>str</code>/<code>bytes</code> parameter
values are handled in auto-generated test IDs. Explicit IDs set via
<code>ids=[...]</code> or <code>pytest.param(..., id=...)</code> are not
affected. Available strategies: <code>short</code> (default, values over
100 chars fall back to <code>argname+index</code>), <code>sha256</code>
(SHA-256 hex digest), <code>legacy</code> (keep full value), and
<code>disallow</code> (error requesting explicit IDs).</li>
</ul>
<h2>Improvements in existing functionality</h2>
<ul>
<li><a
href="https://redirect.github.com/pytest-dev/pytest/issues/10745">#10745</a>:
A <code>RecursionError</code> whose recursion origin cannot be located
now shows only the
first and last 10 stack frames, matching what pytest already did when
locating
the origin failed outright. Previously the full traceback -- often
around a
thousand near-identical frames -- was rendered, which was both slow and
unreadable. Pass <code>--full-trace</code> to see every frame.</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/pytest-dev/pytest/commit/ae1d0ff57b8bd4252da9ade7353523ac0ac73281"><code>ae1d0ff</code></a>
Prepare release version 9.2.0</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/143ce31dea9b12ff2ab6add04361ee01ab114931"><code>143ce31</code></a>
pre-commit: exclude codespell on generated release announcements</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/532dc5fc78f57de5115c5ecc9c6c29257787ada7"><code>532dc5f</code></a>
tox: add attrs dependency to regen, needed in reportingdemo.rst</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/a7b2446ee41a7298d3a0bc22c52f3b8bacae1566"><code>a7b2446</code></a>
Merge pull request <a
href="https://redirect.github.com/pytest-dev/pytest/issues/15245">#15245</a>
from pytest-dev/claude/project-thread-9jcf91</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/679d09c6945156746e17e9ec0b1c8309bbde3ad3"><code>679d09c</code></a>
[pre-commit.ci] pre-commit autoupdate (<a
href="https://redirect.github.com/pytest-dev/pytest/issues/15266">#15266</a>)</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/41d12cdbb4a35a7877768d93d8dc50a9117a8d8c"><code>41d12cd</code></a>
docs: clarify typing for yield fixtures</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/b9022ba04a33bfc76b5c9aefb8974755a80bf5ce"><code>b9022ba</code></a>
Merge pull request <a
href="https://redirect.github.com/pytest-dev/pytest/issues/15182">#15182</a>
from 1871698/docs/improve-getting-started-description</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/16f87a7f364a7362fbfbb204c79a47ad567b4fbd"><code>16f87a7</code></a>
docs: improve getting-started.rst test execution description</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/082ed70e314ee8e1ab117763d17fe801648f7508"><code>082ed70</code></a>
Merge pull request <a
href="https://redirect.github.com/pytest-dev/pytest/issues/15255">#15255</a>
from pytest-dev/claude/project-thread-eoi3d6</li>
<li><a
href="https://github.com/pytest-dev/pytest/commit/ae37a013763e9c4a143245eda1acdc3c27961685"><code>ae37a01</code></a>
Merge pull request <a
href="https://redirect.github.com/pytest-dev/pytest/issues/15227">#15227</a>
from pytest-dev/claude/project-thread-4etye4</li>
<li>Additional commits viewable in <a
href="https://github.com/pytest-dev/pytest/compare/9.1.1...9.2.0">compare
view</a></li>
</ul>
</details>
<br />

Updates `pytest-asyncio` from 1.4.0 to 1.4.1
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/pytest-dev/pytest-asyncio/releases">pytest-asyncio's
releases</a>.</em></p>
<blockquote>
<h2>pytest-asyncio v1.4.1</h2>
<h1><a
href="https://github.com/pytest-dev/pytest-asyncio/tree/1.4.1">1.4.1</a>
- 2026-10-25</h1>
<h2>Added</h2>
<ul>
<li>Declared support for Python 3.15 (<a
href="https://redirect.github.com/pytest-dev/pytest-asyncio/issues/1588">#1588</a>)</li>
</ul>
<h2>Fixed</h2>
<ul>
<li>Allow <em>AsyncIterable</em> as a return type for asynchronous
generator fixtures decorated with <em>pytest_asyncio.fixture</em> (<a
href="https://redirect.github.com/pytest-dev/pytest-asyncio/issues/1090">#1090</a>)</li>
</ul>
<h2>Notes for Downstream Packagers</h2>
<ul>
<li>Source-tree development dependencies now use PEP 735 dependency
groups and <code>uv.lock</code>. (<a
href="https://redirect.github.com/pytest-dev/pytest-asyncio/issues/1518">#1518</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/pytest-dev/pytest-asyncio/commit/6af7f5c9a8c77fe5040b9d368b9ed01837c25652"><code>6af7f5c</code></a>
chore: Prepare release of v1.4.1.</li>
<li><a
href="https://github.com/pytest-dev/pytest-asyncio/commit/32ccf64ec115e42543bddb8cd142b2026b0cab77"><code>32ccf64</code></a>
Support 3.15 (<a
href="https://redirect.github.com/pytest-dev/pytest-asyncio/issues/1588">#1588</a>)</li>
<li><a
href="https://github.com/pytest-dev/pytest-asyncio/commit/983007120dcc53b14f8f7e9df492cbd1d20a242c"><code>9830071</code></a>
Build(deps): Bump certifi from 2026.6.17 to 2026.10.19 (<a
href="https://redirect.github.com/pytest-dev/pytest-asyncio/issues/1590">#1590</a>)</li>
<li><a
href="https://github.com/pytest-dev/pytest-asyncio/commit/0238023e439113044a9ed095307884c774ec9e46"><code>0238023</code></a>
Build(deps): Bump virtualenv from 21.7.13 to 21.14.13 (<a
href="https://redirect.github.com/pytest-dev/pytest-asyncio/issues/1589">#1589</a>)</li>
<li><a
href="https://github.com/pytest-dev/pytest-asyncio/commit/93893ecd9447d105ebd56419bc5162aa2420587e"><code>93893ec</code></a>
Build(deps): Bump astral-sh/setup-uv from 10.2.0 to 10.3.0 (<a
href="https://redirect.github.com/pytest-dev/pytest-asyncio/issues/1583">#1583</a>)</li>
<li><a
href="https://github.com/pytest-dev/pytest-asyncio/commit/f287e5e0f5425380b24c32b64037dfb2ed3cb937"><code>f287e5e</code></a>
Build(deps): Bump actions/download-artifact from 8.0.1 to 8.0.2 (<a
href="https://redirect.github.com/pytest-dev/pytest-asyncio/issues/1581">#1581</a>)</li>
<li><a
href="https://github.com/pytest-dev/pytest-asyncio/commit/b71da4fe09265e1ad86d4cbfc452b590ebfc4daa"><code>b71da4f</code></a>
Build(deps-dev): Bump hypothesis from 6.168.3 to 6.168.5 (<a
href="https://redirect.github.com/pytest-dev/pytest-asyncio/issues/1582">#1582</a>)</li>
<li><a
href="https://github.com/pytest-dev/pytest-asyncio/commit/d8c51d8990a4bbdf8a19ff0cf80d68b95b11dea8"><code>d8c51d8</code></a>
Build(deps): Bump actions/upload-artifact from 7.0.1 to 7.0.2 (<a
href="https://redirect.github.com/pytest-dev/pytest-asyncio/issues/1580">#1580</a>)</li>
<li><a
href="https://github.com/pytest-dev/pytest-asyncio/commit/b12808bd8d061b583ccdddc53ad6c85198509eed"><code>b12808b</code></a>
Build(deps): Bump virtualenv from 21.7.12 to 21.7.13 (<a
href="https://redirect.github.com/pytest-dev/pytest-asyncio/issues/1578">#1578</a>)</li>
<li><a
href="https://github.com/pytest-dev/pytest-asyncio/commit/e0601f0ce9532de0b5453a5cfd08f25b258a93f5"><code>e0601f0</code></a>
Build(deps-dev): Bump coverage from 7.16.1 to 7.16.2 (<a
href="https://redirect.github.com/pytest-dev/pytest-asyncio/issues/1577">#1577</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/pytest-dev/pytest-asyncio/compare/v1.4.0...v1.4.1">compare
view</a></li>
</ul>
</details>
<br />

Updates `pytest-mock` from 3.16.0 to 3.17.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/pytest-dev/pytest-mock/releases">pytest-mock's
releases</a>.</em></p>
<blockquote>
<h2>v3.17.0</h2>
<p><em>2026-10-17</em></p>
<ul>
<li><a
href="https://redirect.github.com/pytest-dev/pytest-mock/pull/641">#641</a>:
Failures of mock assertions such as <code>assert_called_with</code> are
again reported only once, instead of two or three times with the
original error from the <code>mock</code> module chained before
them.</li>
<li><a
href="https://redirect.github.com/pytest-dev/pytest-mock/pull/642">#642</a>:
Mock assertion failures no longer show misleading introspection when
they are not about the arguments of the last call:
<code>assert_called</code>, <code>assert_called_once</code>,
<code>assert_not_called</code>, <code>assert_any_call</code>, their
<code>await</code> counterparts, and
<code>assert_called_once_with</code>/<code>assert_awaited_once_with</code>
when the mock was not called (awaited) exactly once. The introspection
also no longer reports arguments passed by position versus by keyword as
different for autospecced mocks, and no longer shows empty
<code>Args:</code>/<code>Kwargs:</code> sections when assertion
rewriting is not available.</li>
<li><a
href="https://redirect.github.com/pytest-dev/pytest-mock/pull/643">#643</a>:
<code>assert_has_calls</code> and <code>assert_has_awaits</code>
failures no longer show pytest introspection, which compared the
expected and actual calls position by position and so reported
differences between unrelated calls. The mock's own message, listing the
expected and actual calls, is still shown.</li>
</ul>
<h2>v3.16.1</h2>
<p><em>2026-10-17</em></p>
<ul>
<li><a
href="https://redirect.github.com/pytest-dev/pytest-mock/pull/617">#617</a>:
Fixed <code>assert_has_calls</code> raising <code>ValueError</code>
instead of <code>AssertionError</code> (or showing misleading
introspection) when the expected calls are plain tuples rather than
<code>call(...)</code> objects, such as <code>(args, kwargs)</code>
entries of another mock's <code>call_args_list</code>,
<code>(args,)</code>, <code>(kwargs,)</code>, <code>(name, args)</code>
or <code>(name, kwargs)</code>.</li>
<li><a
href="https://redirect.github.com/pytest-dev/pytest-mock/pull/621">#621</a>:
Fixed <code>mocker.stop()</code> sometimes stopping the wrong mock, for
example with mocks from <code>mocker.create_autospec</code>.</li>
<li><a
href="https://redirect.github.com/pytest-dev/pytest-mock/pull/621">#621</a>:
<code>mocker.stop()</code> now undoes the most recent patch first when
the same object is used in several patches.</li>
<li><a
href="https://redirect.github.com/pytest-dev/pytest-mock/pull/623">#623</a>:
Fixed misleading introspection in <code>assert_has_awaits</code>
failures, and
<code>assert_has_calls</code>/<code>assert_has_awaits</code> raising
<code>IndexError</code> instead of <code>AssertionError</code> when
<code>calls</code> is passed by keyword.</li>
<li><a
href="https://redirect.github.com/pytest-dev/pytest-mock/pull/624">#624</a>:
Clear <code>spy_return_iter</code> after a spied synchronous or
asynchronous function raises, matching <code>spy_return</code>.</li>
<li><a
href="https://redirect.github.com/pytest-dev/pytest-mock/pull/627">#627</a>:
Document <code>async_stub</code> await assertions and the distinction
between call and await tracking.</li>
<li><a
href="https://redirect.github.com/pytest-dev/pytest-mock/pull/629">#629</a>:
Fixed <code>mocker.resetall()</code> skipping the mocks patched with
<code>mocker.patch.multiple()</code>, both the ones it creates and the
ones passed explicitly.</li>
<li><a
href="https://redirect.github.com/pytest-dev/pytest-mock/pull/630">#630</a>:
<code>mocker.resetall()</code> now also resets <code>spy_return</code>
and <code>spy_exception</code> of spies, like it already did for
<code>spy_return_list</code> and <code>spy_return_iter</code>, and no
longer overwrites attributes with these names on mocks that are not
spies.</li>
<li><a
href="https://redirect.github.com/pytest-dev/pytest-mock/pull/633">#633</a>:
Fixed spies on <code>classmethod</code>, <code>staticmethod</code>,
builtins and classes returning a <code>MagicMock</code> instead of
calling the spied code after
<code>mocker.resetall(side_effect=True)</code>. Resetting a spy's
<code>side_effect</code> now goes back to calling the spied code, also
clearing any <code>side_effect</code> set on the spy.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/pytest-dev/pytest-mock/blob/main/CHANGELOG.rst">pytest-mock's
changelog</a>.</em></p>
<blockquote>
<h2>3.17.0</h2>
<p><em>2026-10-17</em></p>
<ul>
<li><code>[#641](https://github.com/pytest-dev/pytest-mock/issues/641)
&lt;https://github.com/pytest-dev/pytest-mock/pull/641&gt;</code>_:
Failures of mock assertions such as <code>assert_called_with</code> are
again reported only once, instead of two or three times with the
original error from the <code>mock</code> module chained before
them.</li>
<li><code>[#642](https://github.com/pytest-dev/pytest-mock/issues/642)
&lt;https://github.com/pytest-dev/pytest-mock/pull/642&gt;</code>_: Mock
assertion failures no longer show misleading introspection when they are
not about the arguments of the last call: <code>assert_called</code>,
<code>assert_called_once</code>, <code>assert_not_called</code>,
<code>assert_any_call</code>, their <code>await</code> counterparts, and
<code>assert_called_once_with</code>/<code>assert_awaited_once_with</code>
when the mock was not called (awaited) exactly once. The introspection
also no longer reports arguments passed by position versus by keyword as
different for autospecced mocks, and no longer shows empty
<code>Args:</code>/<code>Kwargs:</code> sections when assertion
rewriting is not available.</li>
<li><code>[#643](https://github.com/pytest-dev/pytest-mock/issues/643)
&lt;https://github.com/pytest-dev/pytest-mock/pull/643&gt;</code>_:
<code>assert_has_calls</code> and <code>assert_has_awaits</code>
failures no longer show pytest introspection, which compared the
expected and actual calls position by position and so reported
differences between unrelated calls. The mock's own message, listing the
expected and actual calls, is still shown.</li>
</ul>
<h2>3.16.1</h2>
<p><em>2026-10-17</em></p>
<ul>
<li><code>[#617](https://github.com/pytest-dev/pytest-mock/issues/617)
&lt;https://github.com/pytest-dev/pytest-mock/pull/617&gt;</code>_:
Fixed <code>assert_has_calls</code> raising <code>ValueError</code>
instead of <code>AssertionError</code> (or showing misleading
introspection) when the expected calls are plain tuples rather than
<code>call(...)</code> objects, such as <code>(args, kwargs)</code>
entries of another mock's <code>call_args_list</code>,
<code>(args,)</code>, <code>(kwargs,)</code>, <code>(name, args)</code>
or <code>(name, kwargs)</code>.</li>
<li><code>[#621](https://github.com/pytest-dev/pytest-mock/issues/621)
&lt;https://github.com/pytest-dev/pytest-mock/pull/621&gt;</code>_:
Fixed <code>mocker.stop()</code> sometimes stopping the wrong mock, for
example with mocks from <code>mocker.create_autospec</code>.</li>
<li><code>[#621](https://github.com/pytest-dev/pytest-mock/issues/621)
&lt;https://github.com/pytest-dev/pytest-mock/pull/621&gt;</code>_:
<code>mocker.stop()</code> now undoes the most recent patch first when
the same object is used in several patches.</li>
<li><code>[#623](https://github.com/pytest-dev/pytest-mock/issues/623)
&lt;https://github.com/pytest-dev/pytest-mock/pull/623&gt;</code>_:
Fixed misleading introspection in <code>assert_has_awaits</code>
failures, and
<code>assert_has_calls</code>/<code>assert_has_awaits</code> raising
<code>IndexError</code> instead of <code>AssertionError</code> when
<code>calls</code> is passed by keyword.</li>
<li><code>[#624](https://github.com/pytest-dev/pytest-mock/issues/624)
&lt;https://github.com/pytest-dev/pytest-mock/pull/624&gt;</code>_:
Clear <code>spy_return_iter</code> after a spied synchronous or
asynchronous function raises, matching <code>spy_return</code>.</li>
<li><code>[#627](https://github.com/pytest-dev/pytest-mock/issues/627)
&lt;https://github.com/pytest-dev/pytest-mock/pull/627&gt;</code>_:
Document <code>async_stub</code> await assertions and the distinction
between call and await tracking.</li>
<li><code>[#629](https://github.com/pytest-dev/pytest-mock/issues/629)
&lt;https://github.com/pytest-dev/pytest-mock/pull/629&gt;</code>_:
Fixed <code>mocker.resetall()</code> skipping the mocks patched with
<code>mocker.patch.multiple()</code>, both the ones it creates and the
ones passed explicitly.</li>
<li><code>[#630](https://github.com/pytest-dev/pytest-mock/issues/630)
&lt;https://github.com/pytest-dev/pytest-mock/pull/630&gt;</code>_:
<code>mocker.resetall()</code> now also resets <code>spy_return</code>
and <code>spy_exception</code> of spies, like it already did for
<code>spy_return_list</code> and <code>spy_return_iter</code>, and no
longer overwrites attributes with these names on mocks that are not
spies.</li>
<li><code>[#633](https://github.com/pytest-dev/pytest-mock/issues/633)
&lt;https://github.com/pytest-dev/pytest-mock/pull/633&gt;</code>_:
Fixed spies on <code>classmethod</code>, <code>staticmethod</code>,
builtins and classes returning a <code>MagicMock</code> instead of
calling the spied code after
<code>mocker.resetall(side_effect=True)</code>. Resetting a spy's
<code>side_effect</code> now goes back to calling the spied code, also
clearing any <code>side_effect</code> set on the spy.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/pytest-dev/pytest-mock/commit/5c2f207ca7098dde996f9bedd06e596e39b6246b"><code>5c2f207</code></a>
Release 3.17.0</li>
<li><a
href="https://github.com/pytest-dev/pytest-mock/commit/96252715fad4a0dfec1997103cc231bc1f133616"><code>9625271</code></a>
Bump the minor version for releases that change existing behavior</li>
<li><a
href="https://github.com/pytest-dev/pytest-mock/commit/34b87aeeef1d2a85be5ce4fadb0c6bc4a033c40a"><code>34b87ae</code></a>
Drop introspection from assert_has_calls and assert_has_awaits (<a
href="https://redirect.github.com/pytest-dev/pytest-mock/issues/643">#643</a>)</li>
<li><a
href="https://github.com/pytest-dev/pytest-mock/commit/866520f2d339c7649af56ac227ca67ed36b1e92e"><code>866520f</code></a>
Only show introspection for failures about the call arguments (<a
href="https://redirect.github.com/pytest-dev/pytest-mock/issues/642">#642</a>)</li>
<li><a
href="https://github.com/pytest-dev/pytest-mock/commit/5ab41c143c57842456caad0029082e919fa6a95d"><code>5ab41c1</code></a>
Do not chain the original mock error to wrapped assertion failures (<a
href="https://redirect.github.com/pytest-dev/pytest-mock/issues/641">#641</a>)</li>
<li><a
href="https://github.com/pytest-dev/pytest-mock/commit/1916b14db224b893edf18251f26a38487eb0d6a6"><code>1916b14</code></a>
Merge pull request <a
href="https://redirect.github.com/pytest-dev/pytest-mock/issues/635">#635</a>
from nicoddemus/docs-contributing-resetall</li>
<li><a
href="https://github.com/pytest-dev/pytest-mock/commit/212fcd903aeb685a3b39875be82fc84ff58ebc56"><code>212fcd9</code></a>
Document resetall, the changelog format and running tests with tox</li>
<li><a
href="https://github.com/pytest-dev/pytest-mock/commit/9374b2c3e38e3bbc2e04328f7026ae3680f0476f"><code>9374b2c</code></a>
Merge pull request <a
href="https://redirect.github.com/pytest-dev/pytest-mock/issues/634">#634</a>
from pytest-dev/release-3.16.1</li>
<li><a
href="https://github.com/pytest-dev/pytest-mock/commit/fab730daf4a4cfc260d8656b0467503131535a00"><code>fab730d</code></a>
Release 3.16.1</li>
<li><a
href="https://github.com/pytest-dev/pytest-mock/commit/d26d41bb01e99de5c0b59156c667d46985b03470"><code>d26d41b</code></a>
Merge pull request <a
href="https://redirect.github.com/pytest-dev/pytest-mock/issues/627">#627</a>
from xiehuanyi/docs/async-stub-awaits-20261012-r2</li>
<li>Additional commits viewable in <a
href="https://github.com/pytest-dev/pytest-mock/compare/v3.16.0...v3.17.0">compare
view</a></li>
</ul>
</details>
<br />

Updates `ruff` from 0.16.9 to 0.17.3
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/astral-sh/ruff/releases">ruff's
releases</a>.</em></p>
<blockquote>
<h2>0.17.3</h2>
<h2>Release Notes</h2>
<p>Released on 2026-10-26.</p>
<h3>Preview features</h3>
<ul>
<li>[<code>suspicious</code>] Add <code>shared-clock-mock</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/29074">#29074</a>)</li>
</ul>
<h3>Bug fixes</h3>
<ul>
<li>[<code>pyupgrade</code>] Avoid incorrect conversions to f-strings
(<code>UP032</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/25485">#25485</a>)</li>
</ul>
<h3>Performance</h3>
<ul>
<li>Buffer stdout in <code>ruff format</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/29631">#29631</a>)</li>
<li>Specialize ASCII identifier lexing (<a
href="https://redirect.github.com/astral-sh/ruff/pull/29503">#29503</a>)</li>
<li>Speed up identifier and keyword lexing (<a
href="https://redirect.github.com/astral-sh/ruff/pull/29463">#29463</a>)</li>
</ul>
<h3>Documentation</h3>
<ul>
<li>[<code>flake8-bandit</code>] Describe what the rule actually checks
for <code>httpx</code> (<code>S113</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/27936">#27936</a>)</li>
</ul>
<h3>Contributors</h3>
<ul>
<li><a
href="https://github.com/itsvedantkumar"><code>@​itsvedantkumar</code></a></li>
<li><a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a></li>
<li><a
href="https://github.com/anishgirianish"><code>@​anishgirianish</code></a></li>
</ul>
<h2>Install ruff 0.17.3</h2>
<h3>Install prebuilt binaries via shell script</h3>
<pre lang="sh"><code>curl --proto '=https' --tlsv1.2 -LsSf
https://releases.astral.sh/github/ruff/releases/download/0.17.3/ruff-installer.sh
| sh
</code></pre>
<h3>Install prebuilt binaries via powershell script</h3>
<pre lang="sh"><code>powershell -ExecutionPolicy Bypass -c &quot;irm
https://releases.astral.sh/github/ruff/releases/download/0.17.3/ruff-installer.ps1
| iex&quot;
</code></pre>
<h2>Download ruff 0.17.3</h2>
<table>
<thead>
<tr>
<th>File</th>
<th>Platform</th>
<th>Checksum</th>
</tr>
</thead>
<tbody>
<tr>
<td><a
href="https://releases.astral.sh/github/ruff/releases/download/0.17.3/ruff-aarch64-apple-darwin.tar.gz">ruff-aarch64-apple-darwin.tar.gz</a></td>
<td>Apple Silicon macOS</td>
<td><a
href="https://releases.astral.sh/github/ruff/releases/download/0.17.3/ruff-aarch64-apple-darwin.tar.gz.sha256">checksum</a></td>
</tr>
<tr>
<td><a
href="https://releases.astral.sh/github/ruff/releases/download/0.17.3/ruff-x86_64-apple-darwin.tar.gz">ruff-x86_64-apple-darwin.tar.gz</a></td>
<td>Intel macOS</td>
<td><a
href="https://releases.astral.sh/github/ruff/releases/download/0.17.3/ruff-x86_64-apple-darwin.tar.gz.sha256">checksum</a></td>
</tr>
<tr>
<td><a
href="https://releases.astral.sh/github/ruff/releases/download/0.17.3/ruff-aarch64-pc-windows-msvc.zip">ruff-aarch64-pc-windows-msvc.zip</a></td>
<td>ARM64 Windows</td>
<td><a
href="https://releases.astral.sh/github/ruff/releases/download/0.17.3/ruff-aarch64-pc-windows-msvc.zip.sha256">checksum</a></td>
</tr>
</tbody>
</table>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md">ruff's
changelog</a>.</em></p>
<blockquote>
<h2>0.17.3</h2>
<p>Released on 2026-10-26.</p>
<h3>Preview features</h3>
<ul>
<li>[<code>suspicious</code>] Add <code>shared-clock-mock</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/29074">#29074</a>)</li>
</ul>
<h3>Bug fixes</h3>
<ul>
<li>[<code>pyupgrade</code>] Avoid incorrect conversions to f-strings
(<code>UP032</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/25485">#25485</a>)</li>
</ul>
<h3>Performance</h3>
<ul>
<li>Buffer stdout in <code>ruff format</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/29631">#29631</a>)</li>
<li>Specialize ASCII identifier lexing (<a
href="https://redirect.github.com/astral-sh/ruff/pull/29503">#29503</a>)</li>
<li>Speed up identifier and keyword lexing (<a
href="https://redirect.github.com/astral-sh/ruff/pull/29463">#29463</a>)</li>
</ul>
<h3>Documentation</h3>
<ul>
<li>[<code>flake8-bandit</code>] Describe what the rule actually checks
for <code>httpx</code> (<code>S113</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/27936">#27936</a>)</li>
</ul>
<h3>Contributors</h3>
<ul>
<li><a
href="https://github.com/itsvedantkumar"><code>@​itsvedantkumar</code></a></li>
<li><a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a></li>
<li><a
href="https://github.com/anishgirianish"><code>@​anishgirianish</code></a></li>
</ul>
<h2>0.17.2</h2>
<p>Released on 2026-10-22.</p>
<h3>Preview features</h3>
<ul>
<li>[<code>complexity</code>] Add
<code>unnecessary-regular-expression-compile</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/25533">#25533</a>)</li>
</ul>
<h3>Bug fixes</h3>
<ul>
<li>Avoid syntax errors for type variables with starred constraints
(<code>UP040</code>, <code>UP046</code>, <code>UP047</code>,
<code>RUF053</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/28362">#28362</a>)</li>
<li>[<code>pydocstyle</code>] Treat backslash-escaped <code>*args</code>
and <code>**kwargs</code> as documented (<code>D417</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/29536">#29536</a>)</li>
<li>[<code>pylint</code>] Avoid false positive on starred elements
(<code>PLE0643</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/29483">#29483</a>)</li>
<li>[<code>pylint</code>] Mark fixes unsafe when deleting comments
(<code>PLR5501</code>, <code>PLW0120</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/29414">#29414</a>)</li>
<li>[<code>pyupgrade</code>] Mark fix unsafe when deleting comments
(<code>UP035</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/29413">#29413</a>)</li>
</ul>
<h3>Performance</h3>
<ul>
<li>Avoid intermediate names in lint name resolution (<a
href="https://redirect.github.com/astral-sh/ruff/pull/29506">#29506</a>)</li>
<li>Prefilter bidirectional Unicode checks by UTF-8 leading bytes (<a
href="https://redirect.github.com/astral-sh/ruff/pull/29561">#29561</a>)</li>
<li>Share postfix parsing and reduce expression copies (<a
href="https://redirect.github.com/astral-sh/ruff/pull/29480">#29480</a>)</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/astral-sh/ruff/commit/ba65abf8ba7bfbcc059f7fb9712be5ba9cab6abc"><code>ba65abf</code></a>
Bump version to 0.17.3 (<a
href="https://redirect.github.com/astral-sh/ruff/issues/29745">#29745</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/fb2f9218793e3b0e979175d43d88dcac791e92d6"><code>fb2f921</code></a>
[ty] Fix narrowing of strings and integers compared with enum members
(<a
href="https://redirect.github.com/astral-sh/ruff/issues/29743">#29743</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/d1812878d5f81af6f5810d193ebc44413d1b21cc"><code>d181287</code></a>
[ty] Index nominal union alternatives (<a
href="https://redirect.github.com/astral-sh/ruff/issues/29196">#29196</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/07872adbafa7c00f42f1174d8aa3c3e324033009"><code>07872ad</code></a>
[ty] Preserve string literals in comparisons with
<code>LiteralString</code> (<a
href="https://redirect.github.com/astral-sh/ruff/issues/29741">#29741</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/95888b2edfaa34d0159732856b1466cf53b33e64"><code>95888b2</code></a>
[ty] Preserve narrowing after guarded match subject captures (<a
href="https://redirect.github.com/astral-sh/ruff/issues/29558">#29558</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/3c8166b683805aa89557b0739f5b9918ad58ea6d"><code>3c8166b</code></a>
[ty] Fix hang when negating recursive unions of instance types (<a
href="https://redirect.github.com/astral-sh/ruff/issues/29652">#29652</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/3fd20e08598ac345b8afd524d3f7086456e4e758"><code>3fd20e0</code></a>
[ty] Preserve generic callback specializations during return refinement
(<a
href="https://redirect.github.com/astral-sh/ruff/issues/29667">#29667</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/2f0a29ece1f1a539c65c0671c04c76bb886219fe"><code>2f0a29e</code></a>
[ty] Record predicate truthiness alongside expression inference (<a
href="https://redirect.github.com/astral-sh/ruff/issues/29706">#29706</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/60f104a1a2ec4e980198ff54c38ba6fe7045b29f"><code>60f104a</code></a>
[ty] Honor <a
href="https://github.com/override"><code>@​override</code></a> on
overload implementations in stubs (<a
href="https://redirect.github.com/astral-sh/ruff/issues/29470">#29470</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/207ec3affeb118fce03a65f9333959157e228312"><code>207ec3a</code></a>
[ty] Add diagnostic baseline support (<a
href="https://redirect.github.com/astral-sh/ruff/issues/27636">#27636</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/astral-sh/ruff/compare/0.16.9...0.17.3">compare
view</a></li>
</ul>
</details>
<br />

Updates `ty` from 0.0.84 to 0.0.94
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/astral-sh/ty/releases">ty's
releases</a>.</em></p>
<blockquote>
<h2>0.0.94</h2>
<h2>Release Notes</h2>
<p>Released on 2026-10-28.</p>
<h3>Bug fixes</h3>
<ul>
<li>Correctly handle line continuation when fixing unused ignore
comments (<a
href="https://redirect.github.com/astral-sh/ruff/pull/29781">#29781</a>)</li>
<li>Fix Linux x86-64 startup on older kernels (<a
href="https://redirect.github.com/astral-sh/ty/pull/4853">#4853</a>)</li>
<li>Fix a panic when a comprehension filter depends on a later binding
(<a
href="https://redirect.github.com/astral-sh/ruff/pull/29786">#29786</a>)</li>
<li>Fix a panic when sorting diagnostics without a source location (<a
href="https://redirect.github.com/astral-sh/ruff/pull/29780">#29780</a>)</li>
<li>Fix panic on a chained assignment with a missing value (<a
href="https://redirect.github.com/astral-sh/ruff/pull/29787">#29787</a>)</li>
<li>Reject defaulted TypeVars after a TypeVarTuple in legacy generic
classes (<a
href="https://redirect.github.com/astral-sh/ruff/pull/29753">#29753</a>)</li>
</ul>
<h3>Other changes</h3>
<ul>
<li>Django: suppress invalid-override errors for <code>Meta</code>
configurations (<a
href="https://redirect.github.com/astral-sh/ruff/pull/29769">#29769</a>)</li>
</ul>
<h3>Contributors</h3>
<ul>
<li><a href="https://github.com/sharkdp"><code>@​sharkdp</code></a></li>
<li><a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a></li>
<li><a
href="https://github.com/MichaReiser"><code>@​MichaReiser</code></a></li>
</ul>
<h2>Install ty 0.0.94</h2>
<h3>Install prebuilt binaries via shell script</h3>
<pre lang="sh"><code>curl --proto '=https' --tlsv1.2 -LsSf
https://releases.astral.sh/github/ty/releases/download/0.0.94/ty-installer.sh
| sh
</code></pre>
<h3>Install prebuilt binaries via powershell script</h3>
<pre lang="sh"><code>powershell -ExecutionPolicy Bypass -c &quot;irm
https://releases.astral.sh/github/ty/releases/download/0.0.94/ty-installer.ps1
| iex&quot;
</code></pre>
<h2>Download ty 0.0.94</h2>
<table>
<thead>
<tr>
<th>File</th>
<th>Platform</th>
<th>Checksum</th>
</tr>
</thead>
<tbody>
<tr>
<td><a
href="https://releases.astral.sh/github/ty/releases/download/0.0.94/ty-aarch64-apple-darwin.tar.gz">ty-aarch64-apple-darwin.tar.gz</a></td>
<td>Apple Silicon macOS</td>
<td><a
href="https://releases.astral.sh/github/ty/releases/download/0.0.94/ty-aarch64-apple-darwin.tar.gz.sha256">checksum</a></td>
</tr>
<tr>
<td><a
href="https://releases.astral.sh/github/ty/releases/download/0.0.94/ty-x86_64-apple-darwin.tar.gz">ty-x86_64-apple-darwin.tar.gz</a></td>
<td>Intel macOS</td>
<td><a
href="https://releases.astral.sh/github/ty/releases/download/0.0.94/ty-x86_64-apple-darwin.tar.gz.sha256">checksum</a></td>
</tr>
<tr>
<td><a
href="https://releases.astral.sh/github/ty/releases/download/0.0.94/ty-aarch64-pc-windows-msvc.zip">ty-aarch64-pc-windows-msvc.zip</a></td>
<td>ARM64 Windows</td>
<td><a
href="https://releases.astral.sh/github/ty/releases/download/0.0.94/ty-aarch64-pc-windows-msvc.zip.sha256">checksum</a></td>
</tr>
<tr>
<td><a
href="https://releases.astral.sh/github/ty/releases/download/0.0.94/ty-i686-pc-windows-msvc.zip">ty-i686-pc-windows-msvc.zip</a></td>
<td>x86 Windows</td>
<td><a
href="https://releases.astral.sh/github/ty/releases/download/0.0.94/ty-i686-pc-windows-msvc.zip.sha256">checksum</a></td>
</tr>
<tr>
<td><a
href="https://releases.astral.sh/github/ty/releases/download/0.0.94/ty-x86_64-pc-windows-msvc.zip">ty-x86_64-pc-windows-msvc.zip</a></td>
<td>x64 Windows</td>
<td><a
href="https://releases.astral.sh/github/ty/releases/download/0.0.94/ty-x86_64-pc-windows-msvc.zip.sha256">checksum</a></td>
</tr>
<tr>
<td><a
href="https://releases.astral.sh/github/ty/releases/download/0.0.94/ty-aarch64-unknown-linux-gnu.tar.gz">ty-aarch64-unknown-linux-gnu.tar.gz</a></td>
<td>ARM64 Linux</td>
<td><a
href="https://releases.astral.sh/github/ty/releases/download/0.0.94/ty-aarch64-unknown-linux-gnu.tar.gz.sha256">checksum</a></td>
</tr>
<tr>
<td><a
href="https://releases.astral.sh/github/ty/releases/download/0.0.94/ty-i686-unknown-linux-gnu.tar.gz">ty-i686-unknown-linux-gnu.tar.gz</a></td>
<td>x86 Linux</td>
<td><a
href="https://releases.astral.sh/github/ty/releases/download/0.0.94/ty-i686-unknown-linux-gnu.tar.gz.sha256">checksum</a></td>
</tr>
<tr>
<td><a
href="https://releases.astral.sh/github/ty/releases/download/0.0.94/ty-powerpc64le-unknown-linux-gnu.tar.gz">ty-powerpc64le-unknown-linux-gnu.tar.gz</a></td>
<td>PPC64LE Linux</td>
<td><a
href="https://releases.astral.sh/github/ty/releases/download/0.0.94/ty-powerpc64le-unknown-linux-gnu.tar.gz.sha256">checksum</a></td>
</tr>
</tbody>
</table>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/astral-sh/ty/blob/main/CHANGELOG.md">ty's
changelog</a>.</em></p>
<blockquote>
<h2>0.0.94</h2>
<p>Released on 2026-10-28.</p>
<h3>Bug fixes</h3>
<ul>
<li>Correctly handle line continuation when fixing unused ignore
comments (<a
href="https://redirect.github.com/astral-sh/ruff/pull/29781">#29781</a>)</li>
<li>Fix Linux x86-64 startup on older kernels (<a
href="https://redirect.github.com/astral-sh/ty/pull/4853">#4853</a>)</li>
<li>Fix a panic when a comprehension filter depends on a later binding
(<a
href="https://redirect.github.com/astral-sh/ruff/pull/29786">#29786</a>)</li>
<li>Fix a panic when sorting diagnostics without a source location (<a
href="https://redirect.github.com/astral-sh/ruff/pull/29780">#29780</a>)</li>
<li>Fix panic on a chained assignment with a missing value (<a
href="https://redirect.github.com/astral-sh/ruff/pull/29787">#29787</a>)</li>
<li>Reject defaulted TypeVars after a TypeVarTuple in legacy generic
classes (<a
href="https://redirect.github.com/astral-sh/ruff/pull/29753">#29753</a>)</li>
</ul>
<h3>Other changes</h3>
<ul>
<li>Django: suppress invalid-override errors for <code>Meta</code>
configurations (<a
href="https://redirect.github.com/astral-sh/ruff/pull/29769">#29769</a>)</li>
</ul>
<h3>Contributors</h3>
<ul>
<li><a href="https://github.com/sharkdp"><code>@​sharkdp</code></a></li>
<li><a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a></li>
<li><a
href="https://github.com/MichaReiser"><code>@​MichaReiser</code></a></li>
</ul>
<h2>0.0.93</h2>
<p>Released on 2026-10-28.</p>
<h3>Preview features</h3>
<ul>
<li>
<p>Add diagnostic baselines to help adopt ty in projects with existing
errors (<a
href="https://redirect.github.com/astral-sh/ruff/pull/27636">#27636</a>).
Configure a baseline in <code>pyproject.toml</code>:</p>
<pre lang="toml"><code>[tool.ty]
baseline = &quot;ty-baseline.json&quot;
</code></pre>
<p>Run <code>ty check --update-baseline</code> to record existing
diagnostics. Subsequent checks filter matching diagnostics from CLI
output and show them as hints in the language server. The baseline
format may change while the feature is in preview.</p>
</li>
</ul>
<h3>Bug fixes</h3>
<ul>
<li>Fix a panic when checking truthiness in a loop (<a
href="https://redirect.github.com/astral-sh/ruff/pull/29759">#29759</a>)</li>
<li>Fix hang when negating recursive unions of instance types (<a
href="https://redirect.github.com/astral-sh/ruff/pull/29652">#29652</a>)</li>
</ul>
<h3>Core type checking</h3>
<ul>
<li>Avoid synthesizing primary keys for abstract Django models (<a
href="https://redirect.github.com/astral-sh/ruff/pull/29744">#29744</a>)</li>
<li>Combine constraints from repeated <code>ParamSpec</code>s (<a
href="https://redirect.github.com/astral-sh/ruff/pull/29172">#29172</a>)</li>
<li>Fix narrowing of strings and integers compared with enum members (<a
href="https://redirect.github.com/astral-sh/ruff/pull/29743">#29743</a>)</li>
<li>Honor <code>@override</code> on overload implementations in stubs
(<a
href="https://redirect.github.com/astral-sh/ruff/pull/29470">#29470</a>)</li>
<li>Preserve caller type variables in nested union inference (<a
href="https://redirect.github.com/astral-sh/ruff/pull/29611">#29611</a>)</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/astral-sh/ty/commit/f8ea270e0b125116ce52868b16384819183056af"><code>f8ea270</code></a>
Bump version to 0.0.94 (<a
href="https://redirect.github.com/astral-sh/ty/issues/4857">#4857</a>)</li>
<li><a
href="https://github.com/astral-sh/ty/commit/7a36fc91318b07a58d0aa27753db4db1d212032a"><code>7a36fc9</code></a>
Fix Linux x86-64 startup on older kernels (<a
href="https://redirect.github.com/astral-sh/ty/issues/4853">#4853</a>)</li>
<li><a
href="https://github.com/astral-sh/ty/commit/3db5e4df7becd3ca55fd06c78e98bf7c8a38e469"><code>3db5e4d</code></a>
Bump version to 0.0.93 (<a
href="https://redirect.github.com/astral-sh/ty/issues/4842">#4842</a>)</li>
<li><a
href="https://github.com/astral-sh/ty/commit/f8fd0e8b5ce954b5a7f4e38431d805dd58e50e2d"><code>f8fd0e8</code></a>
Update astral-sh/setup-uv action to v10.3.2 (<a
href="https://redirect.github.com/astral-sh/ty/issues/4843">#4843</a>)</li>
<li><a
href="https://github.com/astral-sh/ty/commit/c1ca420006c7e5ef62ddfa16267fd7531a0a1000"><code>c1ca420</code></a>
Update uv to v0.13.6 (<a
href="https://redirect.github.com/astral-sh/ty/issues/4845">#4845</a>)</li>
<li><a
href="https://github.com/astral-sh/ty/commit/4c5c9079ac053fa3f879ee7625ec5c28a0817de4"><code>4c5c907</code></a>
Update prek dependencies (<a
href="https://redirect.github.com/astral-sh/ty/issues/4844">#4844</a>)</li>
<li><a
href="https://github.com/astral-sh/ty/commit/0445d6497ae22a0c480b23807cd71f47889053d8"><code>0445d64</code></a>
Optimize Linux x86-64 ty releases with LLVM BOLT (<a
href="https://redirect.github.com/astral-sh/ty/issues/4833">#4833</a>)</li>
<li><a
href="https://github.com/astral-sh/ty/commit/3933e6918b731d86b3f3a4f1bc47f2ce21195e8e"><code>3933e69</code></a>
Bump version to 0.0.92 (<a
href="https://redirect.github.com/astral-sh/ty/issues/4821">#4821</a>)</li>
<li><a
href="https://github.com/astral-sh/ty/commit/9aaec9ba5896c759e8e93000d0a1dec51f2bae57"><code>9aaec9b</code></a>
Handle AI policy labels through Actions (<a
href="https://redirect.github.com/astral-sh/ty/issues/4812">#4812</a>)</li>
<li><a
href="https://github.com/astral-sh/ty/commit/e1b8efaafd842d3e33c1a21ae7e897434452975b"><code>e1b8efa</code></a>
Update uv to 0.13.5 (<a
href="https://redirect.github.com/astral-sh/ty/issues/4809">#4809</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/astral-sh/ty/compare/0.0.84...0.0.94">compare
view</a></li>
</ul>
</details>
<br />


Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore <dependency name> major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions


</details>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: John Kennedy <65985482+jkennedyvz@users.noreply.github.com>
Co-authored-by: John Kennedy <jkennedyvz@users.noreply.github.com>
Co-authored-by: Robin <open-swe@users.noreply.github.com>
2026-11-18 07:15:55 +00:00
dependabot[bot] 02f2c2e6c9 chore(deps): bump opentelemetry-api from 1.45.1 to 1.45.2 in /libs/cli (#9695)
Bumps
[opentelemetry-api](https://github.com/open-telemetry/opentelemetry-python)
from 1.45.1 to 1.45.2.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/open-telemetry/opentelemetry-python/releases">opentelemetry-api's
releases</a>.</em></p>
<blockquote>
<h2>Version 1.45.2/0.66b2</h2>
<p>This is a patch release on the previous 1.45.1/0.66b1 release, fixing
the issue(s) below.</p>
<h3>Added</h3>
<ul>
<li><code>opentelemetry-sdk</code>,
<code>opentelemetry-configuration</code>,
<code>opentelemetry-exporter-prometheus</code>: enforce metric
cardinality limits (default 2000) with the
<code>otel.metric.overflow</code> attribute, configurable through
<code>View(aggregation_cardinality_limit=...)</code>, reader
<code>cardinality_limits</code> and declarative configuration (<a
href="https://redirect.github.com/open-telemetry/opentelemetry-python/pull/5809">#5809</a>)</li>
</ul>
<h3>Fixed</h3>
<ul>
<li><code>opentelemetry-api</code>: limit <code>traceparent</code>
header length to 512 characters in
<code>TraceContextTextMapPropagator</code> during extraction (<a
href="https://redirect.github.com/open-telemetry/opentelemetry-python/pull/5818">#5818</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/open-telemetry/opentelemetry-python/blob/main/CHANGELOG.md">opentelemetry-api's
changelog</a>.</em></p>
<blockquote>
<h2>Version 1.45.2/0.66b2 (2026-10-29)</h2>
<h3>Added</h3>
<ul>
<li><code>opentelemetry-sdk</code>,
<code>opentelemetry-configuration</code>,
<code>opentelemetry-exporter-prometheus</code>: enforce metric
cardinality limits
(default 2000) with the <code>otel.metric.overflow</code> attribute,
configurable
through <code>View(aggregation_cardinality_limit=...)</code>, reader
<code>cardinality_limits</code> and declarative configuration
(<a
href="https://redirect.github.com/open-telemetry/opentelemetry-python/pull/5809">#5809</a>)</li>
</ul>
<h3>Fixed</h3>
<ul>
<li><code>opentelemetry-api</code>: limit <code>traceparent</code>
header length to 512 characters in
<code>TraceContextTextMapPropagator</code> during extraction
(<a
href="https://redirect.github.com/open-telemetry/opentelemetry-python/pull/5818">#5818</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/open-telemetry/opentelemetry-python/commit/ad755945ad69008219e661c33ff1d72ff1bbcb51"><code>ad75594</code></a>
[release/v1.45.x-0.66bx] Prepare release 1.45.2/0.66b2 (<a
href="https://redirect.github.com/open-telemetry/opentelemetry-python/issues/5862">#5862</a>)</li>
<li><a
href="https://github.com/open-telemetry/opentelemetry-python/commit/78123a2755c907c602e02352aebed4be86aa5350"><code>78123a2</code></a>
[release/v1.45.x-0.66bx] Backport metric cardinality limits and
traceparent p...</li>
<li>See full diff in <a
href="https://github.com/open-telemetry/opentelemetry-python/compare/v1.45.1...v1.45.2">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=opentelemetry-api&package-manager=uv&previous-version=1.45.1&new-version=1.45.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the
[Security Alerts
page](https://github.com/langchain-ai/langgraph/network/alerts).

</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-16 08:59:08 +00:00
dependabot[bot] c08760fa67 chore(deps): bump opentelemetry-api from 1.45.1 to 1.45.2 in /libs/langgraph (#9696)
Bumps
[opentelemetry-api](https://github.com/open-telemetry/opentelemetry-python)
from 1.45.1 to 1.45.2.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/open-telemetry/opentelemetry-python/releases">opentelemetry-api's
releases</a>.</em></p>
<blockquote>
<h2>Version 1.45.2/0.66b2</h2>
<p>This is a patch release on the previous 1.45.1/0.66b1 release, fixing
the issue(s) below.</p>
<h3>Added</h3>
<ul>
<li><code>opentelemetry-sdk</code>,
<code>opentelemetry-configuration</code>,
<code>opentelemetry-exporter-prometheus</code>: enforce metric
cardinality limits (default 2000) with the
<code>otel.metric.overflow</code> attribute, configurable through
<code>View(aggregation_cardinality_limit=...)</code>, reader
<code>cardinality_limits</code> and declarative configuration (<a
href="https://redirect.github.com/open-telemetry/opentelemetry-python/pull/5809">#5809</a>)</li>
</ul>
<h3>Fixed</h3>
<ul>
<li><code>opentelemetry-api</code>: limit <code>traceparent</code>
header length to 512 characters in
<code>TraceContextTextMapPropagator</code> during extraction (<a
href="https://redirect.github.com/open-telemetry/opentelemetry-python/pull/5818">#5818</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/open-telemetry/opentelemetry-python/blob/main/CHANGELOG.md">opentelemetry-api's
changelog</a>.</em></p>
<blockquote>
<h2>Version 1.45.2/0.66b2 (2026-10-29)</h2>
<h3>Added</h3>
<ul>
<li><code>opentelemetry-sdk</code>,
<code>opentelemetry-configuration</code>,
<code>opentelemetry-exporter-prometheus</code>: enforce metric
cardinality limits
(default 2000) with the <code>otel.metric.overflow</code> attribute,
configurable
through <code>View(aggregation_cardinality_limit=...)</code>, reader
<code>cardinality_limits</code> and declarative configuration
(<a
href="https://redirect.github.com/open-telemetry/opentelemetry-python/pull/5809">#5809</a>)</li>
</ul>
<h3>Fixed</h3>
<ul>
<li><code>opentelemetry-api</code>: limit <code>traceparent</code>
header length to 512 characters in
<code>TraceContextTextMapPropagator</code> during extraction
(<a
href="https://redirect.github.com/open-telemetry/opentelemetry-python/pull/5818">#5818</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/open-telemetry/opentelemetry-python/commit/ad755945ad69008219e661c33ff1d72ff1bbcb51"><code>ad75594</code></a>
[release/v1.45.x-0.66bx] Prepare release 1.45.2/0.66b2 (<a
href="https://redirect.github.com/open-telemetry/opentelemetry-python/issues/5862">#5862</a>)</li>
<li><a
href="https://github.com/open-telemetry/opentelemetry-python/commit/78123a2755c907c602e02352aebed4be86aa5350"><code>78123a2</code></a>
[release/v1.45.x-0.66bx] Backport metric cardinality limits and
traceparent p...</li>
<li>See full diff in <a
href="https://github.com/open-telemetry/opentelemetry-python/compare/v1.45.1...v1.45.2">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=opentelemetry-api&package-manager=uv&previous-version=1.45.1&new-version=1.45.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the
[Security Alerts
page](https://github.com/langchain-ai/langgraph/network/alerts).

</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-16 08:58:44 +00:00
41fb001df9 fix(langgraph): avoid warning races in dynamic schemas (#9716)
Dynamic schema creation could swallow unrelated warnings or undo
warning-filter changes made by another thread. Remove redundant warning
contexts; existing namespace configuration and reserved-name remapping
already avoid Pydantic field-name warnings.

Preserve cached and uncached field/root schemas, defaults, aliases, and
validation. This fixes Python warning-state handling; no matching
JavaScript change is needed.

Made by [Robin](https://github.com/langchain-ai/open-swe) · [view
thread](https://robin.langchain.dev/agents/2b0a6758-41fe-51a2-b21a-a5beb35ecd97)
· openai:gpt-6.1-sol (xhigh)

Co-authored-by: Mason Daugherty <mdrxy@users.noreply.github.com>
Co-authored-by: Robin <open-swe@users.noreply.github.com>
2026-11-15 14:59:36 -05:00
Elior Nataf Lackritz 08a2016953 release(langgraph): 1.2.22 (#9702)
Bumps langgraph from 1.2.21 to 1.2.22.

Includes:

- Stream a child graph that runs on its own thread to a caller streaming
with `subgraphs=True` again, as before 1.2.19 (#9698)
- Skip message conversion in `add_messages` for plain messages (#9631)
- Filter pending writes to the given tasks before reading their statuses
(#9634)
- Match update keys against a set on wide states (#9632)
- Check only failed futures for the runner stop condition (#9630)
- Find untracked and delta channels once per run (#9629)
2026-11-13 20:25:56 -05:00
Elior Nataf Lackritz ebd3ab4abf release(checkpoint-postgres): 3.2.1 (#9700)
Bumps langgraph-checkpoint-postgres from 3.2.0 to 3.2.1.

Includes:

- Run a lone store read outside a pipeline (#9635)
- Skip the async saver's lock for connection pools (#9638)
- Load no pending writes without a thread hop (#9639)
2026-11-14 01:25:44 +00:00
Sreekara Yachamaneni 9b0d8857cc feat(cli): deploy to BYOC data planes with only an API key (#9692)
Linear: https://linear.app/langchain/issue/LSD-2184

`langgraph deploy` and its `list`, `revisions`, `logs`, and `delete`
subcommands only knew the SaaS control plane. On a BYOC data plane (AWS,
Azure, or GCP), users needed `--host-url`, got a raw 400 (`'source' must
be ...`) on CLI builds, defaulted to `serverless` even where scale to
zero isn't available, and got dashboard links pointing at the data
plane. This PR makes them work with only a LangSmith API key.

**Workspace discovery**
- Unless `--host-url` is given, the CLI calls `GET <LangSmith
API>/api/v1/workspaces` (root from `LANGSMITH_ENDPOINT`, default
`https://api.smith.langchain.com`).
- It picks the workspace from `LANGSMITH_TENANT_ID`, else the only
non-deleted workspace, else the `data_plane_url` all workspaces share.
When the key's workspaces sit on different planes and no tenant is set,
it keeps today's control-plane target, so the existing 403 workspace
prompt still applies. A `LANGSMITH_TENANT_ID` that none of the key's
workspaces match is an error that names it.
- With a `data_plane_url`, a `DataPlaneClient` sends host API calls to
`<dp>/api-host` with that workspace as `X-Tenant-ID`. Status links and
the "not enabled" message point at the LangSmith UI (regional
`smith.langchain.com`, or the self-hosted root), never the data plane.
- Without a `data_plane_url`, or when discovery fails, behavior is
unchanged: SaaS pays one extra call, and no tenant header is added.
- `--host-url` / `LANGGRAPH_HOST_URL` still overrides everything and
skips discovery.

**Data plane capabilities (`<dp>/api/v1/info` `instance_flags`; a
missing flag is false)**
- Local builds and `--remote` need `deployments_cli_builds_supported`.
Without it the CLI fails before any lookup or create, pointing at
`--push-to <registry>/<repository>` and `--image-uri`. External images
keep working and never read `/info`.
- `--agent-server-type` now defaults to `serverless` on SaaS and on data
planes with scale to zero, and to `dev` otherwise. An explicit
`serverless` or `dedicated`/`prod` the data plane doesn't support is a
usage error.
- Create bodies on a data plane are sized by `resource_spec`: `{}` for
serverless and dev, `null` for dedicated, and `deployment_type` is
`dev_zero`, omitted, or `prod`. SaaS keeps today's body.

**Older data planes**
- A 400 whose detail starts with `'source' must be` gets the same
`--push-to` / `--image-uri` hint, following the existing AWS
scale-to-zero hint.

**Unchanged and verified**
- Registry login still uses the returned `username` and `repository_url`
(falling back to `oauth2accesstoken`), which covers ECR, ACR, and
Artifact Registry `<repo>/<service>` responses.
- Upload headers from the backend are forwarded; S3 (`Content-Type`
only) and Azure (`x-ms-blob-type`) are covered by tests.
- `logs --type build` and revision polling call `list_revisions` /
`get_build_logs` on the same client, so they carry the discovered
workspace.

`_request` moved to a small shared base so the LangSmith API client
reuses the host backend's error handling. Unit tests now stub discovery
by default so none of them reach the network.

The JS CLI in langgraphjs (`libs/langgraph-cli`) has the same deploy
commands and needs a matching change.

Flag: none

## Test Plan
- [x] New unit tests for discovery selection, data-plane routing and
tenant headers, `/info` flag parsing, create bodies per type, early
refusals, the `'source' must be` hint, BYOC build logs, and BYOC
dashboard links on `*.langchain.com` data-plane hosts
- [ ] Against a real BYOC data plane on each of AWS, Azure, and GCP with
CLI builds on: `langgraph deploy` (local and `--remote`), `list`,
`revisions list`, `logs` (runtime and `--type build`), `delete`
- [ ] Against a BYOC data plane without CLI builds: local deploy fails
early with the hint; `--image-uri` deploy succeeds
2026-11-13 20:21:54 -05:00
Elior Nataf Lackritz cde6bd46a6 release(prebuilt): 1.1.2 (#9701)
Bumps langgraph-prebuilt from 1.1.1 to 1.1.2.

Includes:

- Only format the `call_model` error message when raising (#9628)
2026-11-13 20:21:50 -05:00
Elior Nataf Lackritz 2adf8a1382 release(checkpoint): 4.3.2 (#9699)
Bumps langgraph-checkpoint from 4.3.1 to 4.3.2.

Includes:

- Stop `InMemoryStore` search at the requested page (#9633)
- Dedupe batched store reads with a dict (#9636)
2026-11-13 20:21:07 -05:00
Elior Nataf Lackritz ccfb0a1bf8 fix(langgraph): stream a child graph on its own thread to a caller streaming subgraphs (#9698)
Since #9458, a graph that runs outside the caller's task (invoked inside
a node with its own `thread_id`, `checkpoint_ns` or `checkpoint_id`, or
through a runnable called with its own `configurable`) drops every
`messages` and `tools` handler it inherits. That keeps its events out of
a caller streaming without `subgraphs=True` (#5674), where they showed
up as the caller's own. It also dropped them for a caller that streams
with `subgraphs=True`, which asks for the events of every graph that
runs under it, so since 1.2.19 that caller gets none of the child's
tokens, tool events or node-output messages. The child now drops only
the handlers without `subgraphs`.

The child's events keep the namespace they had before 1.2.19, the
child's own, which is `()` for its top-level nodes. Moving them under
the calling node's namespace would change their shape a second time for
callers that read them today.


`test_child_graph_on_its_own_thread_streams_to_a_caller_streaming_subgraphs`
and its async twin fail on `main` (4 cases). JS needs no change: its
handlers filter these events only without `subgraphs` (`isOutsideStream`
in `libs/langgraph-core/src/pregel/stream.ts`).

## Release note

A graph invoked inside a node with its own `thread_id`, `checkpoint_ns`
or `checkpoint_id`, or through a runnable called with its own
`configurable`, streams its `messages` and `tools` events to a caller
that streams with `subgraphs=True` again, as it did before 1.2.19. They
still stay out of a stream without `subgraphs=True`.
2026-11-13 19:58:23 -05:00
Elior Nataf Lackritz 3183e90eca perf(checkpoint-postgres): run a lone store read outside a pipeline (#9635)
`PostgresStore` and `AsyncPostgresStore` always ran a batch inside a
pipeline. For a read that costs two round trips: fetching the result
forces one, and leaving the pipeline sends a Sync and waits for a
second. `store.get()`, `store.search()` and `store.list_namespaces()`
are batches of one read, so each paid two round trips, which is why a
`get` took longer than a `put`.

A batch of exactly one read now runs outside the pipeline, in one round
trip. Batches with several ops or any write still use the pipeline, and
so does a store opened with `pipeline=True`. In the sync store the
non-pipeline cursor now takes the store's lock, as every batch already
did through the pipeline branch, so a lone read never uses a shared
connection while another thread has it in a pipeline. That also covers
`sweep_ttl`, which went through that branch without the lock.

Median of four alternating rounds on main and on this branch, Python
3.14, Postgres 15 in local Docker:

| workload | main | this PR | speedup |
|---|---|---|---|
| round trips for 200 `get` calls, counted with a TCP proxy | 400 | 200
| 2x |
| 200 `PostgresStore.get` | 85.2 ms | 47.8 ms | 1.78x |
| 50 `PostgresStore.search` | 25.7 ms | 16.6 ms | 1.55x |
| 200 `AsyncPostgresStore.aget`, one after another | 103 ms | 59.5 ms |
1.73x |
| the same 200 `get` with 0.5 ms added per round trip | 433 ms | 228 ms
| 1.90x |
| graph node doing one `get` and one `put` per step, 50 steps | 46.8 ms
| 37.2 ms | 1.26x |
| `put`, and many concurrent `aget` batched together | | | about 1x |

## Test plan
- [x] The existing store suites pass for the sync and async stores in
their default, `pipeline=True` and pool setups, which cover the
lone-read path and the pipeline path.
2026-11-13 00:34:51 +00:00
Elior Nataf Lackritz 8fd97561d6 perf(checkpoint-postgres): skip the async saver's lock for connection pools (#9638)
Fixes #7259

`AsyncPostgresSaver` takes its instance lock around every database call.
The lock is needed when the saver shares one connection, which serves
one call at a time, but the saver also took it with an
`AsyncConnectionPool`, which gives each call its own connection. So
every saver call in the process waited for the one before it: concurrent
runs, and within one run the background checkpoint saves and each task's
`put_writes`.

With a pool, `_cursor` no longer takes the lock. A single connection and
a shared `pipe` still do.

Python 3.14 on an Apple M5 Pro, Postgres 16,
`AsyncConnectionPool(max_size=10)`, median of 5 rounds that alternate
main and this branch (3 rounds with 1 ms round trips):

| workload | main | this PR | speedup |
|---|---|---|---|
| 8 concurrent one-turn agents on one saver | 87.1 ms | 49.8 ms | 1.75x
|
| 500-way `Send` fan-out | 246 ms | 144 ms | 1.71x |
| 200 sequential nodes | 265 ms | 190 ms | 1.39x |
| one agent turn (7 supersteps) | 12.3 ms | 10.4 ms | 1.18x |
| 8 concurrent agents, 1 ms round trips | 234 ms | 60 ms | 3.86x |
| 500-way fan-out, 1 ms round trips | 773 ms | 167 ms | 4.63x |
| 200 sequential nodes, 1 ms round trips | 696 ms | 346 ms | 2.01x |

Process CPU stays about the same. A burst of calls larger than the pool
now waits in `psycopg_pool` (30 s timeout by default) instead of on the
lock. Calls that must be ordered already are: the loop saves a
checkpoint after the previous one and after its DeltaChannel writes.

The sync `PostgresSaver` takes the same lock with a `ConnectionPool`.
Removing it there let up to 19 executor threads contend for the GIL and
the pool: 1.3x to 1.5x faster, but 1.2x to 2.4x more CPU, so this PR
leaves it. `AsyncShallowPostgresSaver` is deprecated and also keeps its
lock.

@glaziermag reported this in #7259 with a load test, and @jitokim
proposed the same fix in #7269.

## Test plan
- [x] New `test_pool_saver_reads_while_a_list_is_open`: with a pool,
`aget_tuple` completes while an `alist` iteration is open. On main it
waits for the lock and times out after 5 s.
- [x] `checkpoint-postgres` suite (427 passed, 3 skipped), the
checkpoint conformance suite on a pool, and langgraph's Postgres tests
against this saver (2,832 passed).
2026-11-13 00:11:29 +00:00
Elior Nataf Lackritz ba0acae562 perf(langgraph): skip message conversion in add_messages for plain messages (#9631)
`add_messages` ran `convert_to_messages` and `message_chunk_to_message`
over every message already in the state on every update, plus a final
filter pass. Both conversions return a plain message unchanged, so on a
long history this is overhead: 0.18 ms per call at 1,000 messages. An
agent turn calls it once per update and once more for each conditional
edge that reads `messages`.

The list now passes through as is when every item is already a plain
message, checked on the few distinct types in the list rather than per
item, and the filter runs only when a message was removed. Anything else
(dicts, tuples, strings, chunks, or a mix) goes through the same
conversion as before.

Median of alternating rounds on main and on this branch, Python 3.14, an
agent turn being 3 tool calls on a thread with 1,000 messages:

| workload | main | this PR | speedup |
|---|---|---|---|
| `add_messages` on 1,000 messages plus 1 new one | 184 us | 69 us |
2.7x |
| agent turn, no checkpointer | 4.80 ms | 3.38 ms | 1.42x |
| agent turn, `InMemorySaver`, `durability="exit"` | 11.0 ms | 8.7 ms |
1.25x |
| agent turn, `InMemorySaver`, default durability | 22.4 ms | 21.1 ms |
1.06x |

With a checkpoint every step, saving the whole history at each step
dominates the turn, so the gain is small there.

@jkennedyvz trimmed the same per-message conversion loop in #6969.

## Test plan
- [x] Missing ids are still assigned and the result is still a new list.
Two new tests in `test_messages_state.py` cover message-likes and chunks
on both sides, and that the result is not the input list. They pass on
main too.
2026-11-13 00:10:04 +00:00
Elior Nataf Lackritz cd95887ec5 perf(checkpoint): stop InMemoryStore search at the requested page (#9633)
`InMemoryStore.search` built an `(item, vectors)` pair for every item in
every matching namespace, then kept `candidates[offset:offset + limit]`.
A `limit=10` search on a 10,000-item namespace took 1.9 ms, nearly all
of it building candidates the slice then dropped. Paging a namespace 100
items at a time, as deepagents' `StoreBackend` does for `ls`, `glob` and
`grep`, rebuilt the whole listing for every page.

Without a filter, and without a query the store can embed, the result is
exactly that slice, so `_filter_items` now stops once it has `offset +
limit` matches. The namespace prefix test also becomes one tuple
compare: a namespace shorter than the prefix slices to itself, so it can
never equal the prefix.

Median of four alternating rounds on main and on this branch, Python
3.14:

| workload | main | this PR | speedup |
|---|---|---|---|
| `search(ns, limit=10)` on a 1,000-item namespace | 70 µs | 4 µs | 17x
|
| same, 10,000 items | 1.92 ms | 4 µs | about 490x |
| graph node that searches 1,000 memories (`limit=5`) and adds one, 20
steps | 3.41 ms | 1.86 ms | 1.83x |
| same, 10,000 memories | 39.4 ms | 1.83 ms | 21.5x |
| paging 5,000 items 100 at a time | 47.1 ms | 30.1 ms | 1.57x |
| `search` over 10,000 one-item namespaces | 23.4 ms | 15.5 ms | 1.51x |
| `search` with a filter, `get`, `put` | | | about 1x |

A filter keeps the full scan, so a filter that raises on some item (a
range operator on a missing key) still raises the same way. Negative
`offset` or `limit` keep it too, since a slice counts those from the
end.

## Test plan
- [x] `test_search_pages_match_full_listing` pages plain and filtered
searches across nested and look-alike namespaces and compares each page
with the full listing. It passes on main too, since the results are
unchanged.
2026-11-13 00:08:22 +00:00
Elior Nataf Lackritz 96686e5700 perf(checkpoint-postgres): load no pending writes without a thread hop (#9639)
`AsyncPostgresSaver` deserializes a checkpoint's pending writes in
`asyncio.to_thread`. The hand-off costs about 50 us per checkpoint, and
it ran even when there was nothing to load: the usual case for the
latest checkpoint of a finished run, which `aget_state` and the start of
every run read.

It now returns an empty list without the hop when the row has no pending
writes.

Python 3.14 on an Apple M5 Pro, Postgres 16, median of 5 rounds that
alternate main and this branch:

| workload | main | this PR | speedup |
|---|---|---|---|
| `aget_tuple` of a checkpoint with no pending writes | 264 us | 214 us
| 1.24x |
| `aget_state`, 200-message thread | 2.46 ms | 2.13 ms | 1.16x |
| an agent turn on that thread | 23.8 ms | 23.7 ms | about 1x |

With 1 ms round trips the round trip dominates each call, so wall time
stays about 1x, while process CPU per `aget_tuple` is still 1.36x lower.

`_load_writes(None)` already returned an empty list, so the result is
the same.

## Test plan
- [x] `checkpoint-postgres` suite (426 passed, 3 skipped) and the
checkpoint conformance suite (`get_tuple`, `list`).
2026-11-12 18:55:18 -05:00
Elior Nataf Lackritz acff17b041 perf(checkpoint): dedupe batched store reads with a dict (#9636)
`AsyncBatchedBaseStore` collects the store calls made in the same event
loop tick into one batch and dedupes them first. `_dedupe_ops` found an
earlier equal read with `dedupped.index(op)`, a linear scan per read, so
a batch of n reads cost O(n²) comparisons: 1.1 ms for 500 concurrent
`aget` calls, 16 ms for 2,000. A fan-out where every task reads the
store fills exactly such a batch.

Reads are now looked up in a dict keyed by the op. An op that can't be
hashed (a `SearchOp` with a filter dict) falls back to the old scan, so
it dedupes exactly as before.

Median of four alternating rounds on main and on this branch, Python
3.14:

| workload | main | this PR | speedup |
|---|---|---|---|
| `_dedupe_ops` on 500 gets | 1.13 ms | 31 µs | 36x |
| 2,000 concurrent `aget`, `AsyncSqliteStore` | 17.6 ms | 8.0 ms | 2.2x
|
| 2,000 concurrent `aget`, `AsyncPostgresStore` | 20.2 ms | 11.3 ms |
1.78x |
| 500 concurrent `aget`, either store | | | 1.25x |
| 500-way `Send` fan-out where each task reads and writes the store | |
| about 1x |

## Test plan
- [x] `test_dedupe_ops_maps_repeated_reads_and_puts_to_one_op` covers
repeated gets, filtered searches, list ops and overwritten puts. It
passes on main too, since the result is unchanged.
2026-11-12 18:55:11 -05:00
Elior Nataf Lackritz 46b2ef0e1e perf(langgraph): filter pending writes to the given tasks before reading their statuses (#9634)
Each functional API task call (`accept_push`) restores any output the
pushed task saved in an earlier run. It did that by running
`read_task_statuses` over every pending write, which builds the status
of every task that has written, and then looked up the one task. On
resume every earlier task's writes are pending, so an entrypoint that
calls n tasks paid for n full status reads, O(n²): 196 µs per task call
at 1,000 pending writes. A sync entrypoint running tasks in parallel
hits it too, since writes land while tasks are still being pushed.

`_reapply_writes_to_succeeded_nodes` now hands `read_task_statuses` only
the writes of the tasks it was given. Statuses are per task, so those
tasks get exactly the statuses they got before.

Median of four alternating rounds on main and on this branch, Python
3.14, `InMemorySaver`:

| workload | main | this PR | speedup |
|---|---|---|---|
| matching saved writes for one task call, 1,000 pending writes | 196 µs
| 9.8 µs | 20x |
| resume an entrypoint that ran 500 tasks and then called `interrupt()`
| 153 ms | 35.4 ms | 4.3x |
| same, 100 tasks | 9.8 ms | 6.1 ms | 1.6x |
| entrypoint running 500 tasks in parallel, sync | 134 ms | 90.4 ms |
1.48x |
| 100 tasks in parallel or one after another, sync or async | | | about
1x |

Async entrypoints push all their tasks before any write lands, so they
barely move. In the 500-task parallel run, the biggest remaining cost in
the profile is the runner's stop check, which #9630 addresses.

## Test plan
- [x] Existing coverage: `test_imp_task` resumes an entrypoint and
checks its tasks don't run again, and the full suite passes.
2026-11-12 18:55:04 -05:00
Elior Nataf Lackritz 496885e569 perf(langgraph): match update keys against a set on wide states (#9632)
`_get_updates` (run on every node's return value) and
`map_output_updates` (run for every task in `stream_mode="updates"`)
checked each written key against a list of all state keys, and
`map_output_updates` also looped over every key to look for duplicate
writes. On a state with hundreds of keys that is a list scan for every
written key.

Both now check against a frozenset: `_get_updates` builds it once when
the node is attached, `map_output_updates` once per call. The updates
keep the order of the node's writes.

Median of four alternating rounds on main and on this branch, Python
3.14:

| workload | main | this PR | speedup |
|---|---|---|---|
| `map_output_updates`, 20 writes on a 300-key state | 23.3 us | 4.0 us
| 5.8x |
| 30 nodes writing 20 keys each on a 300-key state, sync | 10.7 ms | 9.6
ms | 1.12x |
| same, async | 12.9 ms | 11.7 ms | 1.10x |
| `bench` `wide_state_25x300` (17 keys), sync | 3.84 ms | 3.74 ms |
about 1x |

States with a handful of keys see no change. Compiling builds one extra
frozenset per node, about 0.5 us each (`pydantic_state_25x300` compiles
in 117 us instead of 114 us).

## Test plan
- [x] The same keys pass the check, so no new test. Existing tests cover
the update paths, including a node that writes the same key twice in
`updates` mode (`test_multiple_writes_same_channel_from_same_node`).
2026-11-12 18:54:57 -05:00
Elior Nataf Lackritz 23a77c57fd perf(langgraph): check only failed futures for the runner stop condition (#9630)
When a task in a superstep finished, `FuturesDict.on_done` ran the stop
check over every future that had finished so far. The check calls
`cancelled()` and `exception()` on each one, and both take the future's
lock for a `concurrent.futures.Future`. A step with n parallel tasks
paid about n²/2 of these calls, about 125,000 for a 500-task `Send`
fan-out.

Only a future that raised can meet the stop condition, and a finished
future never changes, so `FuturesDict` now keeps the failed futures in
their own set and checks only those. The single-task path, which adds a
failed future straight to `done`, adds it to the new set too, so the
check sees the same failures as before, including ones an error handler
takes over.

Median of four alternating rounds on main and on this branch, Python
3.14:

| workload | main | this PR | speedup |
|---|---|---|---|
| 500 futures finishing in one step, `FuturesDict` alone | 28.5 ms |
0.72 ms | 39x |
| 500-way `Send` fan-out, sync, `InMemorySaver` | 77.3 ms | 33.9 ms |
2.28x |
| 500-way `Send` fan-out, sync, no checkpointer | 65.2 ms | 28.1 ms |
2.32x |
| 500-way `Send` fan-out, async | 36.4 ms | 35.8 ms | about 1x |
| `bench` `fanout_to_subgraph_100x`, sync | 116 ms | 113 ms | about 1x |

Async barely moves because asyncio futures answer these calls without a
lock, and the 100-way benchmark spends its time inside the subgraphs.

@AaronG18 (#8860), @nankingjing (#8347) and @014-code (#8270) proposed
checking fewer futures here, and @HumphreySun98 reported the problem in
#8240.

## Test plan
- [x] `test_runner_futures.py` pins the stop decision: a failed task
wakes the waiter before the other tasks finish, and a failure an error
handler took over does not. Both tests pass on main too, since the
behavior is unchanged.
2026-11-12 18:54:50 -05:00
Elior Nataf Lackritz 40f5cc7f1f perf(langgraph): find untracked and delta channels once per run (#9629)
The Pregel loop looked up channel types in two hot places. `put_writes`
scanned every channel for an `UntrackedValue` on each task's writes, and
`_put_checkpoint` walked every channel twice per superstep to find the
`DeltaChannel`s. A graph has a channel per node plus one per state key,
and channels are ABCs, so each check goes through
`ABCMeta.__instancecheck__`: a 200-node graph paid about 630 of them per
step.

Channel types can't change during a run, so the loop now works out both
answers once from `specs` and reuses them.

Median of four alternating rounds on main and on this branch, Python
3.14:

| workload | main | this PR | speedup |
|---|---|---|---|
| channel-type checks per step, 211 channels | 38 us | under 0.1 us | |
| `bench` `sequential_1000`, sync | 219 ms | 93 ms | 2.36x |
| `bench` `sequential_1000`, async | 370 ms | 250 ms | 1.48x |
| 200 sequential nodes, `InMemorySaver` | 38.7 ms | 29.4 ms | 1.31x |
| 200 sequential nodes, no checkpointer | 19.4 ms | 12.9 ms | 1.50x |
| agent turn on a model node + `ToolNode` graph | 2.51 ms | 2.48 ms |
about 1x |

The gain grows with the number of nodes and state keys. Small graphs see
no change.

`self.channels` is built from the same `specs`, with the same keys in
the same order, so the same writes are dropped, the same `Send` packets
are sanitized, and the same delta counters and snapshots come out.

@AaronG18 proposed the `UntrackedValue` half of this in #8858, and
@jkennedyvz in #7121.

## Test plan
- [x] No behavior change, so no new test. `test_untracked_value`,
`test_send_with_untracked_value` and the `test_delta_channel_*` files
cover these paths.
2026-11-12 18:54:43 -05:00
Elior Nataf Lackritz ef6490a521 perf(prebuilt): only format the call_model error message when raising (#9628)
Fixes #9328

`_get_model_input_state` in `create_react_agent` built its
missing-messages error string before checking whether it needed it. The
f-string includes `{state}`, so every model call ran `repr()` over the
whole message history and threw the result away. The cost grows with the
history, so a long tool loop pays it on every step.

The message is now built only when the error is raised, with the same
text.

Median of four alternating rounds on main and on this branch, Python
3.14:

| workload | main | this PR | speedup |
|---|---|---|---|
| building the model input, 1,000 messages | 7.6 ms | 0.08 ms | 95x |
| one agent turn (3 tool calls) on a 1,000-message thread,
`InMemorySaver` | 60.7 ms | 29.6 ms | 2.05x |
| same turn on a 200-message thread | 14.1 ms | 8.1 ms | 1.75x |
| `bench` `react_agent_100x`, sync | 319 ms | 53 ms | 6.0x |
| `bench` `react_agent_100x`, async | 390 ms | 126 ms | 3.1x |

The saving is the cost of that `repr()`, so it grows with the size of
the history.

Thanks @deadstrobe5, who reported this in #9328 and proposed the same
change in #9329.

## Test plan
- [x] Behavior is unchanged: the same `ValueError` with the same text
when the input has no messages. The `create_react_agent` tests in
`libs/prebuilt` cover the call path.
2026-11-12 18:53:53 -05:00
Richard Scarrott a054ed08dc release(langgraph): 1.2.21 (#9683)
Bumps langgraph from 1.2.20 to 1.2.21.

Includes:

- Read a checkpoint namespace the graph doesn't declare, such as a
deepagents subagent's `tools:<task_id>`, with the parent graph instead
of raising `Subgraph tools not found`. The Python Agent Server no longer
returns 400 on `/history?checkpoint_ns=...` for these. Updates to such a
namespace still raise (#9614)
- Match whole namespace segments in `get_subgraphs` / `aget_subgraphs`.
With `namespace=` and `recurse=True` they now yield only the subgraph at
that namespace, and so does the Agent Server's `GET
/assistants/{id}/subgraphs/{namespace}?recurse=true` (#9615)
- Say each `interrupt()` call has its own id in the
`UnknownInterruptError` docstring (#9600)
2026-11-12 17:47:18 +00:00
54 changed files with 2168 additions and 380 deletions

No files matched your search

+1 -1
View File
@@ -279,7 +279,7 @@ wheels = [
[[package]]
name = "langgraph-checkpoint"
version = "4.3.1"
version = "4.3.2"
source = { editable = "../checkpoint" }
dependencies = [
{ name = "langchain-core" },
@@ -2,7 +2,7 @@ from __future__ import annotations
import threading
from collections import defaultdict
from collections.abc import Iterator, Mapping, Sequence
from collections.abc import Generator, Iterator, Mapping, Sequence
from contextlib import contextmanager
from typing import Any, cast
@@ -68,7 +68,7 @@ class PostgresSaver(BasePostgresSaver):
@contextmanager
def from_conn_string(
cls, conn_string: str, *, pipeline: bool = False
) -> Iterator[PostgresSaver]:
) -> Generator[PostgresSaver, None, None]:
"""Create a new PostgresSaver instance from a connection string.
Args:
@@ -474,7 +474,9 @@ class PostgresSaver(BasePostgresSaver):
_execute(cur, _keep_latest(thread_id))
@contextmanager
def _cursor(self, *, pipeline: bool = False) -> Iterator[Cursor[DictRow]]:
def _cursor(
self, *, pipeline: bool = False
) -> Generator[Cursor[DictRow], None, None]:
"""Create a database cursor as a context manager.
Args:
@@ -1,6 +1,6 @@
"""Shared async utility functions for the Postgres checkpoint & storage classes."""
from collections.abc import AsyncIterator
from collections.abc import AsyncGenerator
from contextlib import asynccontextmanager
from psycopg import AsyncConnection
@@ -13,7 +13,7 @@ Conn = AsyncConnection[DictRow] | AsyncConnectionPool[AsyncConnection[DictRow]]
@asynccontextmanager
async def get_connection(
conn: Conn,
) -> AsyncIterator[AsyncConnection[DictRow]]:
) -> AsyncGenerator[AsyncConnection[DictRow], None]:
if isinstance(conn, AsyncConnection):
yield conn
elif isinstance(conn, AsyncConnectionPool):
@@ -1,6 +1,6 @@
"""Shared utility functions for the Postgres checkpoint & storage classes."""
from collections.abc import Iterator
from collections.abc import Generator
from contextlib import contextmanager
from psycopg import Connection
@@ -11,7 +11,7 @@ Conn = Connection[DictRow] | ConnectionPool[Connection[DictRow]]
@contextmanager
def get_connection(conn: Conn) -> Iterator[Connection[DictRow]]:
def get_connection(conn: Conn) -> Generator[Connection[DictRow], None, None]:
if isinstance(conn, Connection):
yield conn
elif isinstance(conn, ConnectionPool):
@@ -2,8 +2,8 @@ from __future__ import annotations
import asyncio
from collections import defaultdict
from collections.abc import AsyncIterator, Iterator, Mapping, Sequence
from contextlib import asynccontextmanager
from collections.abc import AsyncGenerator, AsyncIterator, Iterator, Mapping, Sequence
from contextlib import asynccontextmanager, nullcontext
from typing import Any, cast
from langchain_core.runnables import RunnableConfig
@@ -73,7 +73,7 @@ class AsyncPostgresSaver(BasePostgresSaver):
*,
pipeline: bool = False,
serde: SerializerProtocol | None = None,
) -> AsyncIterator[AsyncPostgresSaver]:
) -> AsyncGenerator[AsyncPostgresSaver, None]:
"""Create a new AsyncPostgresSaver instance from a connection string.
Args:
@@ -417,7 +417,7 @@ class AsyncPostgresSaver(BasePostgresSaver):
@asynccontextmanager
async def _cursor(
self, *, pipeline: bool = False
) -> AsyncIterator[AsyncCursor[DictRow]]:
) -> AsyncGenerator[AsyncCursor[DictRow], None]:
"""Create a database cursor as a context manager.
Args:
@@ -425,7 +425,12 @@ class AsyncPostgresSaver(BasePostgresSaver):
Will be applied regardless of whether the AsyncPostgresSaver instance was initialized with a pipeline.
If pipeline mode is not supported, will fall back to using transaction context manager.
"""
async with self.lock, _ainternal.get_connection(self.conn) as conn:
# A pool hands each call its own connection, so only a shared one needs
# the lock.
lock = (
nullcontext() if isinstance(self.conn, AsyncConnectionPool) else self.lock
)
async with lock, _ainternal.get_connection(self.conn) as conn:
if self.pipe:
# a connection in pipeline mode can be used concurrently
# in multiple threads/coroutines, but only one cursor can be
@@ -594,7 +599,11 @@ class AsyncPostgresSaver(BasePostgresSaver):
if value["parent_checkpoint_id"]
else None
),
await asyncio.to_thread(self._load_writes, value["pending_writes"]),
(
await asyncio.to_thread(self._load_writes, value["pending_writes"])
if value["pending_writes"]
else []
),
)
def list(
@@ -1,7 +1,7 @@
import asyncio
import threading
import warnings
from collections.abc import AsyncIterator, Iterator, Sequence
from collections.abc import AsyncGenerator, AsyncIterator, Generator, Iterator, Sequence
from contextlib import asynccontextmanager, contextmanager
from typing import Any
@@ -210,7 +210,7 @@ class ShallowPostgresSaver(BasePostgresSaver):
@contextmanager
def from_conn_string(
cls, conn_string: str, *, pipeline: bool = False
) -> Iterator["ShallowPostgresSaver"]:
) -> Generator["ShallowPostgresSaver", None, None]:
"""Create a new ShallowPostgresSaver instance from a connection string.
Args:
@@ -484,7 +484,9 @@ class ShallowPostgresSaver(BasePostgresSaver):
)
@contextmanager
def _cursor(self, *, pipeline: bool = False) -> Iterator[Cursor[DictRow]]:
def _cursor(
self, *, pipeline: bool = False
) -> Generator[Cursor[DictRow], None, None]:
"""Create a database cursor as a context manager.
Args:
@@ -574,7 +576,7 @@ class AsyncShallowPostgresSaver(BasePostgresSaver):
*,
pipeline: bool = False,
serde: SerializerProtocol | None = None,
) -> AsyncIterator["AsyncShallowPostgresSaver"]:
) -> AsyncGenerator["AsyncShallowPostgresSaver", None]:
"""Create a new AsyncShallowPostgresSaver instance from a connection string.
Args:
@@ -823,7 +825,7 @@ class AsyncShallowPostgresSaver(BasePostgresSaver):
@asynccontextmanager
async def _cursor(
self, *, pipeline: bool = False
) -> AsyncIterator[AsyncCursor[DictRow]]:
) -> AsyncGenerator[AsyncCursor[DictRow], None]:
"""Create a database cursor as a context manager.
Args:
@@ -2,7 +2,7 @@ from __future__ import annotations
import asyncio
import logging
from collections.abc import AsyncIterator, Callable, Iterable, Sequence
from collections.abc import AsyncGenerator, Callable, Iterable, Sequence
from contextlib import asynccontextmanager
from types import TracebackType
from typing import Any, cast
@@ -182,7 +182,7 @@ class AsyncPostgresStore(AsyncBatchedBaseStore, BasePostgresStore[_ainternal.Con
pool_config: PoolConfig | None = None,
index: PostgresIndexConfig | None = None,
ttl: TTLConfig | None = None,
) -> AsyncIterator[AsyncPostgresStore]:
) -> AsyncGenerator[AsyncPostgresStore, None]:
"""Create a new AsyncPostgresStore instance from a connection string.
Args:
@@ -413,7 +413,14 @@ class AsyncPostgresStore(AsyncBatchedBaseStore, BasePostgresStore[_ainternal.Con
) -> None:
# Keep `conn` for compatibility with subclasses overriding this private hook.
# All database I/O goes through `_cursor()`, which owns connection acquisition.
async with self._cursor(pipeline=True) as cur:
# A lone read is one statement: outside a pipeline it costs one round
# trip instead of two (its fetch, then the Sync on leaving the pipeline).
lone_read = (
not self.pipe
and PutOp not in grouped_ops
and sum(map(len, grouped_ops.values())) == 1
)
async with self._cursor(pipeline=not lone_read) as cur:
if GetOp in grouped_ops:
await self._batch_get_ops(
cast(Sequence[tuple[int, GetOp]], grouped_ops[GetOp]),
@@ -543,7 +550,7 @@ class AsyncPostgresStore(AsyncBatchedBaseStore, BasePostgresStore[_ainternal.Con
@asynccontextmanager
async def _cursor(
self, *, pipeline: bool = False
) -> AsyncIterator[AsyncCursor[DictRow]]:
) -> AsyncGenerator[AsyncCursor[DictRow], None]:
"""Create a database cursor as a context manager.
Args:
@@ -7,7 +7,7 @@ import logging
import re
import threading
from collections import defaultdict
from collections.abc import Callable, Iterable, Iterator, Mapping, Sequence
from collections.abc import Callable, Generator, Iterable, Mapping, Sequence
from contextlib import contextmanager
from datetime import datetime
from typing import (
@@ -789,7 +789,7 @@ class PostgresStore(BaseStore, BasePostgresStore[_pg_internal.Conn]):
pool_config: PoolConfig | None = None,
index: PostgresIndexConfig | None = None,
ttl: TTLConfig | None = None,
) -> Iterator[PostgresStore]:
) -> Generator[PostgresStore, None, None]:
"""Create a new PostgresStore instance from a connection string.
Args:
@@ -940,7 +940,9 @@ class PostgresStore(BaseStore, BasePostgresStore[_pg_internal.Conn]):
self.stop_ttl_sweeper(timeout=0.1)
@contextmanager
def _cursor(self, *, pipeline: bool = False) -> Iterator[Cursor[DictRow]]:
def _cursor(
self, *, pipeline: bool = False
) -> Generator[Cursor[DictRow], None, None]:
"""Create a database cursor as a context manager.
Args:
@@ -977,14 +979,19 @@ class PostgresStore(BaseStore, BasePostgresStore[_pg_internal.Conn]):
):
yield cur
else:
with conn.cursor(binary=True, row_factory=dict_row) as cur:
# Lone reads land here, so take the lock like the pipeline branch:
# another thread may be holding this connection in a pipeline.
with self.lock, conn.cursor(binary=True, row_factory=dict_row) as cur:
yield cur
def batch(self, ops: Iterable[Op]) -> list[Result]:
grouped_ops, num_ops = _group_ops(ops)
results: list[Result] = [None] * num_ops
with self._cursor(pipeline=True) as cur:
# A lone read is one statement: outside a pipeline it costs one round
# trip instead of two (its fetch, then the Sync on leaving the pipeline).
lone_read = num_ops == 1 and PutOp not in grouped_ops and not self.pipe
with self._cursor(pipeline=not lone_read) as cur:
if GetOp in grouped_ops:
self._batch_get_ops(
cast(Sequence[tuple[int, GetOp]], grouped_ops[GetOp]), results, cur
+1 -1
View File
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project]
name = "langgraph-checkpoint-postgres"
version = "3.2.0"
version = "3.2.1"
description = "Library with a Postgres implementation of LangGraph checkpoint saver."
authors = []
requires-python = ">=3.10"
@@ -1,5 +1,6 @@
# type: ignore
import asyncio
from contextlib import asynccontextmanager
from typing import Any
from uuid import uuid4
@@ -417,3 +418,33 @@ async def test_delta_channel_chain_reconstruction(saver_name: str) -> None:
assert msgs[1].content == "reply-1"
assert msgs[2].content == "there"
assert msgs[3].content == "reply-3"
async def test_pool_saver_reads_while_a_list_is_open(test_data) -> None:
async with _pool_saver() as saver:
config = await saver.aput(
test_data["configs"][0],
test_data["checkpoints"][0],
test_data["metadata"][0],
{},
)
listing = saver.alist(None)
try:
assert await anext(listing) is not None
assert await asyncio.wait_for(saver.aget_tuple(config), timeout=5)
finally:
await listing.aclose()
async def test_base_saver_serializes_concurrent_calls(test_data) -> None:
async with _base_saver() as saver:
config = await saver.aput(
test_data["configs"][0],
test_data["checkpoints"][0],
test_data["metadata"][0],
{},
)
await asyncio.gather(
*(saver.aput_writes(config, [("x", i)], str(uuid4())) for i in range(20)),
*(saver.aget_tuple(config) for _ in range(20)),
)
@@ -2,6 +2,7 @@
from __future__ import annotations
import re
import threading
import time
from contextlib import contextmanager
from typing import Any
@@ -289,6 +290,30 @@ def test_basic_store_ops(store) -> None:
assert deleted_item is None
def test_lone_reads_and_puts_share_a_connection(store: PostgresStore) -> None:
errors: list[BaseException] = []
def run(op: Any) -> None:
try:
for i in range(100):
op(i)
except BaseException as e:
errors.append(e)
def read(i: int) -> None:
store.get(("race",), f"k{i % 10}")
def write(i: int) -> None:
store.put(("race",), f"k{i % 10}", {"i": i})
threads = [threading.Thread(target=run, args=(op,)) for op in [read, write] * 4]
for t in threads:
t.start()
for t in threads:
t.join()
assert errors == []
def test_list_namespaces(store) -> None:
# Create test data with various namespaces
test_namespaces = [
+110 -116
View File
@@ -1,5 +1,5 @@
version = 1
revision = 3
revision = 5
requires-python = ">=3.10"
resolution-markers = [
"python_full_version >= '3.15'",
@@ -278,7 +278,7 @@ wheels = [
[[package]]
name = "langgraph-checkpoint"
version = "4.3.1"
version = "4.3.2"
source = { editable = "../checkpoint" }
dependencies = [
{ name = "langchain-core" },
@@ -353,7 +353,7 @@ test = [
[[package]]
name = "langgraph-checkpoint-postgres"
version = "3.2.0"
version = "3.2.1"
source = { editable = "." }
dependencies = [
{ name = "langgraph-checkpoint" },
@@ -453,74 +453,68 @@ wheels = [
[[package]]
name = "orjson"
version = "3.12.0"
version = "3.13.0"
source = { registry = "https://pypi.org/simple" }
sdist = { url = "https://files.pythonhosted.org/packages/0f/f3/742fb1f62b825f2c010697eaf4e828004bc2a81e7e806666989c132c7c42/orjson-3.12.0.tar.gz", hash = "sha256:d14203fb1aae2ad9b3d52f8a0e82aeb10197ef1c9bc61da7f358bd70b00123d5", size = 4142915, upload-time = "2026-08-14T16:13:30.607Z" }
sdist = { url = "https://files.pythonhosted.org/packages/f2/72/380b97dc45bd162d23afe5194721ef678d9eac7cfaa549fe2873f7f0a518/orjson-3.13.0.tar.gz", hash = "sha256:d1de5eb04485110c5da4c657e49168995d55e076b1ce60f1a042e254f4186c4f", size = 2732604, upload-time = "2026-10-07T14:09:25.719Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/cf/35/819eeb4fa8ee676d38fdbb8213a76fd496f7dbbfdfafa89d34e02b22dfac/orjson-3.12.0-cp310-cp310-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:747843254519dd43b93eee3153a19e5a509334320c4d2f823ec879232db5c796", size = 224133, upload-time = "2026-08-14T16:12:00.607Z" },
{ url = "https://files.pythonhosted.org/packages/58/ab/d9221d4a2b085b073fcddc91728d490f20b9cf010c62c2f42371ab997695/orjson-3.12.0-cp310-cp310-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:7c2ad193c8004254f34b499f3bd2c80f043d10754aff2b38f93da574f4883f98", size = 113669, upload-time = "2026-08-14T16:12:02.126Z" },
{ url = "https://files.pythonhosted.org/packages/15/12/644cbbcabb26df61d9ef0c66e6f2bf8b687cc7b66137597f2858951f1952/orjson-3.12.0-cp310-cp310-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:bc7a872f03522d90e0429e6c0c5cd23084f767bedcb4c58048eec19294613344", size = 130410, upload-time = "2026-08-14T16:12:03.503Z" },
{ url = "https://files.pythonhosted.org/packages/14/6d/e3a8c34d687895aecd8b267a01c46106eb98d8424a83bfa7bacb723854f6/orjson-3.12.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:18a87929f31d94a77f7dc93cf527e91f39ce7fe7813d588a4de2507efd32a387", size = 131101, upload-time = "2026-08-14T16:12:04.918Z" },
{ url = "https://files.pythonhosted.org/packages/75/20/930824c07685c22af23f26818ed3853b0270488a412b6ab757904b7f787b/orjson-3.12.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e9683ee9ea0659da64f36574ef675b8a86330c34c19ea75db1fb93c3ff99e0ef", size = 131479, upload-time = "2026-08-14T16:12:06.11Z" },
{ url = "https://files.pythonhosted.org/packages/4c/a6/22e863bbbe8917aa292e33e0db597000f9a07eb5e6f52efed623fa16bae1/orjson-3.12.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:103b5db66aa53c1f9e88c2524be4f383e831ba7dfd5f9f5af6336a177c622f11", size = 135865, upload-time = "2026-08-14T16:12:07.392Z" },
{ url = "https://files.pythonhosted.org/packages/50/a0/ceb5008914a65e9a19a46a09d94bc67a74d120209fdfa772750023ceb377/orjson-3.12.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:bd57d79aefa3f84eec851d6de7a366795b9345cfaf17f82b4820430a7a5fa241", size = 127843, upload-time = "2026-08-14T16:12:08.607Z" },
{ url = "https://files.pythonhosted.org/packages/12/3d/61c6b3b84c250cb09cb7229701ff77e4d763773ad7f577d0b6abf2892664/orjson-3.12.0-cp310-cp310-win32.whl", hash = "sha256:3dbce9b6b3074b31a5d5dd322a9c4e5b16f206091ece4194c2e36952847a105e", size = 128293, upload-time = "2026-08-14T16:12:09.819Z" },
{ url = "https://files.pythonhosted.org/packages/ce/0e/ea0f4a563253b6363195a4f704123c6bfbf156641bd3be5a75de81c5e917/orjson-3.12.0-cp310-cp310-win_amd64.whl", hash = "sha256:3bb17a06f9bd15237b3216c044209fe92597379124018cfc196fbb846cde64df", size = 122216, upload-time = "2026-08-14T16:12:11.261Z" },
{ url = "https://files.pythonhosted.org/packages/75/1a/a7075a8e8b0d3f5097d17ac3099017104b6b7b42012041147995d5b2da05/orjson-3.12.0-cp311-cp311-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:a94f0f0c6fcbb2b5bd9734c57a489c7584a732bbdf04a39e8c83b861e9d03e92", size = 223409, upload-time = "2026-08-14T16:12:12.654Z" },
{ url = "https://files.pythonhosted.org/packages/05/34/c2eb3b2900e5597db7841a4c6416ac2d90081bd956b02d4dd1833fa2b96b/orjson-3.12.0-cp311-cp311-macosx_15_0_arm64.whl", hash = "sha256:a696529ec96a90d9a5f9570207efe403c8b08f8e4aa2783ee3403511e2fdfa10", size = 124015, upload-time = "2026-08-14T16:12:14.025Z" },
{ url = "https://files.pythonhosted.org/packages/1c/df/b49081766a75b6a37b3d33bdc0a39e492abab8441dd25e3e1998e7b83fcb/orjson-3.12.0-cp311-cp311-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:e4ac5059baab4b3acbd99485de019ff8cda0fdf34b61fa74f7197a53db78bfe8", size = 113471, upload-time = "2026-08-14T16:12:15.81Z" },
{ url = "https://files.pythonhosted.org/packages/48/d4/58ea28eeef95c2a27358ed927380a621162cf20bd740bbccf9c3f09a200a/orjson-3.12.0-cp311-cp311-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:8e29957429c35bbb5a185a119c523aa2428b7bbf1a293724c7b9375ed8f892a3", size = 129998, upload-time = "2026-08-14T16:12:17.503Z" },
{ url = "https://files.pythonhosted.org/packages/e2/f4/1e82aa2efc9916422d804697876ce433c907a1abd7c7e5c6d3d48565e5f9/orjson-3.12.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:dce0166feb0a737ab84f598c9a338cbc0b764a036617aa686194f53c7eba0c3e", size = 130891, upload-time = "2026-08-14T16:12:18.762Z" },
{ url = "https://files.pythonhosted.org/packages/5b/e1/15169e9d22b59a406264f99d6db387c0b0b12b6357a8a0169917c2a713eb/orjson-3.12.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9caf3d09f47c3c70c4451ada20ef9bc4a4cdffa26f49862cf0a253b329aae2d5", size = 131285, upload-time = "2026-08-14T16:12:20.251Z" },
{ url = "https://files.pythonhosted.org/packages/a4/3a/763dbd426290d044ec3e615a05e70adb6d8b6f95bf17dc355c0081a5e8b6/orjson-3.12.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:b9dca132b1fda5565088e65a6b6e742285e0aeceb6fae549fa8863e16c7d3998", size = 135707, upload-time = "2026-08-14T16:12:21.652Z" },
{ url = "https://files.pythonhosted.org/packages/04/d1/3b2038ed168d22e14182ed715d6963f9c073a83a2ba43cfe918a4fc43c64/orjson-3.12.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:a791f793b287bbc135b8e87c34e35c8bfc693e2a8a620fab1ae682b925f9a32e", size = 127669, upload-time = "2026-08-14T16:12:22.926Z" },
{ url = "https://files.pythonhosted.org/packages/88/ae/b84b3d3e65f5629ada0edcb1d2bccc55d7c5f89d8b981537ecdc3d6f31ec/orjson-3.12.0-cp311-cp311-win32.whl", hash = "sha256:31ed278a36304390adc3eec5d7f6fd593a7c3e99e5a06cd07866396c4b1b4710", size = 128043, upload-time = "2026-08-14T16:12:24.367Z" },
{ url = "https://files.pythonhosted.org/packages/35/24/2ed0e6f51ea3d0af45d807233a851175af75bec83ef5fd0d6a2601904ec0/orjson-3.12.0-cp311-cp311-win_amd64.whl", hash = "sha256:fb2539159dfe8d371914f354360fa50e4a577cc89222a3828b9650a5e5040252", size = 122084, upload-time = "2026-08-14T16:12:25.813Z" },
{ url = "https://files.pythonhosted.org/packages/21/dd/95d25fcfbc9471799ef6bb01c552d64ee5cde93ee40ba2f423dd3442c708/orjson-3.12.0-cp311-cp311-win_arm64.whl", hash = "sha256:61318b6de893c7a9d9f3e5ecbadccbfc26a7eb417ccc7bbf0771de3b4d72f868", size = 127035, upload-time = "2026-08-14T16:12:27.201Z" },
{ url = "https://files.pythonhosted.org/packages/be/4a/295da39c651c2faac8bd351a2a346f0fdedd9d50b847ee9dfc27d2207ef6/orjson-3.12.0-cp312-cp312-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:aa3e43a6846e91d7bde3d5a9c66090fcd8744f569a9b6cffc5e1ca38f6a461c0", size = 223427, upload-time = "2026-08-14T16:12:28.525Z" },
{ url = "https://files.pythonhosted.org/packages/29/98/758cf90fbeaaafb7f8141bfac75a432099959f3a2f5db93a412e876415d8/orjson-3.12.0-cp312-cp312-macosx_15_0_arm64.whl", hash = "sha256:11edb4660a6680abee9788a3a9072208a2c96538cc1322bd79542065229d8e54", size = 123725, upload-time = "2026-08-14T16:12:30.013Z" },
{ url = "https://files.pythonhosted.org/packages/32/b5/5b934d251f8651f7e41df180ad0c57a6e1cabe15c7bd331638413a50ebc9/orjson-3.12.0-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:2d3a9da945a4d96ae758fdaaca56742e6b73b6fd554c5d8876f252a6dad70b83", size = 113375, upload-time = "2026-08-14T16:12:31.209Z" },
{ url = "https://files.pythonhosted.org/packages/cd/d2/37efb5b12a176ce3ced29f4144f20da57d02757f78ce549637dc1b4e1fc8/orjson-3.12.0-cp312-cp312-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:92ffc09e07233a6ab6d4e067f7841edcbcc134cb4812155cf171ea5255a421d7", size = 129983, upload-time = "2026-08-14T16:12:32.721Z" },
{ url = "https://files.pythonhosted.org/packages/50/22/0644b87c73f13e0092df8f35a1fe280d991e5e90072087411e0dd7e44e0c/orjson-3.12.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bf44e374aadde77b1f6109f1030be51433eb61984379852766b6f4e187db7b1e", size = 130629, upload-time = "2026-08-14T16:12:34.084Z" },
{ url = "https://files.pythonhosted.org/packages/8c/57/80b986ebfecd9c6a177ddf1c2319717f0cd8feffb2b78946595a18a2fc88/orjson-3.12.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1192a7021b6d071aaf909864f6e924d6a2675ca360485b972b8401749311750b", size = 131245, upload-time = "2026-08-14T16:12:35.713Z" },
{ url = "https://files.pythonhosted.org/packages/80/3d/75c5ac5a69161f44492a68fbdde66f4cc4ce48cd5e1fb05918e46f0c8848/orjson-3.12.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:53c0c474a9d9aff9aebfc0c88de1f28f843d940e6e3a80729abdf6a20274356f", size = 135397, upload-time = "2026-08-14T16:12:37.128Z" },
{ url = "https://files.pythonhosted.org/packages/71/93/4d71f2df314a97ff0d27a4559bf5888fc8406e3c6dec90e92291e3511215/orjson-3.12.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:532ff8cd4bd59a327a953a7dcde922c7fc25b85e29721bb8633265430d3a3873", size = 127693, upload-time = "2026-08-14T16:12:38.627Z" },
{ url = "https://files.pythonhosted.org/packages/bc/1d/0dbc6be5adfd1730491072fb60beb6bcdf5d7b2596ee41b7fc2e298bfc09/orjson-3.12.0-cp312-cp312-win32.whl", hash = "sha256:a6cf4b18e7de173f209f2084ffbd736dd72389a396326ee80a7022168be232e5", size = 128000, upload-time = "2026-08-14T16:12:39.954Z" },
{ url = "https://files.pythonhosted.org/packages/2d/c9/97b1ce0112ebf5e949c775ed5b1755e562233179f3584579673cc24d6378/orjson-3.12.0-cp312-cp312-win_amd64.whl", hash = "sha256:010811c1b69773450a01cef97727a67b223242f350b77d4ca000e59a9ef2155a", size = 122106, upload-time = "2026-08-14T16:12:41.324Z" },
{ url = "https://files.pythonhosted.org/packages/a8/6a/facd8b312e4a0d3a7fa978c7e15821f74a336adf1d65529faec33b48e18b/orjson-3.12.0-cp312-cp312-win_arm64.whl", hash = "sha256:ad29eece0c601737f2a60edc2752a84e7a0785df3efb62e3012834700a5afe0d", size = 126869, upload-time = "2026-08-14T16:12:42.651Z" },
{ url = "https://files.pythonhosted.org/packages/54/cb/d7b78218a987eb8a8ce4eeae0286b1bb679333eb631ea0eeaf6371680bfc/orjson-3.12.0-cp313-cp313-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:9a36ec60f1796f9a3f13e3b98390295e17a1c7c10155b448d264098bf9ee5900", size = 223397, upload-time = "2026-08-14T16:12:44.003Z" },
{ url = "https://files.pythonhosted.org/packages/f8/4a/bc87c45e7ec639d35ebefd62618e01939531ac8e171426606a01bda05914/orjson-3.12.0-cp313-cp313-macosx_15_0_arm64.whl", hash = "sha256:ad0422b92d5195443a39f80c3bcf731cc2e00f153bd32063a47b73b057bd0f03", size = 123662, upload-time = "2026-08-14T16:12:45.433Z" },
{ url = "https://files.pythonhosted.org/packages/94/ee/c9a4ff3f2dbedbbe9e635d0fa72c8866adede09b6335ef9644f53752f0d8/orjson-3.12.0-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:5a0fdbc216388f653d3752ff310e710f59253bd4ed6a2bfb3f4f06b84714bbd8", size = 113374, upload-time = "2026-08-14T16:12:46.755Z" },
{ url = "https://files.pythonhosted.org/packages/75/09/3f330a026a796c8b4c97a6f429652a5e912e7065039bf96ed25e42aa7b25/orjson-3.12.0-cp313-cp313-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:2eb5c56e534127b2b8fa38d2363c8b1b8190367ee0d1d16c041517d880843b94", size = 130029, upload-time = "2026-08-14T16:12:48.06Z" },
{ url = "https://files.pythonhosted.org/packages/7d/40/094cc53126a3d22f76cdf83b6ea67338bed01d774037621a785aa8e6e5ea/orjson-3.12.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:784106539f4b9d4b930e0b4eb8d45168507dae001945e71b4675a367f1e5e806", size = 130528, upload-time = "2026-08-14T16:12:49.362Z" },
{ url = "https://files.pythonhosted.org/packages/bc/74/89bb236deb9565f99434b13052bb40ddfcce4adf3afbfa3132ee7e421468/orjson-3.12.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1c680706fc8396d95e7c4c1f9482563f552137aef91b57237a3ad5aaf64629df", size = 131075, upload-time = "2026-08-14T16:12:50.692Z" },
{ url = "https://files.pythonhosted.org/packages/0c/ac/1176360d762c01b5bd34acd56fc098e936c491363d8b6b397ad4aa475547/orjson-3.12.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:83445adc40cba26d6d621185a45128ce455b766af368cad2ab64b970603a7978", size = 135321, upload-time = "2026-08-14T16:12:52.114Z" },
{ url = "https://files.pythonhosted.org/packages/7a/02/bbd881c8b9276d50b998de38b4e97de8ace1aac940b0ee545aedbf65ed00/orjson-3.12.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:644d005bc82f917337a95ce270c9f6f92f9834c2bed7b1477572f8db00784222", size = 127472, upload-time = "2026-08-14T16:12:53.517Z" },
{ url = "https://files.pythonhosted.org/packages/8e/02/a0934d7503e6dcbedd6afac3e7f3f8597fd09389949ad94d0f7540e9dbca/orjson-3.12.0-cp313-cp313-win32.whl", hash = "sha256:d8e78d3d93705e3d27cc17cdb209e44d7a8ea203010cac6ce9c7ffc1ae1996f1", size = 128000, upload-time = "2026-08-14T16:12:55.14Z" },
{ url = "https://files.pythonhosted.org/packages/52/87/69f98f8d40faff103a965a5fbb83f08241b01beaf92badb5413fbc9358cc/orjson-3.12.0-cp313-cp313-win_amd64.whl", hash = "sha256:b85931be5b6763c31283805c9bdaae1ca03ad9f6f12a15f1cbf6745b907932c2", size = 121841, upload-time = "2026-08-14T16:12:56.507Z" },
{ url = "https://files.pythonhosted.org/packages/e6/07/b83046a4e3cadcc0987d0f160696107c4af706a619b56e4ad01940cadadf/orjson-3.12.0-cp313-cp313-win_arm64.whl", hash = "sha256:6a31348d7dfa64cd9c78bd1f510ff44c48fe64d71094e6b90e364dba3b55949e", size = 126765, upload-time = "2026-08-14T16:12:57.806Z" },
{ url = "https://files.pythonhosted.org/packages/12/9d/3931253e6f3148abf2cbe14830367042a4806b362ea520df2303db188fb9/orjson-3.12.0-cp314-cp314-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:9e6fee342a48760e854d743e7a81534d8e2925a6f46e09f750cf56b50fd1de5d", size = 223391, upload-time = "2026-08-14T16:12:59.184Z" },
{ url = "https://files.pythonhosted.org/packages/8a/0e/b4a4f1e305367245877b967a0bad70fcf001d77c54ac4339a120b66fdae4/orjson-3.12.0-cp314-cp314-macosx_15_0_arm64.whl", hash = "sha256:8c3bb86dd10f39b3fbf434b7d5dc7cac77d6fc8ac572ae30a10731ede2c4b647", size = 123659, upload-time = "2026-08-14T16:13:00.548Z" },
{ url = "https://files.pythonhosted.org/packages/96/f3/6782c6fa85e2702bc66be183c3b421486167dcf266ee4dc1403fe3824870/orjson-3.12.0-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:2bb3ce43203936072dd8b4917b01d3aecfc02329bfb42510cb7cfb24708adc9c", size = 113337, upload-time = "2026-08-14T16:13:02.009Z" },
{ url = "https://files.pythonhosted.org/packages/bf/79/b32ab64bacda9d0fa4942ef483bd03cabf0eaf2be819ca9fb7ff610c559d/orjson-3.12.0-cp314-cp314-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:6a2a79c89984dc719817d388c8709e0efc2a2795a934eaa746b4882eb6045adc", size = 130112, upload-time = "2026-08-14T16:13:03.404Z" },
{ url = "https://files.pythonhosted.org/packages/ee/49/6e6142999ca01509219be5e5a9c338a3e5ea011f63e91ff473fbbf3734ed/orjson-3.12.0-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f06dd838d1e07d9b1de0932ec0485ec92c4d5f5d1ad4817a656268c3e88be1e1", size = 130520, upload-time = "2026-08-14T16:13:04.798Z" },
{ url = "https://files.pythonhosted.org/packages/49/d0/3745af0a4cc9867784f29722929cec4d10bd1c877cd754b01ba6d96eb21a/orjson-3.12.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c6b11be792c3d2c6a4be2af4ebf97a68d0bf5f580aca6e86a418a354f6cc846a", size = 131053, upload-time = "2026-08-14T16:13:06.14Z" },
{ url = "https://files.pythonhosted.org/packages/c3/f4/6fe5a22fa478fffb190e65c338c84df5c311ef597b363150a17cc57063c0/orjson-3.12.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:477ecaf6b9f88f873341b91fcc736119ca81b5e002a9f7f308ff5b4f2ce2a70e", size = 135321, upload-time = "2026-08-14T16:13:07.544Z" },
{ url = "https://files.pythonhosted.org/packages/ff/41/b1b0ec30289646a81a76e2dbaae2686b96fcccb7cb0323dc1dd78cbc7875/orjson-3.12.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:f3c0683136acdc29afdf88a5bc2f7d3d0e34087788d1d63c0144b805a87a196f", size = 127485, upload-time = "2026-08-14T16:13:08.88Z" },
{ url = "https://files.pythonhosted.org/packages/bf/2b/277404bdcc21c93b112b963655b76443ebfe828f8a3ff1de7d90f8850eb3/orjson-3.12.0-cp314-cp314-win32.whl", hash = "sha256:d39f3f5c3927e2dc0913fe5bbc1a2f6b1b9d1bba1de6358340d0ad0d0c00ca92", size = 128048, upload-time = "2026-08-14T16:13:10.305Z" },
{ url = "https://files.pythonhosted.org/packages/41/2b/395b36fa2b4ce7af70b651d715e88f80d884b2c2b14a6b53e84d554fb5f0/orjson-3.12.0-cp314-cp314-win_amd64.whl", hash = "sha256:0b1ac5bf6609b2716c7954011c5fef6254922df029f45d032ee4ebf5d363cbed", size = 121858, upload-time = "2026-08-14T16:13:11.634Z" },
{ url = "https://files.pythonhosted.org/packages/ea/a3/833e895ff452859eebe75093d26691fe9108f1a7a6a08435d7a5780ea652/orjson-3.12.0-cp314-cp314-win_arm64.whl", hash = "sha256:50fae885cb073eac7556353ff3df93312b0d5137b0a5056b2bb63f97ed9a93c7", size = 126749, upload-time = "2026-08-14T16:13:13.117Z" },
{ url = "https://files.pythonhosted.org/packages/58/64/99c8947ece10c17176af9aae85c4948f1d109da77440ec14d87239efaf73/orjson-3.12.0-cp315-cp315-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:01efac2074fffb4cb1ea3fab7861e9d0f2a26913854a972f5ac760525dbdaf6e", size = 223398, upload-time = "2026-08-14T16:13:14.694Z" },
{ url = "https://files.pythonhosted.org/packages/3e/30/cf983fe09f2731420fda097a9f7ef4343f47fa216c228961ad8f6da44f3d/orjson-3.12.0-cp315-cp315-macosx_15_0_arm64.whl", hash = "sha256:ed4ca42bd55955aa34deedcfdfd0e0c31abf51143aae158ae2bc3520b626e517", size = 123655, upload-time = "2026-08-14T16:13:16.221Z" },
{ url = "https://files.pythonhosted.org/packages/11/50/9cb8ae73fa4749dbbc20f617004213b5ff01c20aaeec34c3f31124f2c1d8/orjson-3.12.0-cp315-cp315-manylinux_2_39_aarch64.whl", hash = "sha256:40f92192227505acca4e2533ce565f8e6b9535f7d0d09b0968452f18b7376b38", size = 130515, upload-time = "2026-08-14T16:13:17.601Z" },
{ url = "https://files.pythonhosted.org/packages/9f/0a/adb6ce1a5b5fbf9cb1790f9961bb668a0dd5429aadaf6cee044724681795/orjson-3.12.0-cp315-cp315-manylinux_2_39_armv7l.whl", hash = "sha256:33efefcf5d88eaf400b47e2eba02f91f319bb9951be61ca500b7d536d3f2079d", size = 113327, upload-time = "2026-08-14T16:13:18.927Z" },
{ url = "https://files.pythonhosted.org/packages/51/5c/d17f61581d8dbdde7048f87a330fa24915edec38db4d72b381fec14fbb56/orjson-3.12.0-cp315-cp315-manylinux_2_39_i686.whl", hash = "sha256:8e386b0bc0ddd7cd2056f884b5a0af33592bd01ac66a7ca4b42a65a7e7774a13", size = 130105, upload-time = "2026-08-14T16:13:20.317Z" },
{ url = "https://files.pythonhosted.org/packages/9f/b7/938befcf33bee4704a92ecec6a2731224c539d939bf9429fd39396d28931/orjson-3.12.0-cp315-cp315-manylinux_2_39_x86_64.whl", hash = "sha256:58c58e1de0006ffb580368d6793c36c7b0b021db066479cf281bf5061e732328", size = 131049, upload-time = "2026-08-14T16:13:21.719Z" },
{ url = "https://files.pythonhosted.org/packages/b0/15/cfa2021d64d5aa8bb5c9f604ef375e00ec8b657651b5dd650b1b7ad13df1/orjson-3.12.0-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:08231552159be266a7269555bd9f7c016aee7d9ad6dab06eb58796c5ccb7101c", size = 135320, upload-time = "2026-08-14T16:13:23.415Z" },
{ url = "https://files.pythonhosted.org/packages/1a/50/3e75dfe357c1e8f9e287c7a5740260ef15bd23a5299eae8d0835dcad5375/orjson-3.12.0-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:a15f9a891bce5f5cc5d210e3ad8614d4d1b489a56448c099d6d2a7168b2d954a", size = 127488, upload-time = "2026-08-14T16:13:24.791Z" },
{ url = "https://files.pythonhosted.org/packages/11/a6/79aed402eb3ab284dc5b4791a7ad62c5875127de01b8e3f04bd92d551298/orjson-3.12.0-cp315-cp315-win32.whl", hash = "sha256:03091c8a64db4be38746597ceea68f33c238e27acd9bfe99fb59420224ae7a55", size = 128048, upload-time = "2026-08-14T16:13:26.217Z" },
{ url = "https://files.pythonhosted.org/packages/64/f7/2723e264aab7248c1ed6ecaad8e5d0cb866c0cffde75442102ffa7491aba/orjson-3.12.0-cp315-cp315-win_amd64.whl", hash = "sha256:2b7bcefb9f40fa242fa6b06377232c048e655747790829609168c01162f60578", size = 121860, upload-time = "2026-08-14T16:13:27.577Z" },
{ url = "https://files.pythonhosted.org/packages/82/56/630c9113ec8996778f1f0304b364b091b9a9db5fef5fdc17cca622f5ea24/orjson-3.12.0-cp315-cp315-win_arm64.whl", hash = "sha256:859fc4196855890150bb08e649b30d2c93b249b3e3edd0d3bb2231abf8aa8adc", size = 126754, upload-time = "2026-08-14T16:13:28.962Z" },
{ url = "https://files.pythonhosted.org/packages/11/8c/25b6e2bd4f6b8e67a6b5acbc11a8cff4970e35c79837a24ec7db8732238d/orjson-3.13.0-cp310-cp310-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:4f66eac85b072092e9941c3111882afd7527bf926cbc717038fa3654b582002b", size = 223510, upload-time = "2026-10-07T14:07:54.539Z" },
{ url = "https://files.pythonhosted.org/packages/32/4d/5772e32ebc19d0b76b957a48e69a09546400db35cebe76c21b2c341d1a30/orjson-3.13.0-cp310-cp310-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:efa160215c4630836d3b1250af4c7a305acd8239e0d75aff986b8088c2fcacb6", size = 113481, upload-time = "2026-10-07T14:07:56.229Z" },
{ url = "https://files.pythonhosted.org/packages/5a/6a/5ce6adad2c0cb734cb9d19b7b9d9c7bbdb16c136af453dd37adace806547/orjson-3.13.0-cp310-cp310-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:4e5c8175e1574dcbe446ee654275d353c1d78bbd9a0dc9f209bf35c9df72d171", size = 130791, upload-time = "2026-10-07T14:07:57.751Z" },
{ url = "https://files.pythonhosted.org/packages/96/49/d954f02229efb06850a5f9aaf06e77e03046a009d49eb78f499fbd798ded/orjson-3.13.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:78a12d4f8d740cc9ae197f5223682e5e960ba61b4fb2ce5a6a3bb54e83fde28e", size = 129465, upload-time = "2026-10-07T14:07:59.143Z" },
{ url = "https://files.pythonhosted.org/packages/2f/a2/abcb0647268f334cb85768170b164e4c97f7a2ed5fddd146f79297494d9e/orjson-3.13.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:93c70a5e22bbbbdeafc7b273441e8452a196041d67fd4d9a9c450c66370a8486", size = 130727, upload-time = "2026-10-07T14:08:00.659Z" },
{ url = "https://files.pythonhosted.org/packages/fa/b0/5672f0505e6cde410cc7916cc2fbf88d90216d667b37907df041a659db06/orjson-3.13.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:7b3bc6b81835ce65f4729ae401607583d41139c6de95bc7453f450f1391d3e7b", size = 135280, upload-time = "2026-10-07T14:08:02.167Z" },
{ url = "https://files.pythonhosted.org/packages/d9/58/c223e3ac16193d00c1c3cbc786cb6db47158bff0558c52133e6dd0be7a12/orjson-3.13.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:6d0684895b119ad167fb4ec05113639dc7f728022deec4756a710e838ed92e7a", size = 126844, upload-time = "2026-10-07T14:08:03.549Z" },
{ url = "https://files.pythonhosted.org/packages/49/a2/f6fd98acef1e36b8c8ae0275f0268a0f22bb6a1b436ee4536e1cdaf31b03/orjson-3.13.0-cp310-cp310-win_amd64.whl", hash = "sha256:7991921c5da527a963b6d4cffd0e4ea89c7e71d4be0c8be1bfe6edb223ce7d96", size = 121455, upload-time = "2026-10-07T14:08:05.024Z" },
{ url = "https://files.pythonhosted.org/packages/ce/a3/0be3b115907fea61ed340639fb0e1562cd18969bad5b3f486f808197aaff/orjson-3.13.0-cp311-cp311-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:948bad47f2e2e43527f14248364a0e5dee26dd3184691010ec4a1ebeb0fd6771", size = 223146, upload-time = "2026-10-07T14:08:06.474Z" },
{ url = "https://files.pythonhosted.org/packages/9e/f7/665935edb16163f8b764182e29a30cf056947a66893ed032191e5f01eb3d/orjson-3.13.0-cp311-cp311-macosx_15_0_arm64.whl", hash = "sha256:1807c2fa49d393c7ee95fd1ef1b39cbb24aa3ccd81f30b84503ba59407666960", size = 123546, upload-time = "2026-10-07T14:08:08.324Z" },
{ url = "https://files.pythonhosted.org/packages/67/ec/e7cde480c0e212594d17ba2b2bd210c002052e9147fc1a1aeafaabe722fb/orjson-3.13.0-cp311-cp311-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:637dbca1fccffe83780e806fbc0f17427c0c59bf822528eb0acc8f0aa9f19acb", size = 113290, upload-time = "2026-10-07T14:08:09.816Z" },
{ url = "https://files.pythonhosted.org/packages/36/59/4455fb11a297af73611dfc437f0f89456220227ed1cb1544a5a0ee9d6c03/orjson-3.13.0-cp311-cp311-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:554948becd1110123ef9f6a6e1310fd92b2d07d2cbac6dbf65df3de75702e736", size = 130342, upload-time = "2026-10-07T14:08:11.253Z" },
{ url = "https://files.pythonhosted.org/packages/ca/80/0eec5fbde2e52407646b4cb3118f63175bdcee1e2390c2759dc96e0bc62a/orjson-3.13.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:dd9d9a101bd8dbfad112170f009cd155e52bb8c936468821a0d03cbb96c0e426", size = 129138, upload-time = "2026-10-07T14:08:12.814Z" },
{ url = "https://files.pythonhosted.org/packages/cd/cc/c0874f13819ae346d69ca00d074d464710b494abd4442bdebf75ac404a98/orjson-3.13.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:89bcf2d4bc6c9a7e1763c8cf534f38712e66b76a0fefda7fb7785462f0d635e4", size = 130518, upload-time = "2026-10-07T14:08:14.392Z" },
{ url = "https://files.pythonhosted.org/packages/25/ab/140dd9adff84bf64b862c4fcfe2d055af6014d5ba03a075f95c9addb2ec7/orjson-3.13.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:a79cdc4934fe81f593072c94e13da3095e9d41c2deef8f6ff2901794ca1c5042", size = 134924, upload-time = "2026-10-07T14:08:16.09Z" },
{ url = "https://files.pythonhosted.org/packages/08/0a/e8f6deb032b1d98a39043cf99b863d8b9e842e2ffc2d2067d2e2a88c18e4/orjson-3.13.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:50a5202ba388b3850ba24437951727d3aa6d79a21964a30ae8dc6a059a5fd34c", size = 126704, upload-time = "2026-10-07T14:08:17.439Z" },
{ url = "https://files.pythonhosted.org/packages/af/cf/be64b99ff75f7983488390d4ef5df72115119770eed295691c0a715d492a/orjson-3.13.0-cp311-cp311-win_amd64.whl", hash = "sha256:a0377d6962fa431c93ecd78fdea771bb62ec545b24ee0c5d4e32acf2260af259", size = 121287, upload-time = "2026-10-07T14:08:18.843Z" },
{ url = "https://files.pythonhosted.org/packages/ca/ab/1b8ca186baf3420f12db1f2819fcc5f2cae69e4cf051168501726a64c0fa/orjson-3.13.0-cp311-cp311-win_arm64.whl", hash = "sha256:1d84820b2ec4ac975cba482214032de5b0dbdd17046170c98e642ef9c4a4ee4b", size = 126314, upload-time = "2026-10-07T14:08:20.452Z" },
{ url = "https://files.pythonhosted.org/packages/98/17/ed65f84ed5ed6a1e06eb628611b4172e7480fc4ad92594856751a6363cac/orjson-3.13.0-cp312-cp312-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:fb8644dc6d705e1269ed2842bf4dbe2b4e50d670de503bf79d5cef3a5148a4c7", size = 223063, upload-time = "2026-10-07T14:08:21.979Z" },
{ url = "https://files.pythonhosted.org/packages/6f/4d/9332eb96d2e379384be0f211f543835eebc81f460c9403b84abe1294c431/orjson-3.13.0-cp312-cp312-macosx_15_0_arm64.whl", hash = "sha256:6ff2a2c67f35202f7d823753d38ad371a9b7fc297567cdfff4420e763cb9f6f8", size = 123364, upload-time = "2026-10-07T14:08:24.026Z" },
{ url = "https://files.pythonhosted.org/packages/b4/06/558456b7da27e974a8c9ea09117b07119f6fa131cd62b8b9ecad9eea94e1/orjson-3.13.0-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:65c4e0e106ccc7265b488385659117a6805c37d042f737558ecd68aa0c67ad8f", size = 113199, upload-time = "2026-10-07T14:08:25.476Z" },
{ url = "https://files.pythonhosted.org/packages/b7/f2/1187a9c09965620348262ec0f406868f6d7c234b2e9b5ee51020bdde5748/orjson-3.13.0-cp312-cp312-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:fbbad6b9b1da43f25c1f5b20cd5a268e028a2fc95d5a8d1ade6059973bc71584", size = 130329, upload-time = "2026-10-07T14:08:26.877Z" },
{ url = "https://files.pythonhosted.org/packages/46/07/5d1a151bc11600434fe799e73abfc6a4d463d02e149a20e47c59d3a985ae/orjson-3.13.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ae1d895cf7bbfd50ef34bb63bb727b14514f259f3e3f8dd010783bd38e864c6e", size = 129072, upload-time = "2026-10-07T14:08:28.355Z" },
{ url = "https://files.pythonhosted.org/packages/ea/8c/bb07c368abbf4021c4cd01c12edb526e00090f7f750ff1b88da6e6b6c7a6/orjson-3.13.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bceadfd314bd238f584fc229a4bbaf0e573597e7a026dec5429fbf29fd66c641", size = 130612, upload-time = "2026-10-07T14:08:30.041Z" },
{ url = "https://files.pythonhosted.org/packages/d2/8d/4b66d19619ed344ac000ffea7c006477d0061d580646e736ef0e203759e8/orjson-3.13.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:b74c30e56346aad067937d766846ee74c231d1d18aad3f324e9b9261de3b2d5e", size = 134632, upload-time = "2026-10-07T14:08:31.474Z" },
{ url = "https://files.pythonhosted.org/packages/ea/88/f8221f6593e37eb26ec4706e185b9ac6f38ff0c8f7bad5459844031ffd2d/orjson-3.13.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:4329c19b8a25693f60a77b867c9d2a3ab637b20e36f5b7bea7f5acb492b44b15", size = 126807, upload-time = "2026-10-07T14:08:32.914Z" },
{ url = "https://files.pythonhosted.org/packages/58/9d/a1ca7321eeafd7d72e174cdc388cc96301f41516d863e7b1f64f0a1735be/orjson-3.13.0-cp312-cp312-win_amd64.whl", hash = "sha256:b571236d8393edcd3236e07423f762bfcf571f852aad667a3bce9e7b755e0790", size = 121538, upload-time = "2026-10-07T14:08:34.325Z" },
{ url = "https://files.pythonhosted.org/packages/d0/a0/1f19b4779c910104370932fceb9ed436b47ac077f297db74008062525c04/orjson-3.13.0-cp312-cp312-win_arm64.whl", hash = "sha256:8594956a75223f657e1e68c568c0eeb3dd145f02cd6b78a47fd9a8095dbc4eae", size = 126259, upload-time = "2026-10-07T14:08:35.765Z" },
{ url = "https://files.pythonhosted.org/packages/a9/56/f8ad2546150168858c16915c452b00eecb79597597524d1ad6ae14ad4eab/orjson-3.13.0-cp313-cp313-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:64e8f345048d988c8b68d3882e5d41028fca1219a9939b32e4a77be34c8ae8e3", size = 222892, upload-time = "2026-10-07T14:08:37.495Z" },
{ url = "https://files.pythonhosted.org/packages/1f/19/725d23160b2471a3f27026c55bb79af34687652d8be8f5f583cee5dcd42f/orjson-3.13.0-cp313-cp313-macosx_15_0_arm64.whl", hash = "sha256:ded33b972cffdaf4ca0ac917338ab61d2bb10d68987dbcae641c313fbfdbf499", size = 123319, upload-time = "2026-10-07T14:08:38.989Z" },
{ url = "https://files.pythonhosted.org/packages/ac/08/e5d81a00b22c73dfcb60d80da3bd92d5a7684346593536565f184dbae3c9/orjson-3.13.0-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:45e34deb3437509f4ec9888dd9ee5dc426cfe21be10f1eb4ea3a9e4d33034f9e", size = 113196, upload-time = "2026-10-07T14:08:40.383Z" },
{ url = "https://files.pythonhosted.org/packages/67/78/fda6117c69a43e470b1e9dff38dd8c5f0bc6fd8a47e4d4561ab023039335/orjson-3.13.0-cp313-cp313-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:9825b954155b345c4759f24e5f8d652b9aec2261bb5d4e1abe06bba0a1200535", size = 130245, upload-time = "2026-10-07T14:08:41.878Z" },
{ url = "https://files.pythonhosted.org/packages/6d/31/d0cfebd456defb234414795ae7599696bf124843dfe077d0c9ece0c93554/orjson-3.13.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b081f0e7b600ff24513dec4ca75507fa05e904607847e386e8310d5b7b96b6c7", size = 128981, upload-time = "2026-10-07T14:08:43.716Z" },
{ url = "https://files.pythonhosted.org/packages/45/46/f8d83189ff5b7b2ff225a58c5908618cc4e86afe09e65d17a30ac68c9da4/orjson-3.13.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:cbed5f4c4b88d94bcc36115f4c3bb3aa25da1563a5c3328aa3acebce2b083040", size = 130370, upload-time = "2026-10-07T14:08:45.132Z" },
{ url = "https://files.pythonhosted.org/packages/e6/6a/d6344c305003ea826b3fa0482645a897a3cd6d477ed74e1fe15d3322cb23/orjson-3.13.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:e9b61676116f755126b90e740a9cff36b91562f47ec330056cc88cc3b9f02f4b", size = 134595, upload-time = "2026-10-07T14:08:46.63Z" },
{ url = "https://files.pythonhosted.org/packages/9f/52/d73fa44f88d53e02d10de1cf77c16ed13204ff5bca47e1692da6b406619c/orjson-3.13.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:3ef75ed7e81dae34a3649f82df52cd85f9ac839a7d6ec78ab355b33b3b27ef7f", size = 126513, upload-time = "2026-10-07T14:08:48.111Z" },
{ url = "https://files.pythonhosted.org/packages/fb/f8/bcfc50b4ab851c4f9c0ee62f52bf3b28f0bcd0d9fe08e0ad98d4585148db/orjson-3.13.0-cp313-cp313-win_amd64.whl", hash = "sha256:4ee06e53b998c71ce3eb93b86222912fdd9dcced685ac64d4525d36fac338ea4", size = 121371, upload-time = "2026-10-07T14:08:49.549Z" },
{ url = "https://files.pythonhosted.org/packages/7b/7a/d6927845712ec2b1e89263cd12d7203531db185dbad67f914226f2fca156/orjson-3.13.0-cp313-cp313-win_arm64.whl", hash = "sha256:89efecad02515df7f318d0613b5dfd6d2a1acd323a2b8294712789a715945525", size = 126134, upload-time = "2026-10-07T14:08:51.118Z" },
{ url = "https://files.pythonhosted.org/packages/f0/10/98b5a3cdc086abf78d8cd20bb0cba124485d4b6a745722197bd209d967a5/orjson-3.13.0-cp314-cp314-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:a7bfc7db961c7d96cb75889dc6a1e4ae1e91d87ee61da564f582bd742b8dfeef", size = 222889, upload-time = "2026-10-07T14:08:52.673Z" },
{ url = "https://files.pythonhosted.org/packages/22/7c/7728c5280ab5202f4891ff4b0b96e2e1dbd5520dfee53edf083c54409a64/orjson-3.13.0-cp314-cp314-macosx_15_0_arm64.whl", hash = "sha256:91d933e668ff0ffe164d7c2daec36beba6d1ce7fadb71538fbe142a71f8a1e6e", size = 123312, upload-time = "2026-10-07T14:08:54.25Z" },
{ url = "https://files.pythonhosted.org/packages/a9/a5/d9a44321e6f66c0f64b45be587395f87ad94cb447bce7d92286f6b97d46a/orjson-3.13.0-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:6c8bfe728b81b0fd58a3c7f3f9c5a113f87f2992c9948e0f28707aafd737c0bc", size = 113146, upload-time = "2026-10-07T14:08:55.803Z" },
{ url = "https://files.pythonhosted.org/packages/80/da/d95c80d413f288feb471e16d82e5c1512d2439728e3bac917d058c31f098/orjson-3.13.0-cp314-cp314-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:e8e05549f3b30f9d8a8e28c5aba11cc2a4b90b90961ec685ca58444b0815fc09", size = 130348, upload-time = "2026-10-07T14:08:57.31Z" },
{ url = "https://files.pythonhosted.org/packages/04/0f/36fdfb32ad1852997bac00e3ce52c7888d8a1094ba9dcdcbb22fcc6b953a/orjson-3.13.0-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c749ab3ac30b5ab1ffb7677f8b92eacfdfdc5260210baa398f845bc3714c05d8", size = 128971, upload-time = "2026-10-07T14:08:58.843Z" },
{ url = "https://files.pythonhosted.org/packages/25/de/a82acf93bdcca0c79ccff25ef0c6868d24ccbc2e72f21fae39c8cabce4f1/orjson-3.13.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:58a9619d88f8818d9ab6b39d70d203789457ba13c1ed5d274f33ce9ae7e81a36", size = 130359, upload-time = "2026-10-07T14:09:00.412Z" },
{ url = "https://files.pythonhosted.org/packages/71/ca/2bc4f7697cb9f6897bf61aca11803df096a5d971bf69ef5538b243bb1fa8/orjson-3.13.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:2715c4808d1571029ed18fd07a82140bf3ba7def0dc89f8d015c416e3649bf87", size = 134583, upload-time = "2026-10-07T14:09:02.047Z" },
{ url = "https://files.pythonhosted.org/packages/23/b3/12b1af9b87ff9fa0aaf4e5724c87672b30bb5de76f275f7fac64e8219c1b/orjson-3.13.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:08bf722f923d2100bc5e5a5dcf72c656db557049c1bea26582fdd5dd9d5395a1", size = 126500, upload-time = "2026-10-07T14:09:03.863Z" },
{ url = "https://files.pythonhosted.org/packages/ad/ea/cf257fc8a7f4b18f5677c22b3a9673a1b51d4b7161f25177ed389b76560e/orjson-3.13.0-cp314-cp314-win_amd64.whl", hash = "sha256:6adcaa85d79977659a448b4123a88eb33511a11ed2db243535ad7ea88a6668e0", size = 121378, upload-time = "2026-10-07T14:09:05.375Z" },
{ url = "https://files.pythonhosted.org/packages/05/0a/9f4643f849e9918eab11983b83928af3aac14bedb04002e28e885ee1936f/orjson-3.13.0-cp314-cp314-win_arm64.whl", hash = "sha256:83705c12b4afde10c62a5dd3fe6fdb21b7900bd0dcd5af1c85612ae94d0ee590", size = 126123, upload-time = "2026-10-07T14:09:07.085Z" },
{ url = "https://files.pythonhosted.org/packages/8c/15/d265f2b556c0c7c0b30ea830316d6e5af5b85dde08f234a1ebed60fab386/orjson-3.13.0-cp315-cp315-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:5ef4d4157392a0439b74f7e49e5636b4ea43d9616bd0884effc0195fffcaa2d5", size = 223305, upload-time = "2026-10-07T14:09:08.84Z" },
{ url = "https://files.pythonhosted.org/packages/0c/97/781be8b80a33b8171b3f5acea941af47182c8b4b5827c2b7c3fea706f21c/orjson-3.13.0-cp315-cp315-macosx_15_0_arm64.whl", hash = "sha256:84d87e322e1674408f85adea63f11aa19201eba082755aec20ebc217f493bbd2", size = 123515, upload-time = "2026-10-07T14:09:10.792Z" },
{ url = "https://files.pythonhosted.org/packages/20/68/011bb98fa7da7b430b363db1bb7ef9160c438fc5c43e7468fb593c220037/orjson-3.13.0-cp315-cp315-manylinux_2_39_aarch64.whl", hash = "sha256:8c2ac5c09b017c484df1b4c68b2cf250b4e8ba08204cb58e7cd6cbbc71a9c902", size = 129222, upload-time = "2026-10-07T14:09:12.542Z" },
{ url = "https://files.pythonhosted.org/packages/86/7f/d96fa2aedaaec14c095ea9cd48d2158fdf33c0f4fd6e7a598d899d536b03/orjson-3.13.0-cp315-cp315-manylinux_2_39_armv7l.whl", hash = "sha256:51d11525bc3ca736fa97ce4e4c7da9999cc00bf261522bede43b4e7531bd7965", size = 113152, upload-time = "2026-10-07T14:09:14.059Z" },
{ url = "https://files.pythonhosted.org/packages/e9/2d/ee77aa685c54bd920a1f0e2936986b46269adb0d72bf5098c2c694dbeb36/orjson-3.13.0-cp315-cp315-manylinux_2_39_i686.whl", hash = "sha256:ac81530647c3423107cf61c3481e91f57134e9ddfb6ef83f5150ccbdcbc3a3ee", size = 130749, upload-time = "2026-10-07T14:09:15.835Z" },
{ url = "https://files.pythonhosted.org/packages/48/eb/3411fbfdad61b3f3af22343b5af7ed5c8a1679e35f442e8f1b229b33040e/orjson-3.13.0-cp315-cp315-manylinux_2_39_x86_64.whl", hash = "sha256:0526a3456db67b264c6d661b5f090077f326b6cd074d0ef53a72763595dec5d7", size = 130471, upload-time = "2026-10-07T14:09:17.463Z" },
{ url = "https://files.pythonhosted.org/packages/87/71/abdc2b8c70b8d85a6cb22f404da0f52d7d712f9d49cda039a0cb1adcb973/orjson-3.13.0-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:dd61e64802d51d1e4f16531c64536354fc3bc67932dc0cff254044f72bf0f187", size = 134793, upload-time = "2026-10-07T14:09:19.084Z" },
{ url = "https://files.pythonhosted.org/packages/0a/2e/1c13552d8b0241083116de02b2f284ee38501ef06ebfb79893f741538168/orjson-3.13.0-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:c5e3ccaac3106e8fa6e2f2f6962449d7c757d7b067e41b395a19d6f0d6cec892", size = 126711, upload-time = "2026-10-07T14:09:20.645Z" },
{ url = "https://files.pythonhosted.org/packages/85/f8/d4ece953a519d064cf690adaa68cd389d5b64fd261726334841b32978d6a/orjson-3.13.0-cp315-cp315-win_amd64.whl", hash = "sha256:7804dd1d6161da0e53b284c2aebf20f23e78eaac617300803e1467d1828d987f", size = 121496, upload-time = "2026-10-07T14:09:22.359Z" },
{ url = "https://files.pythonhosted.org/packages/70/cf/f691388c4a9bc4af7dcc1648c4b40845869908b517d7c0009d005c7d1fa1/orjson-3.13.0-cp315-cp315-win_arm64.whl", hash = "sha256:f5c05a8fee59309f537590a1ff12d3c1009c485e96a50a9ac60dd085c09d0fc0", size = 126260, upload-time = "2026-10-07T14:09:23.928Z" },
]
[[package]]
@@ -847,7 +841,7 @@ wheels = [
[[package]]
name = "pytest"
version = "9.1.1"
version = "9.2.0"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "colorama", marker = "sys_platform == 'win32'" },
@@ -858,35 +852,35 @@ dependencies = [
{ name = "pygments" },
{ name = "tomli", marker = "python_full_version < '3.11'" },
]
sdist = { url = "https://files.pythonhosted.org/packages/e4/47/b9efed96c114afcfa3c9d3fe98a76a1d14c74a9e266d397cf6eb64be5e01/pytest-9.1.1.tar.gz", hash = "sha256:1088fbde8f2b49d95a549a195707afa7a76a3ce9bcadc26b6d71f0ffda5fe313", size = 1636369, upload-time = "2026-06-19T10:58:32.857Z" }
sdist = { url = "https://files.pythonhosted.org/packages/79/42/bb4641652e58dedeac2ec51abc1f8cae4fee4ec63899a0999016229a0f2a/pytest-9.2.0.tar.gz", hash = "sha256:97c4f3b1f3c7414aa36465e09b8220f1d03627993bd51b1282e193753c80557b", size = 1797555, upload-time = "2026-10-27T21:30:20.728Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/24/25/1de2678b631f5a49215c6c96fff41ba892b0a34df68d6d80292b1b48aa7f/pytest-9.1.1-py3-none-any.whl", hash = "sha256:37a86b45efb9a47a61a36449063e8e18d0cab3161329fc099eb21783169c4f0c", size = 386536, upload-time = "2026-06-19T10:58:31.347Z" },
{ url = "https://files.pythonhosted.org/packages/51/39/1f5d8c8877a0fa327db959c19341d4be61660de1ab6b7391f9eb805bcd67/pytest-9.2.0-py3-none-any.whl", hash = "sha256:07acdcf88ec174f907dc01af70bf52d49b014bbab03faeeade31c96b18c2e588", size = 411776, upload-time = "2026-10-27T21:30:19.131Z" },
]
[[package]]
name = "pytest-asyncio"
version = "1.4.0"
version = "1.4.1"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "backports-asyncio-runner", marker = "python_full_version < '3.11'" },
{ name = "pytest" },
{ name = "typing-extensions", version = "4.16.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.13'" },
]
sdist = { url = "https://files.pythonhosted.org/packages/43/7c/d36d04db312ecf4298932ef77e6e4a9e8ad017906e24e34f0b0c361a2473/pytest_asyncio-1.4.0.tar.gz", hash = "sha256:c6c0d2259945122819f171a32ecea2c349ead889ee28176caaf492143424be42", size = 58514, upload-time = "2026-05-26T09:56:04.083Z" }
sdist = { url = "https://files.pythonhosted.org/packages/f8/9a/887535e477847f5159377ab35303923644840b13c0ca03c0a467f84d4680/pytest_asyncio-1.4.1.tar.gz", hash = "sha256:e8266eb094e5ee9ffdb2068c9836f33e209ea77a970eb846933d416b5602669b", size = 145237, upload-time = "2026-10-25T21:05:37.135Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/03/e2/08a497ef684b88559c9cc5f4ad53a37e7b99e727094a86d6ea32536d5d3c/pytest_asyncio-1.4.0-py3-none-any.whl", hash = "sha256:933ca923a23075a87fb7070c0ec272a6848489824d887c85c812670932835aa1", size = 16930, upload-time = "2026-05-26T09:56:02.576Z" },
{ url = "https://files.pythonhosted.org/packages/46/d7/cd9e2708afdbf059658adaf08bdb0792ca52489871051d6ce7d498b51277/pytest_asyncio-1.4.1-py3-none-any.whl", hash = "sha256:507afa78ec77c6661164ef1a2368bc7820383fd1a14b2a7f813de8b5a92949cc", size = 17061, upload-time = "2026-10-25T21:05:35.473Z" },
]
[[package]]
name = "pytest-mock"
version = "3.16.0"
version = "3.17.0"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "pytest" },
]
sdist = { url = "https://files.pythonhosted.org/packages/7a/7f/6ed29931d5c8cd396e7c0a55412e6cc88020373365c8685985dea53d26d7/pytest_mock-3.16.0.tar.gz", hash = "sha256:5a8395528b8f498205f3718f575228d0edaed7425fff638f87d1a6c3e0383636", size = 35362, upload-time = "2026-09-27T14:57:55.46Z" }
sdist = { url = "https://files.pythonhosted.org/packages/97/c2/28b9f5b955ff2bcd4727a6f768e2ca9b586cd7c37b95ea5f7b9b873ac7b3/pytest_mock-3.17.0.tar.gz", hash = "sha256:e36576e0985e01027e999891e7a966c67822d40c89ef1b4c8b6e22737e3590b4", size = 43064, upload-time = "2026-10-17T16:21:42.435Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/db/5b/b83a9bf1a3b4ec222f9fa083147ff6816245223da0ab92370e7e056f113f/pytest_mock-3.16.0-py3-none-any.whl", hash = "sha256:007cfeb257801d88d9c0b2a7b5a15a15e73b71968dfd72e7bf8c4a2f8393aec8", size = 10016, upload-time = "2026-09-27T14:57:54.283Z" },
{ url = "https://files.pythonhosted.org/packages/e8/ea/47fbdc8f37410956fd445720e927589b1e2a47772c5f28109f0ce2fa26d9/pytest_mock-3.17.0-py3-none-any.whl", hash = "sha256:1b82aa4b37137248bd687055e109723debeb07b489de1565297dc9589c5f2d6b", size = 11248, upload-time = "2026-10-17T16:21:41.265Z" },
]
[[package]]
@@ -995,27 +989,27 @@ wheels = [
[[package]]
name = "ruff"
version = "0.16.9"
version = "0.17.3"
source = { registry = "https://pypi.org/simple" }
sdist = { url = "https://files.pythonhosted.org/packages/96/bf/c935ca98e73fe8ce65b87ef08a280c0c1e85295d569228c15e87d8fdfaf1/ruff-0.16.9.tar.gz", hash = "sha256:12b625c6cfba78d285d9f48eda5f053374f1e53cb10ef17342a383750db99161", size = 4948764, upload-time = "2026-09-24T20:37:49.416Z" }
sdist = { url = "https://files.pythonhosted.org/packages/59/73/81f140c4edd9cc323de5478e6bbd3bbcfae9a82692df1a258de8cec6a6d2/ruff-0.17.3.tar.gz", hash = "sha256:a57049c8addb3662073859bb55a7ad35aa54f8a7c9ed268911d1333c5aadaaa9", size = 5339444, upload-time = "2026-10-27T00:34:05.914Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/0d/26/df51322b52ee1ada7eff2d071ea09d11d5c2d1dcc9f02594f5785c4d1635/ruff-0.16.9-py3-none-linux_armv6l.whl", hash = "sha256:95e6f022090368ab3b824c36276839c53b2adf1a3f4c09fefc33dfc400f6da96", size = 10082922, upload-time = "2026-09-24T20:37:13.045Z" },
{ url = "https://files.pythonhosted.org/packages/a5/27/7bf51f5a7aa375e9f339280a303aab44ca75dc1525f1cdc5991761685b0f/ruff-0.16.9-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:a5f27be168556594a86d2f415db0cf43f5291917849318f873c7e2791f7a8c67", size = 10236360, upload-time = "2026-09-24T20:37:16.049Z" },
{ url = "https://files.pythonhosted.org/packages/b6/63/09659283f92f02dff45809da194a70da2f688d87c55d8875c4fae3536072/ruff-0.16.9-py3-none-macosx_11_0_arm64.whl", hash = "sha256:1632eb1d6197f33bd00b1acbc5b71009e89a8895c158e2d2b03a834fac964ab6", size = 9892940, upload-time = "2026-09-24T20:37:17.957Z" },
{ url = "https://files.pythonhosted.org/packages/24/58/98de1b72ec172f5f8f1731236fe21585b3998bf7dfe9fcc44ae9ba626012/ruff-0.16.9-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b3f951b14d865d5952c89d40a5ca07e87abe24fa5453299878411e127748fb1c", size = 10032114, upload-time = "2026-09-24T20:37:19.942Z" },
{ url = "https://files.pythonhosted.org/packages/c8/7d/f1e17c54ab59d4bad1dce8ee3e22a7a1d0ef4745240decacdcf3832b5bb2/ruff-0.16.9-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:447fc07e1573afff7cb02803462b12b6c8ece7cf10e2cd78565fa6d7a1c0bf8d", size = 9910227, upload-time = "2026-09-24T20:37:21.872Z" },
{ url = "https://files.pythonhosted.org/packages/34/19/436f647a65075bbd3bab2668b3bdaa5120559b294694018cdcefabbbf30b/ruff-0.16.9-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:8a3e039a6a40ed976c491722b60e0ae4a4aa1a86057f540ee7a37a5d19ae9120", size = 10547484, upload-time = "2026-09-24T20:37:24.229Z" },
{ url = "https://files.pythonhosted.org/packages/03/59/38430a6bc2f6d8095447ac39625cf8b6e9344a47e6c26225c8ba1bff3ffb/ruff-0.16.9-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:4684dded7db60aa57cb118fa158630f5feade4af5782903b6053484bdf9bd129", size = 11412367, upload-time = "2026-09-24T20:37:26.307Z" },
{ url = "https://files.pythonhosted.org/packages/c8/bd/bbb6d7fc7f208c8b8c50dd5dc8206e4cfdb1e7a8fb852606a3adf370c880/ruff-0.16.9-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:d29c934357e45642fda2f34c0b1f4025b4a6c01e15e4bf0016879d60078a142c", size = 10869787, upload-time = "2026-09-24T20:37:28.35Z" },
{ url = "https://files.pythonhosted.org/packages/bc/b8/9c543074918061abbefc3bd139bee22de35abedb00dde0f2d27288838962/ruff-0.16.9-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a21713e629d3e5bdb2f5c2def1cc7f04f47fa8e1a7eb0571b4a28e1da64bc728", size = 10406494, upload-time = "2026-09-24T20:37:30.624Z" },
{ url = "https://files.pythonhosted.org/packages/35/7a/5a8851bd146e7ccf8fd4b003f6c75c11f8fbdb0e60673b45097986b6bf41/ruff-0.16.9-py3-none-manylinux_2_31_riscv64.whl", hash = "sha256:7baa24ef5fc8e77aa93879e1d3f43754a01ae488e869f1ae30cf431afd4d2452", size = 10590083, upload-time = "2026-09-24T20:37:32.439Z" },
{ url = "https://files.pythonhosted.org/packages/87/f0/4c3467188f23f806960b46fa76575a7cd0514c9ba90562650b71efc96980/ruff-0.16.9-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:a41aac6230aadfaa133bdfa1614488531ffa3e0837567ae04c0da2058a9c0f9e", size = 10119151, upload-time = "2026-09-24T20:37:34.581Z" },
{ url = "https://files.pythonhosted.org/packages/15/34/5a4def5adea572ce6aea0bb64f21f928ee317b80e0db747d7979b01d7261/ruff-0.16.9-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:c2529fb5896d49115b0e9aa8f887490b34bbe76baf879ec2264ac59406869ce7", size = 9911544, upload-time = "2026-09-24T20:37:36.796Z" },
{ url = "https://files.pythonhosted.org/packages/62/5d/d15ebea7499eef9373318c0ee6ca127832927c6529731f6d48e18dce7ca9/ruff-0.16.9-py3-none-musllinux_1_2_i686.whl", hash = "sha256:41e3870277694177429b56406d65dfbdb2c2802c52b715edaf6a0b829c69d4ee", size = 10269884, upload-time = "2026-09-24T20:37:38.857Z" },
{ url = "https://files.pythonhosted.org/packages/d1/56/c5d3cd119ded7a3c7aba0e961b69cb3df701c91662c98ad694467d060ce1/ruff-0.16.9-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:8adbe4e58af167f767d7b2ba5e83c42e878350796cf78c2f5e14ab9903a92588", size = 10749366, upload-time = "2026-09-24T20:37:41.042Z" },
{ url = "https://files.pythonhosted.org/packages/ac/fe/734ec7527029ac757ecf821f143c9f3fcf69149c21f53a044a899b430f5a/ruff-0.16.9-py3-none-win32.whl", hash = "sha256:0e1dbc2073624dee6618d41d0098690a7244654af746704b64759e12b6b6b385", size = 10152355, upload-time = "2026-09-24T20:37:43.025Z" },
{ url = "https://files.pythonhosted.org/packages/14/21/26e4643629b3ebb44f0a06f9c9a53058d63d989415f63a9a3c28e2ee7f22/ruff-0.16.9-py3-none-win_amd64.whl", hash = "sha256:6bd40fec8cd4c8a3d4dd589bd8ad4e6320c13c29234159bfd959a40d529d597b", size = 10592965, upload-time = "2026-09-24T20:37:44.944Z" },
{ url = "https://files.pythonhosted.org/packages/51/60/5fb1a39dbb5ae314d5f59bc7348a63c1d5c20f3cd83914c4b5cb0be31d2d/ruff-0.16.9-py3-none-win_arm64.whl", hash = "sha256:ed1a252039200f57a59eebc063b54beabea67bfbaaca0eeaa7f54b5fbcda2284", size = 10458649, upload-time = "2026-09-24T20:37:46.882Z" },
{ url = "https://files.pythonhosted.org/packages/9e/8c/083365310c4e79c842f25bf5a842facbd9b0c0ec336f96dffa5074fe723d/ruff-0.17.3-py3-none-linux_armv6l.whl", hash = "sha256:ab86b84cd9d05e56d329742c0cabdcbe2d1d56c98f4a04aab9b5b66196febfb4", size = 10216522, upload-time = "2026-10-27T00:33:29.822Z" },
{ url = "https://files.pythonhosted.org/packages/72/26/4b2edf31cfebe9605d8f6ed8f1d6f376d3a53d4c9a123e62661c64c440f0/ruff-0.17.3-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:e407b4a6852853a9a2cdce96963e94ad9775578bb44e7561a0f2829f3cc04b11", size = 10217786, upload-time = "2026-10-27T00:33:33.949Z" },
{ url = "https://files.pythonhosted.org/packages/a2/7e/537aba4b7f54397a374d2f6a6fc93e9c8015e18553f31a4a7b7dbced48b5/ruff-0.17.3-py3-none-macosx_11_0_arm64.whl", hash = "sha256:b75cc113b3aca388933d8296b667b1ac401a80317ea3074c9b0a66541199da29", size = 9440362, upload-time = "2026-10-27T00:33:35.784Z" },
{ url = "https://files.pythonhosted.org/packages/3d/66/283e39734f66c8a5ebaa93c22eb7b7515779a0b1d5a5c0ad20e05c0edb41/ruff-0.17.3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ab5fa7ed5ce18554ea69d850ad162cbaa0c85fc47c08d83a569f806681c9a6ad", size = 10094281, upload-time = "2026-10-27T00:33:38.216Z" },
{ url = "https://files.pythonhosted.org/packages/21/4c/1ffc768497bd025a32c72152771e40c0b99bddc5cc6e4f50c7949a395346/ruff-0.17.3-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:c673c170e27834d1262e3a9c1e97bdc9b9c3b180c63d89173ce69747232474c1", size = 10022543, upload-time = "2026-10-27T00:33:40.181Z" },
{ url = "https://files.pythonhosted.org/packages/73/c3/f90db547301080fcb82c92abf914c8bd57b89911d9b65a6c4cc6b52d0635/ruff-0.17.3-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6a754c0341bc9ca151b7b335988b3263921c08859f84ca219b70cee825571b6f", size = 10683921, upload-time = "2026-10-27T00:33:42.182Z" },
{ url = "https://files.pythonhosted.org/packages/e5/98/92d4a8a26c6c96cf1a5b34dd59036d8a71e52d650aab065c58867e964e63/ruff-0.17.3-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:4590b9d86c0b1543ebb09094254e191cd43fe8edaf330baa035aab03da251532", size = 11373408, upload-time = "2026-10-27T00:33:44.19Z" },
{ url = "https://files.pythonhosted.org/packages/43/02/1f24d2e3064c9753926deeb901afa57777b37ee46799b09ddd7aee6e5145/ruff-0.17.3-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:bbde18beccd98c29a227c63c99022e3443b99258e08326df6425dfe0443705ef", size = 10977469, upload-time = "2026-10-27T00:33:46.179Z" },
{ url = "https://files.pythonhosted.org/packages/f0/20/fecedea2209f574ab92033b344e01a7f0c2dc76c6d6d19a14c9f8141173f/ruff-0.17.3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7fa4b0f931cdbcb8a52044f370a3eb429fb42eb88807b0e800fcaa98dd42b24e", size = 10577491, upload-time = "2026-10-27T00:33:48.233Z" },
{ url = "https://files.pythonhosted.org/packages/33/36/b93fdf0bc6f84f0cd487aadfb0354deb40013669ea35ac3d26855de1e959/ruff-0.17.3-py3-none-manylinux_2_31_riscv64.whl", hash = "sha256:39405f341deec934b4289634324ad695f72df2970f9121582872eaf5b722f0f5", size = 10608748, upload-time = "2026-10-27T00:33:50.284Z" },
{ url = "https://files.pythonhosted.org/packages/5d/b7/7d3f5f14145daead1efb0b9a8289ed1daa100f419d60774375951723ce00/ruff-0.17.3-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:68074094f55ca3d29ab19491f640282f7a84061c4c7977aa5094b968ca457e9a", size = 10075057, upload-time = "2026-10-27T00:33:52.074Z" },
{ url = "https://files.pythonhosted.org/packages/b0/ed/93ff7a5909ee56e2bd4b982deae9e0efb2724417874a90c9e41ad66c6dd7/ruff-0.17.3-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:27bb571ac78fef178fe5118d2827df95c2aae74a48fff2b15f6acd03af5ff5bb", size = 10022431, upload-time = "2026-10-27T00:33:54.061Z" },
{ url = "https://files.pythonhosted.org/packages/9b/07/a83b9eeec8c1c3c0e4eda15f06c3a91001bfd2687ea2f07b750719bf9712/ruff-0.17.3-py3-none-musllinux_1_2_i686.whl", hash = "sha256:029c37cbd3de48ca37aa12117bead2d065f15da17d66bf84e0d4274013705db2", size = 10394903, upload-time = "2026-10-27T00:33:56.158Z" },
{ url = "https://files.pythonhosted.org/packages/af/b2/05c39857c2526fcbebe46ad93a8dc97424656dfef14d3ef933abe1ffd331/ruff-0.17.3-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:692fdb46d0fd9c71e380947dc5fc72f2c3f881073bc1f739e4579376231affbe", size = 10799780, upload-time = "2026-10-27T00:33:58.204Z" },
{ url = "https://files.pythonhosted.org/packages/ec/d9/47171a16739eb7a353936b31c20cf54340531e68c9af7d72fd7a784e235d/ruff-0.17.3-py3-none-win32.whl", hash = "sha256:46539cb031b01fd29ae0a02142483c46640b233ee12bb1c1b690bffa1555d5ca", size = 9908481, upload-time = "2026-10-27T00:34:00.087Z" },
{ url = "https://files.pythonhosted.org/packages/d0/a0/f08c1631bfd81faa6a90eaf70c37c786c11bed2046302b56bb506c25e1a0/ruff-0.17.3-py3-none-win_amd64.whl", hash = "sha256:56b8ffb3f3b3cbccb8b76b71b38261b7ed982ef5d20f5b447b1b61a7f4949b24", size = 10341333, upload-time = "2026-10-27T00:34:02.099Z" },
{ url = "https://files.pythonhosted.org/packages/99/d5/4ad4ed31413c301430918e70d3d38ae6f097af0766cb9ab8c9d502b2a4d6/ruff-0.17.3-py3-none-win_arm64.whl", hash = "sha256:81fce74bcd6be0e9da7c67c7553fd0f1f12964a2052cd728ef917b937a5ca1d9", size = 9854332, upload-time = "2026-10-27T00:34:03.847Z" },
]
[[package]]
@@ -1083,27 +1077,27 @@ wheels = [
[[package]]
name = "ty"
version = "0.0.84"
version = "0.0.94"
source = { registry = "https://pypi.org/simple" }
sdist = { url = "https://files.pythonhosted.org/packages/e1/f6/34f8869c45ea87fe6a931ffa824b1fe4428167173543d92988d631add355/ty-0.0.84.tar.gz", hash = "sha256:0cefdb0cd5d399418dbe83c349ba605047b7dff815ae6f460c80e8522b40be67", size = 7409537, upload-time = "2026-09-24T13:16:24.367Z" }
sdist = { url = "https://files.pythonhosted.org/packages/8a/c7/1257c8c70e46274664db1eaf2b8aba99a1277470daaa39c65e7decd67c8f/ty-0.0.94.tar.gz", hash = "sha256:933d2feca6057742d04af00c090621c139e7be2c059aa38b040a70532fd5104b", size = 8106769, upload-time = "2026-10-28T18:06:09.045Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/aa/0c/600648778e1c79133ce6b6a5c4c2531ae16b90c9b30f5041b38b574f61b8/ty-0.0.84-py3-none-linux_armv6l.whl", hash = "sha256:868438e2b9abfc835dd5b5b07ed693db95d8348ac40e3228252511d63ae87695", size = 13935333, upload-time = "2026-09-24T13:15:31.167Z" },
{ url = "https://files.pythonhosted.org/packages/c5/3b/27f06f49945c36170765fad82076898039ae3873338e9865f876dd62f12c/ty-0.0.84-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:b00f39b521f0b559cde0f6abf8dd47213b513b04f33d58efeb9b98486a16bb17", size = 13511328, upload-time = "2026-09-24T13:15:34.446Z" },
{ url = "https://files.pythonhosted.org/packages/fc/b6/b12dd130e7f30141f0645614f454c925991cd389b1cc6c8284fd6bf32326/ty-0.0.84-py3-none-macosx_11_0_arm64.whl", hash = "sha256:8f78c2915567f2ee62ce0c24d86091bc76f81577677755e242d09951db588b9a", size = 13445445, upload-time = "2026-09-24T13:15:37.476Z" },
{ url = "https://files.pythonhosted.org/packages/44/96/f012de4b3c1d9a4773326621380d768b4d48c47e620dc012775c5e01c7d7/ty-0.0.84-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:61155cad0921e890d86d1d911a40b3a0e924ef4bdc3b4f3865a6c89c7e3012dc", size = 13471235, upload-time = "2026-09-24T13:15:40.64Z" },
{ url = "https://files.pythonhosted.org/packages/05/32/dca630f5f5353fa7bf67eebccf1549df99b16656d21071d0df6677c826a5/ty-0.0.84-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:417c3bf14947ed16b0b92976ab333c27915590354e96d4f581709068d3811355", size = 13680704, upload-time = "2026-09-24T13:15:43.817Z" },
{ url = "https://files.pythonhosted.org/packages/44/8d/33702c8f62f05ad45b33644fb914d483de6a0a7bc8e51884e9b8773e6d69/ty-0.0.84-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:e06ef117759f654f5379efe9ae79bda8a186016c016f1023d05c34f8e15c1546", size = 14518923, upload-time = "2026-09-24T13:15:46.802Z" },
{ url = "https://files.pythonhosted.org/packages/c8/a1/da3246e6ef2ae0e842bca4058b25c54bee55ab058ffff4ee54e72517ec01/ty-0.0.84-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:a05d1d53db8b64410ab38c6e32c5898510584869d1d5dd9c0605db81c9aef7df", size = 15027731, upload-time = "2026-09-24T13:15:49.755Z" },
{ url = "https://files.pythonhosted.org/packages/20/17/b0099098a560aeb4f9fde6c912f9a81622c3e44e6555e1fbe322b368ec31/ty-0.0.84-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:b92400494ab855cfb1204ac1101e3f53b2d09a8e21d171758b2cf9acdab1809e", size = 14748260, upload-time = "2026-09-24T13:15:52.713Z" },
{ url = "https://files.pythonhosted.org/packages/60/d5/32cd67aedb271f006e716ad093806c96c5d7e2af86be8255469dbd3d76c8/ty-0.0.84-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:af17eb391ae3027fed9be1780bea555c2b8a25ba68e184c627b4981b2c9eaab7", size = 14205858, upload-time = "2026-09-24T13:15:55.677Z" },
{ url = "https://files.pythonhosted.org/packages/43/c4/638ac62ca2e8eca1b92e3e16273085744fada728b993500819b5c258ca15/ty-0.0.84-py3-none-manylinux_2_31_riscv64.whl", hash = "sha256:44cf06af0e7ec78ea6d8ff33a3450fc19627756a4fba681f7410d4e3ef63047a", size = 14573196, upload-time = "2026-09-24T13:15:59.165Z" },
{ url = "https://files.pythonhosted.org/packages/a6/f6/9ee81c5d8921e5fd5f10889ae563c95cd3272b31df2ada528919ca1cef6b/ty-0.0.84-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:c6e56b443ff9ba462e34bfbc1e582004c2719ed35f8f93a433744b0ba0afb2d9", size = 13480760, upload-time = "2026-09-24T13:16:02.313Z" },
{ url = "https://files.pythonhosted.org/packages/f6/83/fbe5d1177667ae16d84c3242846b143809c9cc09568b333e5a9b4d5908f6/ty-0.0.84-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:8b6562fcc48820c1030e2a4509ef2c14ef93043ca4860280074314ac3a825b95", size = 13696346, upload-time = "2026-09-24T13:16:05.391Z" },
{ url = "https://files.pythonhosted.org/packages/86/9a/1b4ac9ddc34cc0ab4624bc219825d66af52f1ad87f4778ad08ad03fa06d5/ty-0.0.84-py3-none-musllinux_1_2_i686.whl", hash = "sha256:dee7421451efcbd70f03e95a8f2c8d9e5ec3d35edcd27b4095ee00ee062abfc4", size = 13959410, upload-time = "2026-09-24T13:16:08.661Z" },
{ url = "https://files.pythonhosted.org/packages/c9/04/70e289437a67dfd686056ab4fd91880261a8233033a6a95d29393741fb97/ty-0.0.84-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:31e96307cf621babe969307dd657783d672e2d8bdbd06493710da635bf63fa07", size = 14350294, upload-time = "2026-09-24T13:16:11.865Z" },
{ url = "https://files.pythonhosted.org/packages/9c/f4/ae7dbd118425c850981d23efb850f0d9d7f6b8d2b852bde2767434f668b4/ty-0.0.84-py3-none-win32.whl", hash = "sha256:4bdc85f91cbaae35825f2b17bb4ac5de0563367875cb0f42b2bf07a1bf7ff2ba", size = 13176439, upload-time = "2026-09-24T13:16:15.049Z" },
{ url = "https://files.pythonhosted.org/packages/29/ec/994d87252f065dda5a500bc8afc726d18f6582d81d6f4ff1feb8a267c800/ty-0.0.84-py3-none-win_amd64.whl", hash = "sha256:71cc9aa7a7c89d4e12c6a814e9c0c3310ad5bee44efedbd6f5a42d91e9ac0f0d", size = 13962879, upload-time = "2026-09-24T13:16:18.191Z" },
{ url = "https://files.pythonhosted.org/packages/6d/1c/e6e91852b72566b1ab9aca504712857dfb89324c12092a5bd61d42d34427/ty-0.0.84-py3-none-win_arm64.whl", hash = "sha256:6c9d3718c4a0d318bc9c92af9b2aa85c3294e7dff54cf1d69ad79568f56516da", size = 13656453, upload-time = "2026-09-24T13:16:21.51Z" },
{ url = "https://files.pythonhosted.org/packages/27/bd/5145d91cf196cb20fc3b005515b21266a419ea7336d3d7891a1769439259/ty-0.0.94-py3-none-linux_armv6l.whl", hash = "sha256:c6463c045880ad17df911a53d367eb2554b17538ca54911bea6ccb20ec95ee11", size = 14528574, upload-time = "2026-10-28T18:05:19.423Z" },
{ url = "https://files.pythonhosted.org/packages/29/0e/2b563132429b5fc6044095061fde4584548cb55abf0d6d9f2829c41ab226/ty-0.0.94-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:ec3a3892f4290306c674586149668097cf44f13e8b381ba388662f5a440b459b", size = 14067146, upload-time = "2026-10-28T18:05:23.014Z" },
{ url = "https://files.pythonhosted.org/packages/3d/e0/3a458362ea33ca9756cd6b914f905b3dec007d329b21d83e859ecee65a63/ty-0.0.94-py3-none-macosx_11_0_arm64.whl", hash = "sha256:74ddc6eeecd3251cf8980c9abb960d7eeab649dac5cdb7504910d99c479f84ab", size = 13148266, upload-time = "2026-10-28T18:05:25.769Z" },
{ url = "https://files.pythonhosted.org/packages/cd/38/5380bdaad2745a4e191deacce96403af74d1992ed8782d5766c301c32b50/ty-0.0.94-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:31bdc3aace142400d7e22b4d32676c063ec42f0437d77940012c3dc60587ecdd", size = 13973583, upload-time = "2026-10-28T18:05:28.731Z" },
{ url = "https://files.pythonhosted.org/packages/1d/bc/7e1dc4f2594010aff6d1e2e34d0ff9003736210983be5720a04d69c27e03/ty-0.0.94-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:fecacfe9c41ed1109aa503ed172d84b1b0fc283ee49aaf078d298dbe1c62e75f", size = 14269235, upload-time = "2026-10-28T18:05:31.697Z" },
{ url = "https://files.pythonhosted.org/packages/7b/61/43041f1c53164d6be21ace55047feffeaa8a9709782b01b06c951412b900/ty-0.0.94-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:a49762bbc97a732847da8350ad0227c99ce2675fa32e3f58aa9f9ff4a81e4c14", size = 15191720, upload-time = "2026-10-28T18:05:34.455Z" },
{ url = "https://files.pythonhosted.org/packages/22/72/f425d48b13cbf12b92e4f837a5866e9788e9ef4d5a071e2b12f54ee94da4/ty-0.0.94-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:76a7b3aea839dfafb4bc068af918e0292b06ac26ea2a43f7ab3dd65548c0ed50", size = 15596604, upload-time = "2026-10-28T18:05:37.377Z" },
{ url = "https://files.pythonhosted.org/packages/13/ea/bd2da666ad4af596886833b095098fa9ff93685285f48bebc4d3865126e0/ty-0.0.94-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:f032ce5a9c0c7033a5a8e748f952ece2e22afe2b148d211d05dca2cba8b28000", size = 15572711, upload-time = "2026-10-28T18:05:40.499Z" },
{ url = "https://files.pythonhosted.org/packages/44/f8/4f07eac57e9b60f49cc222d5048d9a61ac7f0902964ec8ac8d4ea8bc521d/ty-0.0.94-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:cc5e780c2107c1b83a21a394076da328e05a293ce06298df40ecab1ddc31d371", size = 16309102, upload-time = "2026-10-28T18:05:43.539Z" },
{ url = "https://files.pythonhosted.org/packages/22/39/c2ac7e14eb8ca59bd3c71b8c3055294524df84c476ba88545f59c11ceaf9/ty-0.0.94-py3-none-manylinux_2_31_riscv64.whl", hash = "sha256:5bc969cdabf85aa66987c9b4818072e3af17ce5f2b7bc93550ab896c904c6c40", size = 15073645, upload-time = "2026-10-28T18:05:46.65Z" },
{ url = "https://files.pythonhosted.org/packages/d1/7d/dd4935abf50a97ccc1f46cf6c921a7acdab30f102c3c56aa4e8d6cbc3fa9/ty-0.0.94-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:27bbaff0d7bbcb3e92ed7cab07d6b26dc7ed7fa28ff69910324e5cc347c7b256", size = 13936242, upload-time = "2026-10-28T18:05:49.726Z" },
{ url = "https://files.pythonhosted.org/packages/d6/f0/b65fa6ccde2d629e25031bf2cc2d21ac7b50ee6e0e3d29a5f471c4686c54/ty-0.0.94-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:d0960eb71220300655d67db91073fd180f385186b1d186e76faa2fd3ae5bd10f", size = 14280351, upload-time = "2026-10-28T18:05:52.521Z" },
{ url = "https://files.pythonhosted.org/packages/d6/d2/5c901ad5e4f5444852b002b1f4dd3a0b470039305c688facc0483bfccd1a/ty-0.0.94-py3-none-musllinux_1_2_i686.whl", hash = "sha256:ab04c14bca92ab92106ceaa19a962a80998389700cf7938576ba3936a304355d", size = 14611163, upload-time = "2026-10-28T18:05:55.208Z" },
{ url = "https://files.pythonhosted.org/packages/6d/99/37d8633e9b5d1dcf1b06f12466825ff0c4028664994e573c352546ee9cbd/ty-0.0.94-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:a92ebefa092e6bd58cb5719626858df744575473e2de0cd1c44abd44b9b84b57", size = 14938978, upload-time = "2026-10-28T18:05:58.17Z" },
{ url = "https://files.pythonhosted.org/packages/51/13/804b1f993bf84a819385f8b440fbc4b894499e2c20d865cd74d69327e7b8/ty-0.0.94-py3-none-win32.whl", hash = "sha256:3212dcf30b7567f2bb65a83cdfc4818a5385f82e7afddd83548b0d84e759057e", size = 13448009, upload-time = "2026-10-28T18:06:01.111Z" },
{ url = "https://files.pythonhosted.org/packages/a1/23/81850750cda0ea781ba9d6e08cea1a1039361cb3474c7dd03765bbc4b51f/ty-0.0.94-py3-none-win_amd64.whl", hash = "sha256:daf5bafe8e7d21b8a99a56fc8518f2342a2dbcaa370a5c25cfaedc684088d158", size = 14010576, upload-time = "2026-10-28T18:06:03.773Z" },
{ url = "https://files.pythonhosted.org/packages/d7/d4/ac3a759556493230823abd31e149c95401f96b9cac36567bd403a8454ea3/ty-0.0.94-py3-none-win_arm64.whl", hash = "sha256:ce344353ccdc542cfcfd6abe1481cf23c005f483411ea79652b78ce0beae36f2", size = 13547398, upload-time = "2026-10-28T18:06:06.379Z" },
]
[[package]]
+1 -1
View File
@@ -285,7 +285,7 @@ wheels = [
[[package]]
name = "langgraph-checkpoint"
version = "4.3.1"
version = "4.3.2"
source = { editable = "../checkpoint" }
dependencies = [
{ name = "langchain-core" },
@@ -302,14 +302,20 @@ def _dedupe_ops(values: list[Op]) -> tuple[list[int] | None, list[Op]]:
dedupped: list[Op] = []
listen: list[int] = []
puts: dict[tuple[tuple[str, ...], str], int] = {}
reads: dict[Op, int] = {}
for op in values:
if isinstance(op, (GetOp, SearchOp, ListNamespacesOp)):
try:
listen.append(dedupped.index(op))
except ValueError:
listen.append(len(dedupped))
ix = reads.setdefault(op, len(dedupped))
except TypeError: # an op holding a dict or a list is unhashable
try:
ix = dedupped.index(op)
except ValueError:
ix = len(dedupped)
if ix == len(dedupped):
dedupped.append(op)
listen.append(ix)
elif isinstance(op, PutOp):
putkey = (op.namespace, op.key)
if putkey in puts:
@@ -248,13 +248,20 @@ class InMemoryStore(BaseStore):
for key, filter_value in op.filter.items()
)
# Without a filter or a query embedding, the caller keeps only
# filtered[offset:offset + limit], so stop collecting there. Negative
# bounds keep the full scan, since a slice counts them from the end.
stop = (
op.offset + op.limit
if not op.filter
and not (op.query and self.embeddings)
and min(op.offset, op.limit) >= 0
else None
)
n = len(namespace_prefix)
filtered = []
for namespace in self._data:
if not (
namespace[: len(namespace_prefix)] == namespace_prefix
if len(namespace) >= len(namespace_prefix)
else False
):
if namespace[:n] != namespace_prefix:
continue
for key, item in self._data[namespace].items():
@@ -263,6 +270,8 @@ class InMemoryStore(BaseStore):
filtered.append((item, list(embeddings.values())))
else:
filtered.append((item, []))
if len(filtered) == stop:
return filtered
return filtered
def _embed_search_queries(
+1 -1
View File
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project]
name = "langgraph-checkpoint"
version = "4.3.1"
version = "4.3.2"
description = "Library with base interfaces for LangGraph checkpoint savers."
authors = []
requires-python = ">=3.10"
+61 -1
View File
@@ -22,7 +22,7 @@ from langgraph.store.base import (
get_text_at_path,
validate_op_namespace,
)
from langgraph.store.base.batch import AsyncBatchedBaseStore
from langgraph.store.base.batch import AsyncBatchedBaseStore, _dedupe_ops
from langgraph.store.memory import InMemoryStore
from tests.embed_test_utils import CharacterEmbeddings
@@ -75,6 +75,29 @@ async def test_async_batch_store_resilience() -> None:
assert result2.value == doc2
def test_dedupe_ops_maps_repeated_reads_and_puts_to_one_op() -> None:
ops = [
GetOp(("a",), "k"),
PutOp(("a",), "k", {"v": 1}),
GetOp(("a",), "k"),
SearchOp(("a",), filter={"x": 1}),
SearchOp(("a",), filter={"x": 1}),
PutOp(("a",), "k", {"v": 2}),
GetOp(("b",), "k"),
ListNamespacesOp(match_conditions=(MatchCondition("prefix", ("a",)),)),
ListNamespacesOp(match_conditions=(MatchCondition("prefix", ("a",)),)),
]
listen, dedupped = _dedupe_ops(ops)
assert dedupped == [
GetOp(("a",), "k"),
PutOp(("a",), "k", {"v": 2}),
SearchOp(("a",), filter={"x": 1}),
GetOp(("b",), "k"),
ListNamespacesOp(match_conditions=(MatchCondition("prefix", ("a",)),)),
]
assert listen == [0, 1, 0, 2, 2, 1, 3, 4, 4]
def test_get_text_at_path() -> None:
nested_data = {
"name": "test",
@@ -437,6 +460,43 @@ def test_list_namespaces_no_conditions() -> None:
assert sorted(result) == sorted(expected)
def test_search_pages_match_full_listing() -> None:
store = InMemoryStore()
items_per_namespace = 7
for ns in [("a",), ("a", "b"), ("ab",), ("a", "c", "d")]:
for i in range(items_per_namespace):
store.put(ns, f"k{i}", {"i": i, "even": i % 2 == 0})
def keys(items: list) -> list[tuple[tuple[str, ...], str]]:
return [(item.namespace, item.key) for item in items]
full = keys(store.search(("a",), limit=100))
assert {ns for ns, _ in full} == {("a",), ("a", "b"), ("a", "c", "d")}
assert len(full) == 3 * items_per_namespace
paged = [
key
for offset in range(0, len(full), 4)
for key in keys(store.search(("a",), limit=4, offset=offset))
]
assert paged == full
even = keys(store.search(("a",), filter={"even": True}, limit=100))
assert (
keys(store.search(("a",), filter={"even": True}, limit=3, offset=2))
== even[2:5]
)
def test_vector_search_scores_every_item(fake_embeddings: CharacterEmbeddings) -> None:
store = InMemoryStore(
index={"dims": fake_embeddings.dims, "embed": fake_embeddings}
)
for i in range(4):
store.put(("test",), f"other{i}", {"text": f"zzz qqq {i}"})
store.put(("test",), "match", {"text": "apple pie"})
results = store.search(("test",), query="apple pie", limit=1)
assert [r.key for r in results] == ["match"]
def test_list_namespaces_empty_store() -> None:
store = InMemoryStore()
+1 -1
View File
@@ -394,7 +394,7 @@ wheels = [
[[package]]
name = "langgraph-checkpoint"
version = "4.3.1"
version = "4.3.2"
source = { editable = "." }
dependencies = [
{ name = "langchain-core" },
+35 -3
View File
@@ -95,11 +95,43 @@ as hidden compatibility aliases, with no removal scheduled. Older Python CLI
versions and the JavaScript CLI may still require the legacy spellings; check
command help for your installed version.
#### Where `deploy` sends requests
All `deploy` commands need only a LangSmith API key (`LANGSMITH_API_KEY`). The CLI
asks the LangSmith API (`LANGSMITH_ENDPOINT`, or `https://api.smith.langchain.com`
by default) which workspaces the key can use. If the workspace runs on a
LangSmith data plane in your own cloud (BYOC on AWS, Azure, or GCP), the CLI
talks to that data plane's host API and sets the workspace for you. The data
plane URL must use https, since the API key is sent there. Status links still
point at the LangSmith UI. If the key's workspaces sit on different data planes,
set `LANGSMITH_TENANT_ID` to the workspace ID to reach its data plane; without
it, the CLI starts on the LangSmith control plane, and the workspace ID you
enter when asked picks the data plane. A `LANGSMITH_TENANT_ID` the key can't
use is an error. If the workspace lookup fails, the CLI says so and uses the
LangSmith control plane.
`--host-url` (or `LANGGRAPH_HOST_URL`) sends every request to the given host
backend URL instead and skips this lookup.
#### What a data plane supports
On a BYOC data plane, the data plane decides which deployments `deploy` can make:
- Building with `deploy` (a local Docker build, or `--remote`) needs a data plane
that supports CLI builds. Otherwise, push to a registry you manage with
`--push-to <registry>/<repository>`, or deploy an existing image with
`--image-uri`. Both work on every data plane.
- `--agent-server-type` defaults to `serverless`, or to `dev` on a data plane
without scale to zero. Asking for `serverless` or `dedicated` on a data plane
that doesn't support it fails before anything is created.
### `langgraph deploy metrics`
Fetch Agent Server monitoring time series as JSON through the LangSmith control plane.
Use `langgraph deploy list` to find the Agent Server ID. Authentication uses the same
API key and workspace configuration as the other `deploy` commands.
Fetch Agent Server monitoring time series as JSON. Like the other `deploy`
commands, it finds the API key's workspace and sends the request to that
workspace's control plane or data plane (see
[Where `deploy` sends requests](#where-deploy-sends-requests)). Use
`langgraph deploy list` to find the Agent Server ID.
```bash
langgraph deploy metrics AGENT_SERVER_ID \
+144 -27
View File
@@ -31,7 +31,12 @@ from langgraph_cli.host_backend import (
ControlPlaneEndpoints,
HostBackendClient,
HostBackendError,
InstanceFlags,
LangSmithApiClient,
SourceName,
Workspace,
WorkspaceRouter,
langsmith_api_url,
)
from langgraph_cli.image_reference import DIGEST_SEPARATOR, ImageReference
from langgraph_cli.progress import Progress
@@ -108,6 +113,20 @@ _LISTENER_REQUIRED_MARKER = "listener_id' is required"
_LISTENERS_SHOWN = 10
_LISTENER_NOT_FOUND_STATUSES = frozenset({404, 422})
_LISTENERS_DOCS_URL = "https://docs.langchain.com/langsmith/control-plane#listeners"
_DEFAULT_AGENT_SERVER_TYPE = "serverless"
_WIRE_DEPLOYMENT_TYPES = {"serverless": "dev_zero", "dedicated": "prod"}
_SOURCE_REJECTED_PREFIX = "'source' must be"
_RESOURCE_SPEC_REQUIRED_MARKER = "'source_config.resource_spec' is required"
_HOST_URL_ON_A_DATA_PLANE = (
"If --host-url or LANGGRAPH_HOST_URL points at a BYOC data plane, drop it so "
"'langgraph deploy' finds the data plane from your API key."
)
_CLI_BUILDS_UNSUPPORTED = (
"This LangSmith data plane does not build images for 'langgraph deploy'. "
"Push the image to a registry you manage with --push-to "
"<registry>/<repository>, or deploy an image that is already there with "
"--image-uri."
)
_NO_LISTENERS = (
"This workspace has no listeners, so --listener-id and --k8s-namespace "
"do not apply."
@@ -1512,11 +1531,10 @@ def _run_remote_build(
@dataclass(frozen=True, slots=True)
class DeployContext:
client: HostBackendClient
endpoints: ControlPlaneEndpoints
spec: BuildSpec
verbose: bool
selector: DeploymentSelector
deployment_type: str
agent_server_type: str | None
secrets: list[dict[str, str]]
tracked_packages: list[str] | None
@@ -1531,17 +1549,70 @@ class DeploymentSource(Protocol):
def run(self, ctx: DeployContext) -> DeployOutcome: ...
def _unsupported_agent_server_type(label: str) -> click.UsageError:
return click.UsageError(
f"This LangSmith data plane does not support {label} Agent Servers. "
"Use --agent-server-type dev instead."
)
def _require_cli_builds(client: HostBackendClient) -> InstanceFlags | None:
flags = client.instance_flags()
if flags is not None and not flags.cli_builds:
raise click.UsageError(_CLI_BUILDS_UNSUPPORTED)
return flags
def _data_plane_source_config(
flags: InstanceFlags, agent_server_type: str | None
) -> dict[str, object]:
requested = agent_server_type or (
_DEFAULT_AGENT_SERVER_TYPE if flags.scale_to_zero else "dev"
)
if requested == "dev":
return {"resource_spec": _OPERATOR_DEFAULT_RESOURCE_SPEC}
if requested == "serverless":
if not flags.scale_to_zero:
raise _unsupported_agent_server_type("serverless (scale to zero)")
return {
"resource_spec": _OPERATOR_DEFAULT_RESOURCE_SPEC,
"deployment_type": _WIRE_DEPLOYMENT_TYPES["serverless"],
}
if not flags.dedicated:
raise _unsupported_agent_server_type("dedicated")
return {
"resource_spec": None,
"deployment_type": _WIRE_DEPLOYMENT_TYPES["dedicated"],
}
def _new_deployment_source_config(
flags: InstanceFlags | None, agent_server_type: str | None
) -> dict[str, object]:
if flags is not None:
return _data_plane_source_config(flags, agent_server_type)
requested = agent_server_type or _DEFAULT_AGENT_SERVER_TYPE
return {"deployment_type": _WIRE_DEPLOYMENT_TYPES.get(requested, requested)}
def _with_hint(err: HostBackendError, hint: str) -> HostBackendError:
return HostBackendError(
f"{err.message}\n{hint}", status_code=err.status_code, detail=err.detail
)
def _resolve_or_create(
ctx: DeployContext, *, source: SourceName, not_found_message: str
) -> tuple[str, int]:
if isinstance(ctx.selector, ById):
existing, step = _fetch_deployment(ctx.client, 1, ctx.selector)
else:
existing, step = _find_deployment(
ctx.client, 1, ctx.selector, not_found_message=not_found_message
)
flags = _require_cli_builds(ctx.client)
if existing is not None:
return existing.id, step
found, step = _find_deployment(
ctx.client, 1, ctx.selector, not_found_message=not_found_message
)
if found is not None:
return found.id, step
try:
created, step = _create_deployment(
ctx.client,
@@ -1549,7 +1620,7 @@ def _resolve_or_create(
name=ctx.selector.name if isinstance(ctx.selector, ByName) else None,
agent=asdict(ctx.selector) if isinstance(ctx.selector, ByAgent) else None,
source=source,
source_config={"deployment_type": ctx.deployment_type},
source_config=_new_deployment_source_config(flags, ctx.agent_server_type),
source_revision_config={},
secrets=ctx.secrets,
)
@@ -1557,11 +1628,15 @@ def _resolve_or_create(
if err.status_code == 400 and err.detail == (
"Scale to zero deployments are not supported in AWS environments"
):
raise HostBackendError(
f"{err.message}\nUse --agent-server-type dev instead.",
status_code=err.status_code,
detail=err.detail,
) from None
raise _with_hint(err, "Use --agent-server-type dev instead.") from None
if err.status_code == 400 and (err.detail or "").startswith(
_SOURCE_REJECTED_PREFIX
):
raise _with_hint(err, _CLI_BUILDS_UNSUPPORTED) from None
if err.status_code == 400 and _RESOURCE_SPEC_REQUIRED_MARKER in (
err.detail or ""
):
raise _with_hint(err, _HOST_URL_ON_A_DATA_PLANE) from None
if _needs_a_listener(err):
raise ListenerRequiredError(
"The image has to come from a registry you manage, so re-run with "
@@ -1787,7 +1862,7 @@ class CustomerRegistrySource:
requested = self.create_only.placement
if requested.listener_id is not None:
return requested.on(_requested_listener(ctx.client, requested.listener_id))
if not (ctx.endpoints.is_cloud or requested.requested):
if not (ctx.client.endpoints.is_cloud or requested.requested):
return Unplaced()
return requested.among(_available_listeners(ctx.client))
@@ -1995,16 +2070,60 @@ def _create_host_backend_client(
fg="yellow",
)
resolved_api_key = click.prompt("Enter LangSmith API key", hide_input=True)
tenant_id = env_vars.get("LANGSMITH_TENANT_ID") or os.environ.get(
"LANGSMITH_TENANT_ID"
tenant_id = (
env_vars.get("LANGSMITH_TENANT_ID")
or os.environ.get("LANGSMITH_TENANT_ID")
or None
)
langsmith_endpoint = env_vars.get("LANGSMITH_ENDPOINT") or os.environ.get(
"LANGSMITH_ENDPOINT"
)
endpoints = ControlPlaneEndpoints.resolve(host_url, langsmith_endpoint)
return HostBackendClient(
endpoints.control_plane_url, resolved_api_key, tenant_id=tenant_id
if host_url:
return HostBackendClient(host_url, resolved_api_key, tenant_id)
workspaces = _list_workspaces(
LangSmithApiClient(langsmith_api_url(langsmith_endpoint), resolved_api_key)
)
target = _discover_target(workspaces, tenant_id)
return HostBackendClient(
ControlPlaneEndpoints.for_workspace(target.data_plane_url, langsmith_endpoint),
resolved_api_key,
target.tenant_id,
router=WorkspaceRouter(workspaces, langsmith_endpoint),
)
@dataclass(frozen=True, slots=True)
class HostTarget:
tenant_id: str | None
data_plane_url: str | None = None
def _list_workspaces(langsmith: LangSmithApiClient) -> list[Workspace]:
try:
return langsmith.list_workspaces()
except HostBackendError:
click.secho(
"Could not look up this API key's LangSmith workspaces; "
"using the default LangSmith control plane.",
fg="yellow",
err=True,
)
return []
def _discover_target(workspaces: list[Workspace], tenant_id: str | None) -> HostTarget:
if tenant_id is not None and workspaces:
workspaces = [w for w in workspaces if w.has_id(tenant_id)]
if not workspaces:
raise click.ClickException(
f"This API key has no access to workspace {tenant_id}. "
"Check LANGSMITH_TENANT_ID."
)
data_plane_urls = {w.data_plane_url for w in workspaces}
if len(data_plane_urls) != 1 or None in data_plane_urls:
return HostTarget(tenant_id)
only_workspace_id = workspaces[0].id if len(workspaces) == 1 else None
return HostTarget(only_workspace_id, data_plane_urls.pop())
def _call_host_backend_with_optional_tenant(
@@ -2227,12 +2346,13 @@ def _deploy_base_options(
"--agent-server-type",
"deployment_type",
type=click.Choice(["serverless", "dedicated", "dev", "prod"]),
default="serverless",
show_default=True,
default=None,
show_default=_DEFAULT_AGENT_SERVER_TYPE,
help=(
"Agent Server type (used when creating a new Agent Server): "
"serverless (scale to zero) or dedicated (prod); "
"legacy dev and prod are also accepted. "
"legacy dev and prod are also accepted. Defaults to dev on "
"a LangSmith data plane without scale to zero. "
"Ignored with --push-to."
),
),
@@ -2417,7 +2537,7 @@ def _deploy_cmd(
host_url: str | None,
api_key: str | None,
deployment_id: str | None,
deployment_type: str,
deployment_type: str | None,
name: str | None,
agent_id: str | None,
environment: str | None,
@@ -2517,7 +2637,6 @@ def _deploy_cmd(
outcome = source.run(
DeployContext(
client=client,
endpoints=client.endpoints,
spec=BuildSpec(
config=config,
config_json=config_json,
@@ -2530,9 +2649,7 @@ def _deploy_cmd(
),
verbose=verbose,
selector=selector,
deployment_type={"serverless": "dev_zero", "dedicated": "prod"}.get(
deployment_type, deployment_type
),
agent_server_type=deployment_type,
secrets=secrets,
tracked_packages=tracked_packages,
)
+194 -34
View File
@@ -2,10 +2,11 @@
from __future__ import annotations
from collections.abc import Mapping
from collections.abc import Mapping, Sequence
from dataclasses import dataclass
from typing import Any, Literal
from urllib.parse import urlparse
from uuid import UUID
import click
import httpx
@@ -16,10 +17,13 @@ CLOUD_DOMAIN = "langchain.com"
CLOUD_API_HOST = "api.smith.langchain.com"
CLOUD_CONTROL_PLANE_HOST = "api.host.langchain.com"
CLOUD_DASHBOARD_HOST = "smith.langchain.com"
CLOUD_LANGSMITH_API_URL = f"https://{CLOUD_API_HOST}"
CONTROL_PLANE_PATH = "/api-host"
INFO_PATH = "/api/v1/info"
LANGSMITH_API_PATHS = ("/api/v1", "/api")
LOCAL_HOSTNAMES = ("localhost", "127.0.0.1")
MAX_PAGE_SIZE = 100
WORKSPACE_LOOKUP_TIMEOUT_SECONDS = 5
SourceName = Literal["internal_docker", "internal_source", "external_docker"]
@@ -27,6 +31,7 @@ SourceName = Literal["internal_docker", "internal_source", "external_docker"]
class ControlPlaneEndpoints:
control_plane_url: str
dashboard_url: str
info_url: str | None = None
@classmethod
def resolve(
@@ -50,22 +55,66 @@ class ControlPlaneEndpoints:
control_plane_url = url.rstrip("/")
hostname = urlparse(control_plane_url).hostname or ""
if control_plane_url.endswith(CONTROL_PLANE_PATH):
return cls(control_plane_url, control_plane_url[: -len(CONTROL_PLANE_PATH)])
return cls(
control_plane_url, control_plane_url.removesuffix(CONTROL_PLANE_PATH)
)
if hostname in LOCAL_HOSTNAMES:
return cls(control_plane_url, control_plane_url)
return cls(control_plane_url, _cloud_dashboard_for(hostname))
@classmethod
def from_langsmith_endpoint(cls, endpoint: str) -> ControlPlaneEndpoints:
parsed = urlparse(endpoint.rstrip("/"))
hostname = parsed.hostname or ""
hostname = urlparse(endpoint).hostname or ""
if _is_cloud_host(hostname):
return cls.from_control_plane_url(
f"https://{_cloud_control_plane_host_for(hostname)}"
)
root = f"{parsed.scheme}://{parsed.netloc}{_without_api_path(parsed.path)}"
root = langsmith_api_url(endpoint)
return cls(f"{root}{CONTROL_PLANE_PATH}", root)
@classmethod
def on_data_plane(
cls, data_plane_url: str, langsmith_endpoint: str | None
) -> ControlPlaneEndpoints:
_require_https(data_plane_url)
endpoint_is_the_data_plane = (
langsmith_endpoint is not None
and urlparse(langsmith_endpoint).hostname
== urlparse(data_plane_url).hostname
)
dashboard_url = cls.resolve(
None, None if endpoint_is_the_data_plane else langsmith_endpoint
).dashboard_url
root = data_plane_url.rstrip("/")
return cls(f"{root}{CONTROL_PLANE_PATH}", dashboard_url, f"{root}{INFO_PATH}")
@classmethod
def for_workspace(
cls, data_plane_url: str | None, langsmith_endpoint: str | None
) -> ControlPlaneEndpoints:
if data_plane_url:
return cls.on_data_plane(data_plane_url, langsmith_endpoint)
return cls.resolve(None, langsmith_endpoint)
def _require_https(url: str) -> None:
parsed = urlparse(url)
if parsed.scheme == "https" or (
parsed.scheme == "http" and parsed.hostname in LOCAL_HOSTNAMES
):
return
raise click.ClickException(
f"Refusing to send your API key to the data plane at {url}: "
"data plane URLs must use https."
)
def langsmith_api_url(langsmith_endpoint: str | None) -> str:
if not langsmith_endpoint:
return CLOUD_LANGSMITH_API_URL
parsed = urlparse(langsmith_endpoint.rstrip("/"))
return f"{parsed.scheme}://{parsed.netloc}{_without_api_path(parsed.path)}"
def _is_cloud_host(hostname: str) -> bool:
return hostname == CLOUD_DOMAIN or hostname.endswith(f".{CLOUD_DOMAIN}")
@@ -124,45 +173,80 @@ def _error_detail(response: httpx.Response) -> str | None:
return detail if isinstance(detail, str) else None
class HostBackendClient:
"""Minimal JSON HTTP client for the host backend deployment service."""
@dataclass(frozen=True, slots=True)
class Workspace:
id: str
data_plane_url: str | None
@classmethod
def from_api(cls, workspace: dict[str, Any]) -> Workspace:
data_plane_url = (workspace.get("data_plane_url") or "").rstrip("/")
return cls(workspace["id"], data_plane_url or None)
def has_id(self, workspace_id: str) -> bool:
return _as_uuid(self.id) == _as_uuid(workspace_id)
def _as_uuid(workspace_id: str) -> UUID | str:
try:
return UUID(workspace_id)
except ValueError:
return workspace_id
@dataclass(frozen=True, slots=True)
class WorkspaceRouter:
workspaces: Sequence[Workspace]
langsmith_endpoint: str | None
def endpoints_for(self, workspace_id: str) -> ControlPlaneEndpoints | None:
workspace = next((w for w in self.workspaces if w.has_id(workspace_id)), None)
if workspace is None:
return None
return ControlPlaneEndpoints.for_workspace(
workspace.data_plane_url, self.langsmith_endpoint
)
@dataclass(frozen=True, slots=True)
class InstanceFlags:
scale_to_zero: bool
dedicated: bool
cli_builds: bool
@classmethod
def from_info(cls, info: object) -> InstanceFlags:
flags = info.get("instance_flags") if isinstance(info, dict) else None
if not isinstance(flags, dict):
flags = {}
return cls(
scale_to_zero=flags.get("deployments_scale_to_zero_supported") is True,
dedicated=flags.get("deployments_dedicated_supported") is True,
cli_builds=flags.get("deployments_cli_builds_supported") is True,
)
def _api_key_headers(api_key: str) -> dict[str, str]:
return {"X-Api-Key": api_key, "Accept": "application/json"}
class _JsonClient:
def __init__(
self,
base_url: str,
api_key: str,
tenant_id: str | None = None,
headers: dict[str, str],
transport: httpx.BaseTransport | None,
*,
transport: httpx.BaseTransport | None = None,
timeout: float = 30,
retries: int = 3,
):
if not base_url:
raise click.UsageError("Host backend URL is required")
headers: dict[str, str] = {
"X-Api-Key": api_key,
"Accept": "application/json",
}
if tenant_id:
headers["X-Tenant-ID"] = tenant_id
self._endpoints = ControlPlaneEndpoints.from_control_plane_url(base_url)
self._base_url = self._endpoints.control_plane_url
self._client = httpx.Client(
base_url=self._base_url,
base_url=base_url,
headers=headers,
transport=transport or httpx.HTTPTransport(retries=3),
timeout=30,
transport=transport or httpx.HTTPTransport(retries=retries),
timeout=timeout,
)
@property
def base_url(self) -> str:
return self._base_url
@property
def endpoints(self) -> ControlPlaneEndpoints:
return self._endpoints
def set_tenant(self, tenant_id: str) -> None:
self._client.headers["X-Tenant-ID"] = tenant_id
def _request(
self,
method: str,
@@ -193,6 +277,82 @@ class HostBackendClient:
f"Failed to decode response from {path}: {err}"
) from None
class LangSmithApiClient(_JsonClient):
def __init__(
self,
api_url: str,
api_key: str,
*,
transport: httpx.BaseTransport | None = None,
):
super().__init__(
api_url.rstrip("/"),
_api_key_headers(api_key),
transport,
timeout=WORKSPACE_LOOKUP_TIMEOUT_SECONDS,
retries=0,
)
def list_workspaces(self) -> list[Workspace]:
workspaces = self._request("GET", "/api/v1/workspaces")
if not isinstance(workspaces, list):
return []
return [
Workspace.from_api(workspace)
for workspace in workspaces
if isinstance(workspace, dict)
and isinstance(workspace.get("id"), str)
and not workspace.get("is_deleted")
]
class HostBackendClient(_JsonClient):
"""Minimal JSON HTTP client for the host backend deployment service."""
def __init__(
self,
control_plane: str | ControlPlaneEndpoints,
api_key: str,
tenant_id: str | None = None,
*,
router: WorkspaceRouter | None = None,
transport: httpx.BaseTransport | None = None,
):
if not control_plane:
raise click.UsageError("Host backend URL is required")
headers = _api_key_headers(api_key)
if tenant_id:
headers["X-Tenant-ID"] = tenant_id
self._endpoints = (
control_plane
if isinstance(control_plane, ControlPlaneEndpoints)
else ControlPlaneEndpoints.from_control_plane_url(control_plane)
)
self._router = router or WorkspaceRouter((), None)
super().__init__(self._endpoints.control_plane_url, headers, transport)
@property
def base_url(self) -> str:
return self._endpoints.control_plane_url
@property
def endpoints(self) -> ControlPlaneEndpoints:
return self._endpoints
def set_tenant(self, tenant_id: str) -> None:
endpoints = self._router.endpoints_for(tenant_id)
if endpoints is not None:
self._endpoints = endpoints
self._client.base_url = endpoints.control_plane_url
self._client.headers["X-Tenant-ID"] = tenant_id
def instance_flags(self) -> InstanceFlags | None:
"""Data plane capabilities, or None when the host backend is not on one."""
if self._endpoints.info_url is None:
return None
return InstanceFlags.from_info(self._request("GET", self._endpoints.info_url))
def create_deployment(
self,
*,
@@ -4,6 +4,7 @@ import uuid
from collections.abc import Callable, Iterator
from contextlib import contextmanager
from dataclasses import dataclass, field
from functools import partial
from pathlib import Path
import click.exceptions
@@ -14,7 +15,11 @@ from click.testing import CliRunner, Result
import langgraph_cli.archive as archive_module
import langgraph_cli.deploy as deploy_module
from langgraph_cli.cli import cli
from langgraph_cli.host_backend import HostBackendClient
from langgraph_cli.host_backend import (
CONTROL_PLANE_PATH,
HostBackendClient,
LangSmithApiClient,
)
from langgraph_cli.image_reference import ImageReference
CONTROL_PLANE_URL = "https://control-plane.example.com"
@@ -61,6 +66,17 @@ LISTENER_REQUIRED = (
"Source configuration error: 'source_config.listener_id' is required "
f"for workspace with available listener IDs: ['{LISTENER_ID}']"
)
DATA_PLANE_URL = "https://langsmith.customer.example"
WORKSPACE_ID = "workspace-1"
BYOC_WORKSPACE = {"id": WORKSPACE_ID, "data_plane_url": DATA_PLANE_URL}
SAAS_WORKSPACE = {"id": "saas-workspace", "data_plane_url": None}
SCALE_TO_ZERO = "deployments_scale_to_zero_supported"
DEDICATED = "deployments_dedicated_supported"
CLI_BUILDS = "deployments_cli_builds_supported"
BYOC_FLAGS = {CLI_BUILDS: True, SCALE_TO_ZERO: True, DEDICATED: True}
REVISION_ID = "rev-1"
DISCOVER_WORKSPACES = "GET /api/v1/workspaces"
DATA_PLANE_INFO = "GET /api/v1/info"
LIST_DEPLOYMENTS = "GET /v2/deployments"
LIST_LISTENERS = "GET /v2/listeners"
CREATE_DEPLOYMENT = "POST /v2/deployments"
@@ -98,19 +114,45 @@ class ControlPlaneDouble:
push_token_extra: dict = field(default_factory=dict)
upload_url_extra: dict = field(default_factory=dict)
create_error: str | None = None
create_status: int = 400
listeners: list[dict] = field(default_factory=list)
listeners_by_id: dict[str, dict] = field(default_factory=dict)
workspaces: list[dict] = field(default_factory=list)
workspaces_status: int = 200
requires_workspace: bool = False
instance_flags: dict[str, bool] = field(default_factory=dict)
bodies: dict[str, dict] = field(default_factory=dict)
requests: list[httpx.Request] = field(default_factory=list)
def handle(self, request: httpx.Request) -> httpx.Response:
route = f"{request.method} {request.url.path}"
route = f"{request.method} {self._path(request)}"
self.timeline.append(route)
self.requests.append(request)
if request.content:
self.bodies[route] = json.loads(request.content)
return self._respond(request)
def host_backend_requests(self) -> list[httpx.Request]:
return [r for r in self.requests if not r.url.path.startswith("/api/v1/")]
@staticmethod
def _path(request: httpx.Request) -> str:
return request.url.path.removeprefix(CONTROL_PLANE_PATH)
def _respond(self, request: httpx.Request) -> httpx.Response:
method, path = request.method, request.url.path
method, path = request.method, self._path(request)
if (method, path) == ("GET", "/api/v1/workspaces"):
return httpx.Response(self.workspaces_status, json=self.workspaces)
if (method, path) == ("GET", "/api/v1/info"):
return httpx.Response(200, json={"instance_flags": self.instance_flags})
if self.requires_workspace and "X-Tenant-ID" not in request.headers:
return httpx.Response(
403, json={"detail": "This API key requires workspace specification"}
)
if path.endswith("/revisions"):
return httpx.Response(200, json={"resources": [{"id": REVISION_ID}]})
if path.endswith("/build_logs"):
return httpx.Response(200, json={"logs": []})
if (method, path) == ("GET", "/v2/listeners"):
offset = int(request.url.params.get("offset", 0))
limit = int(request.url.params.get("limit", 20))
@@ -149,7 +191,9 @@ class ControlPlaneDouble:
)
if (method, path) == ("POST", "/v2/deployments"):
if self.create_error is not None:
return httpx.Response(400, json={"detail": self.create_error})
return httpx.Response(
self.create_status, json={"detail": self.create_error}
)
return httpx.Response(201, json={"id": CREATED_ID, "tenant_id": "tenant-1"})
if path.endswith("/push-token"):
if self.push_token_status != 200:
@@ -183,15 +227,14 @@ class ControlPlaneDouble:
)
raise AssertionError(f"unexpected control plane call: {method} {path}")
def client_factory(self) -> Callable[..., HostBackendClient]:
def install(self, monkeypatch: pytest.MonkeyPatch) -> None:
transport = httpx.MockTransport(self.handle)
def make(
host_url: str, api_key: str, tenant_id: str | None = None
) -> HostBackendClient:
return HostBackendClient(host_url, api_key, tenant_id, transport=transport)
return make
for client_class in (HostBackendClient, LangSmithApiClient):
monkeypatch.setattr(
deploy_module,
client_class.__name__,
partial(client_class, transport=transport),
)
@dataclass
@@ -288,15 +331,15 @@ class DeployProject:
timeline: list[str]
uploads: list[tuple[str, str, int, dict[str, str] | None]]
def run(self, *args: str, host_url: str = CONTROL_PLANE_URL) -> Result:
def run(self, *args: str, host_url: str | None = CONTROL_PLANE_URL) -> Result:
host_args = ("--host-url", host_url) if host_url else ()
return CliRunner().invoke(
cli,
[
"deploy",
"--api-key",
"test-key",
"--host-url",
host_url,
*host_args,
"--name",
"my-app",
"--no-input",
@@ -341,9 +384,7 @@ def deploy_project(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> DeployPro
monkeypatch.setattr(deploy_module, "_no_input", False)
monkeypatch.setattr(deploy_module, "_emitter", None)
monkeypatch.setattr(
deploy_module, "HostBackendClient", control_plane.client_factory()
)
control_plane.install(monkeypatch)
monkeypatch.setattr(deploy_module, "build_docker_image", docker.build_docker_image)
monkeypatch.setattr(deploy_module, "subp_exec", docker.subp_exec)
monkeypatch.setattr(deploy_module, "Runner", _fake_runner)
@@ -1578,3 +1619,414 @@ def test_a_listener_id_that_is_not_an_identifier_still_names_the_real_ones(
assert "was not found" in result.output
assert LISTENER_ID in result.output
assert "uuid_parsing" not in result.output
@pytest.fixture
def byoc_project(deploy_project: DeployProject) -> DeployProject:
deploy_project.control_plane.workspaces = [BYOC_WORKSPACE]
deploy_project.control_plane.instance_flags = dict(BYOC_FLAGS)
return deploy_project
@pytest.mark.parametrize("build_mode", ["--no-remote", "--remote"])
def test_byoc_deploy_runs_on_the_discovered_data_plane_and_workspace(
byoc_project: DeployProject, build_mode: str
) -> None:
result = byoc_project.run(build_mode, host_url=None)
assert result.exit_code == 0, result.output
assert byoc_project.timeline[:4] == [
DISCOVER_WORKSPACES,
LIST_DEPLOYMENTS,
DATA_PLANE_INFO,
CREATE_DEPLOYMENT,
]
host_backend_requests = byoc_project.control_plane.host_backend_requests()
assert host_backend_requests
assert all(
str(r.url).startswith(f"{DATA_PLANE_URL}/api-host/v2/")
and r.headers["X-Tenant-ID"] == WORKSPACE_ID
for r in host_backend_requests
)
@pytest.mark.parametrize(
"langsmith_endpoint",
[
pytest.param(None, id="default_endpoint"),
pytest.param(DATA_PLANE_URL, id="endpoint_is_the_data_plane"),
],
)
def test_byoc_status_link_points_at_langsmith_not_the_data_plane(
byoc_project: DeployProject,
monkeypatch: pytest.MonkeyPatch,
langsmith_endpoint: str | None,
) -> None:
if langsmith_endpoint:
monkeypatch.setenv("LANGSMITH_ENDPOINT", langsmith_endpoint)
result = byoc_project.run("--no-remote", host_url=None)
assert (
"View status: https://smith.langchain.com/o/tenant-1/host/deployments/dep-created"
in result.output
)
@pytest.mark.parametrize(
("instance_flags", "type_args", "source_config"),
[
pytest.param(
BYOC_FLAGS,
[],
{"resource_spec": {}, "deployment_type": "dev_zero"},
id="default_is_serverless_with_scale_to_zero",
),
pytest.param(
{CLI_BUILDS: True},
[],
{"resource_spec": {}},
id="default_is_dev_without_scale_to_zero",
),
pytest.param(
BYOC_FLAGS,
["--agent-server-type", "dev"],
{"resource_spec": {}},
id="dev",
),
pytest.param(
BYOC_FLAGS,
["--agent-server-type", "dedicated"],
{"resource_spec": None, "deployment_type": "prod"},
id="dedicated",
),
pytest.param(
BYOC_FLAGS,
["--agent-server-type", "prod"],
{"resource_spec": None, "deployment_type": "prod"},
id="legacy_prod_is_dedicated",
),
],
)
@pytest.mark.parametrize("build_mode", ["--no-remote", "--remote"])
def test_byoc_create_sizes_the_agent_server_by_resource_spec(
byoc_project: DeployProject,
build_mode: str,
instance_flags: dict[str, bool],
type_args: list[str],
source_config: dict,
) -> None:
byoc_project.control_plane.instance_flags = instance_flags
result = byoc_project.run(build_mode, *type_args, host_url=None)
assert result.exit_code == 0, result.output
assert (
byoc_project.control_plane.bodies[CREATE_DEPLOYMENT]["source_config"]
== source_config
)
@pytest.mark.parametrize(
("instance_flags", "type_args", "expected"),
[
pytest.param(
{CLI_BUILDS: True},
["--agent-server-type", "serverless"],
"does not support serverless (scale to zero) Agent Servers",
id="serverless_without_scale_to_zero",
),
pytest.param(
{CLI_BUILDS: True},
["--agent-server-type", "dedicated"],
"does not support dedicated Agent Servers",
id="dedicated_without_dedicated",
),
pytest.param(
{CLI_BUILDS: True},
["--agent-server-type", "prod"],
"does not support dedicated Agent Servers",
id="prod_without_dedicated",
),
pytest.param(
{SCALE_TO_ZERO: True, DEDICATED: True},
[],
"--push-to <registry>/<repository>",
id="no_cli_builds",
),
],
)
@pytest.mark.parametrize("build_mode", ["--no-remote", "--remote"])
def test_byoc_refuses_unsupported_deploys_before_creating_anything(
byoc_project: DeployProject,
build_mode: str,
instance_flags: dict[str, bool],
type_args: list[str],
expected: str,
) -> None:
byoc_project.control_plane.instance_flags = instance_flags
result = byoc_project.run(build_mode, *type_args, host_url=None)
assert result.exit_code == 2, result.output
assert expected in result.output
assert CREATE_DEPLOYMENT not in byoc_project.timeline
@pytest.mark.parametrize("build_mode", ["--no-remote", "--remote"])
def test_byoc_redeploys_an_existing_dedicated_agent_server_without_dedicated_support(
byoc_project: DeployProject, build_mode: str
) -> None:
byoc_project.control_plane.instance_flags = {CLI_BUILDS: True}
byoc_project.control_plane.existing_deployments = [
{"id": "dep-existing", "name": "my-app"}
]
result = byoc_project.run(
build_mode, "--agent-server-type", "dedicated", host_url=None
)
assert result.exit_code == 0, result.output
assert CREATE_DEPLOYMENT not in byoc_project.timeline
def test_byoc_without_cli_builds_names_both_external_image_flags(
byoc_project: DeployProject,
) -> None:
byoc_project.control_plane.instance_flags = {}
result = byoc_project.run("--no-remote", host_url=None)
assert "--push-to" in result.output
assert "--image-uri" in result.output
def test_byoc_without_cli_builds_still_deploys_an_external_image(
byoc_project: DeployProject,
) -> None:
byoc_project.control_plane.instance_flags = {}
result = byoc_project.run("--image-uri", EXTERNAL_DIGEST, host_url=None)
assert result.exit_code == 0, result.output
assert byoc_project.timeline == [
DISCOVER_WORKSPACES,
LIST_DEPLOYMENTS,
CREATE_DEPLOYMENT,
]
assert byoc_project.control_plane.bodies[CREATE_DEPLOYMENT]["source"] == (
"external_docker"
)
@pytest.mark.parametrize(
("workspaces", "workspaces_status"),
[
pytest.param([SAAS_WORKSPACE], 200, id="workspace_without_a_data_plane"),
pytest.param([], 500, id="discovery_fails"),
],
)
def test_saas_deploy_pays_one_discovery_call_and_is_otherwise_unchanged(
deploy_project: DeployProject, workspaces: list[dict], workspaces_status: int
) -> None:
deploy_project.control_plane.workspaces = workspaces
deploy_project.control_plane.workspaces_status = workspaces_status
result = deploy_project.run("--no-remote", host_url=None)
assert result.exit_code == 0, result.output
assert deploy_project.timeline[:3] == [
DISCOVER_WORKSPACES,
LIST_DEPLOYMENTS,
CREATE_DEPLOYMENT,
]
assert DATA_PLANE_INFO not in deploy_project.timeline
assert all(
str(r.url).startswith(f"{CLOUD_CONTROL_PLANE_URL}/v2/")
and "X-Tenant-ID" not in r.headers
for r in deploy_project.control_plane.host_backend_requests()
)
assert deploy_project.control_plane.bodies[CREATE_DEPLOYMENT]["source_config"] == {
"deployment_type": "dev_zero"
}
def test_failed_discovery_says_it_falls_back_to_the_default_control_plane(
deploy_project: DeployProject,
) -> None:
deploy_project.control_plane.workspaces_status = 500
result = deploy_project.run("--no-remote", host_url=None)
assert result.exit_code == 0, result.output
assert "using the default LangSmith control plane" in result.stderr
def test_host_url_on_a_data_plane_gets_the_drop_host_url_hint(
byoc_project: DeployProject,
) -> None:
detail = (
"'source_config.resource_spec' is required for 'external_docker' source, "
"and for every source on BYOC data planes, and must be 'null' for all "
"other sources."
)
byoc_project.control_plane.create_error = detail
result = byoc_project.run(
"--no-remote", host_url=f"{DATA_PLANE_URL}{CONTROL_PLANE_PATH}"
)
assert result.exit_code == 1, result.output
assert DATA_PLANE_INFO not in byoc_project.timeline
assert detail in result.output
assert "drop it so 'langgraph deploy' finds the data plane" in result.output
def test_host_url_overrides_discovery(byoc_project: DeployProject) -> None:
result = byoc_project.run("--no-remote")
assert result.exit_code == 0, result.output
assert DISCOVER_WORKSPACES not in byoc_project.timeline
assert all(
str(r.url).startswith(CONTROL_PLANE_URL)
for r in byoc_project.control_plane.requests
)
@pytest.mark.parametrize("build_mode", ["--no-remote", "--remote"])
def test_an_older_data_plane_rejecting_the_source_gets_the_external_image_hint(
deploy_project: DeployProject, build_mode: str
) -> None:
detail = "'source' must be one of ['github', 'external_docker']"
deploy_project.control_plane.create_error = detail
result = deploy_project.run(build_mode)
assert result.exit_code == 1, result.output
assert detail in result.output
assert "--push-to <registry>/<repository>" in result.output
assert "--image-uri" in result.output
def test_byoc_build_logs_use_the_discovered_data_plane_and_workspace(
byoc_project: DeployProject,
) -> None:
result = CliRunner().invoke(
cli,
[
"deploy",
"logs",
"--api-key",
"test-key",
"--type",
"build",
"--agent-server-id",
"dep-existing",
],
)
assert result.exit_code == 0, result.output
assert [
(str(r.url).split("?")[0], r.headers["X-Tenant-ID"])
for r in byoc_project.control_plane.host_backend_requests()
] == [
(
f"{DATA_PLANE_URL}/api-host/v2/deployments/dep-existing/revisions",
WORKSPACE_ID,
),
(
f"{DATA_PLANE_URL}/api-host/v1/projects/dep-existing/revisions/"
f"{REVISION_ID}/build_logs",
WORKSPACE_ID,
),
]
def test_mixed_data_planes_without_a_tenant_id_list_through_saas(
deploy_project: DeployProject,
) -> None:
deploy_project.control_plane.workspaces = [BYOC_WORKSPACE, SAAS_WORKSPACE]
result = CliRunner().invoke(
cli, ["deploy", "list", "--json", "--api-key", "test-key"]
)
assert result.exit_code == 0, result.output
assert deploy_project.timeline == [DISCOVER_WORKSPACES, LIST_DEPLOYMENTS]
assert [
str(r.url).split("?")[0]
for r in deploy_project.control_plane.host_backend_requests()
] == [f"{CLOUD_CONTROL_PLANE_URL}/v2/deployments"]
def test_a_prompted_byoc_workspace_is_sent_to_its_data_plane(
deploy_project: DeployProject,
) -> None:
deploy_project.control_plane.workspaces = [SAAS_WORKSPACE, BYOC_WORKSPACE]
deploy_project.control_plane.requires_workspace = True
result = CliRunner().invoke(
cli, ["deploy", "list", "--api-key", "test-key"], input=f"{WORKSPACE_ID}\n"
)
assert result.exit_code == 0, result.output
assert [
(str(r.url).split("?")[0], r.headers.get("X-Tenant-ID"))
for r in deploy_project.control_plane.host_backend_requests()
] == [
(f"{CLOUD_CONTROL_PLANE_URL}/v2/deployments", None),
(f"{DATA_PLANE_URL}/api-host/v2/deployments", WORKSPACE_ID),
]
def test_an_empty_tenant_id_is_treated_as_unset(
byoc_project: DeployProject, monkeypatch: pytest.MonkeyPatch
) -> None:
monkeypatch.setenv("LANGSMITH_TENANT_ID", "")
result = byoc_project.run("--no-remote", host_url=None)
assert result.exit_code == 0, result.output
assert all(
r.headers["X-Tenant-ID"] == WORKSPACE_ID
for r in byoc_project.control_plane.host_backend_requests()
)
def test_a_data_plane_without_https_never_gets_the_api_key(
deploy_project: DeployProject,
) -> None:
deploy_project.control_plane.workspaces = [
{"id": WORKSPACE_ID, "data_plane_url": "http://langsmith.customer.example"}
]
result = deploy_project.run("--no-remote", host_url=None)
assert result.exit_code == 1, result.output
assert "must use https" in result.output
assert deploy_project.timeline == [DISCOVER_WORKSPACES]
def test_a_tenant_id_outside_the_keys_workspaces_fails_before_any_host_call(
byoc_project: DeployProject, monkeypatch: pytest.MonkeyPatch
) -> None:
monkeypatch.setenv("LANGSMITH_TENANT_ID", "unknown-ws")
result = byoc_project.run("--no-remote", host_url=None)
assert result.exit_code == 1, result.output
assert "unknown-ws" in result.output
assert byoc_project.timeline == [DISCOVER_WORKSPACES]
def test_a_data_plane_refusing_local_pushes_shows_its_hint(
byoc_project: DeployProject,
) -> None:
hint = "Local image pushes are not supported on this data plane; use --remote."
byoc_project.control_plane.create_status = 501
byoc_project.control_plane.create_error = hint
result = byoc_project.run("--no-remote", host_url=None)
assert result.exit_code == 1, result.output
assert hint in result.output
+16
View File
@@ -1,10 +1,15 @@
import json
import os
from functools import partial
from pathlib import Path
from unittest.mock import patch
import httpx
import pytest
import langgraph_cli.deploy as deploy_module
from langgraph_cli.host_backend import LangSmithApiClient
@pytest.fixture
def deployment_metrics_response():
@@ -21,3 +26,14 @@ def disable_analytics_env() -> None:
with patch.dict(os.environ, {"LANGGRAPH_CLI_NO_ANALYTICS": "1"}):
yield
@pytest.fixture(autouse=True)
def no_discovered_workspaces(monkeypatch: pytest.MonkeyPatch) -> None:
"""Keep unit tests off the LangSmith API: discovery finds no workspaces."""
transport = httpx.MockTransport(lambda request: httpx.Response(200, json=[]))
monkeypatch.setattr(
deploy_module,
"LangSmithApiClient",
partial(LangSmithApiClient, transport=transport),
)
@@ -20,6 +20,7 @@ from langgraph_cli.deploy import (
CustomerRegistrySource,
DockerBuildCommand,
ExistingDeployment,
HostTarget,
Listener,
ManagedRegistrySource,
OnListener,
@@ -29,9 +30,11 @@ from langgraph_cli.deploy import (
Unplaced,
_call_host_backend_with_optional_tenant,
_create_host_backend_client,
_discover_target,
_docker_config_for_token,
_Emitter,
_env_without_deployment_name,
_list_workspaces,
_parse_env_from_config,
_print_deployment_result,
_resolve_env_path,
@@ -43,7 +46,12 @@ from langgraph_cli.deploy import (
normalize_image_tag,
normalize_name,
)
from langgraph_cli.host_backend import HostBackendClient, HostBackendError
from langgraph_cli.host_backend import (
ControlPlaneEndpoints,
HostBackendClient,
HostBackendError,
LangSmithApiClient,
)
from langgraph_cli.image_reference import ImageReference
@@ -369,6 +377,24 @@ class TestCallHostBackendWithOptionalTenant:
assert "smith.langchain.com" in exc_info.value.message
assert seen_tenant_ids == [None, "workspace-123"]
def test_403_not_enabled_on_a_data_plane_links_langsmith(self):
detail = (
'{"detail":"LangSmith Deployment is not enabled for this organization"}'
)
client = HostBackendClient(
ControlPlaneEndpoints.on_data_plane(
"https://langsmith.customer.example", None
),
"test-key",
transport=httpx.MockTransport(lambda req: httpx.Response(403, text=detail)),
)
with pytest.raises(HostBackendError, match="not enabled") as exc_info:
_call_host_backend_with_optional_tenant(
client, lambda c: c.list_deployments()
)
assert "https://smith.langchain.com/host/deployments" in exc_info.value.message
assert "customer.example" not in exc_info.value.message
def test_other_403_re_raises_original(self):
client = self._make_client(
lambda req: httpx.Response(403, text='{"detail":"some other error"}')
@@ -632,6 +658,120 @@ class TestCreateHostBackendClientEndpoint:
assert client.base_url == "https://custom.host.com"
DATA_PLANE = "https://langsmith.customer.example"
OTHER_DATA_PLANE = "https://other.customer.example"
WORKSPACE_UUID = "6f1c2a9e-0b7d-4c3e-9a51-2d8f4e6b7c10"
def _workspaces(*workspaces: dict) -> LangSmithApiClient:
return LangSmithApiClient(
"https://api.smith.langchain.com",
"key",
transport=httpx.MockTransport(
lambda req: httpx.Response(200, json=list(workspaces))
),
)
class TestDiscoverTarget:
@pytest.mark.parametrize(
("workspaces", "tenant_id", "expected"),
[
pytest.param(
[{"id": "ws-1", "data_plane_url": DATA_PLANE}],
None,
HostTarget("ws-1", DATA_PLANE),
id="only_workspace",
),
pytest.param(
[
{"id": "ws-1", "data_plane_url": DATA_PLANE},
{"id": "ws-2", "data_plane_url": OTHER_DATA_PLANE},
],
"ws-2",
HostTarget("ws-2", OTHER_DATA_PLANE),
id="tenant_id_picks_its_workspace",
),
pytest.param(
[
{"id": "ws-1", "data_plane_url": DATA_PLANE},
{"id": WORKSPACE_UUID, "data_plane_url": OTHER_DATA_PLANE},
],
WORKSPACE_UUID.upper(),
HostTarget(WORKSPACE_UUID, OTHER_DATA_PLANE),
id="tenant_id_matches_the_workspace_uuid_in_any_case",
),
pytest.param(
[
{"id": "ws-1", "data_plane_url": DATA_PLANE},
{
"id": "ws-2",
"data_plane_url": OTHER_DATA_PLANE,
"is_deleted": True,
},
],
None,
HostTarget("ws-1", DATA_PLANE),
id="only_non_deleted_workspace",
),
pytest.param(
[
{"id": "ws-1", "data_plane_url": DATA_PLANE},
{"id": "ws-2", "data_plane_url": DATA_PLANE},
],
None,
HostTarget(None, DATA_PLANE),
id="shared_data_plane_leaves_the_workspace_to_the_backend",
),
pytest.param(
[{"id": "ws-1", "data_plane_url": None}],
None,
HostTarget(None),
id="saas_workspace_keeps_todays_headers",
),
pytest.param(
[
{"id": "ws-1", "data_plane_url": DATA_PLANE},
{"id": "ws-2", "data_plane_url": None},
],
None,
HostTarget(None),
id="mixed_data_planes_leave_the_workspace_to_the_backend",
),
pytest.param(
[
{"id": "ws-1", "data_plane_url": DATA_PLANE},
{"id": "ws-2", "data_plane_url": OTHER_DATA_PLANE},
],
None,
HostTarget(None),
id="different_data_planes_leave_the_workspace_to_the_backend",
),
],
)
def test_picks_the_workspace(self, workspaces, tenant_id, expected):
target = _discover_target(_workspaces(*workspaces).list_workspaces(), tenant_id)
assert target == expected
def test_failed_discovery_keeps_todays_behavior(self):
langsmith = LangSmithApiClient(
"https://api.smith.langchain.com",
"key",
transport=httpx.MockTransport(lambda req: httpx.Response(401)),
)
assert _discover_target(_list_workspaces(langsmith), "ws-1") == HostTarget(
"ws-1"
)
def test_a_tenant_id_outside_the_keys_workspaces_is_named(self):
langsmith = _workspaces({"id": "ws-1", "data_plane_url": DATA_PLANE})
with pytest.raises(click.ClickException, match="workspace unknown-ws"):
_discover_target(langsmith.list_workspaces(), "unknown-ws")
class TestDockerBuildCommand:
@pytest.mark.parametrize(
("machine", "verbose", "expected"),
@@ -1497,6 +1637,11 @@ DEFAULT_UPLOAD_HEADERS = {
},
id="returned_headers_keep_a_content_type",
),
pytest.param(
{"Content-Type": "application/gzip"},
{"content-type": "application/gzip", "content-length": "7"},
id="s3_signs_only_the_content_type",
),
],
)
def test_source_upload_sends_the_headers_the_signed_url_requires(
@@ -1,5 +1,6 @@
import json
import click
import httpx
import pytest
@@ -7,6 +8,11 @@ from langgraph_cli.host_backend import (
ControlPlaneEndpoints,
HostBackendClient,
HostBackendError,
InstanceFlags,
LangSmithApiClient,
Workspace,
WorkspaceRouter,
langsmith_api_url,
)
@@ -737,3 +743,251 @@ def test_error_detail_is_readable(body, expected):
assert error.value.detail == expected
if expected is not None:
assert error.value.message.endswith(expected)
@pytest.mark.parametrize(
("langsmith_endpoint", "expected"),
[
pytest.param(None, "https://api.smith.langchain.com", id="cloud_default"),
pytest.param(
"https://eu.api.smith.langchain.com/",
"https://eu.api.smith.langchain.com",
id="regional_cloud",
),
pytest.param(
"https://smith.example.com/api/v1",
"https://smith.example.com",
id="self_hosted_root",
),
],
)
def test_langsmith_api_url(langsmith_endpoint, expected):
assert langsmith_api_url(langsmith_endpoint) == expected
def test_list_workspaces_reads_the_api_keys_live_workspaces():
seen: dict = {}
def handler(req: httpx.Request) -> httpx.Response:
seen["url"] = str(req.url)
seen["api_key"] = req.headers["x-api-key"]
return httpx.Response(
200,
json=[
{"id": "ws-1", "data_plane_url": "https://dp.example.com/"},
{"id": "ws-2", "data_plane_url": None},
{"id": "ws-3", "data_plane_url": "", "is_deleted": False},
{
"id": "ws-4",
"data_plane_url": "https://old.example.com",
"is_deleted": True,
},
{"data_plane_url": "https://no-id.example.com"},
],
)
client = LangSmithApiClient(
"https://api.smith.langchain.com/",
"key",
transport=httpx.MockTransport(handler),
)
assert client.list_workspaces() == [
Workspace("ws-1", "https://dp.example.com"),
Workspace("ws-2", None),
Workspace("ws-3", None),
]
assert seen == {
"url": "https://api.smith.langchain.com/api/v1/workspaces",
"api_key": "key",
}
@pytest.mark.parametrize(
("langsmith_endpoint", "dashboard_url"),
[
pytest.param(None, "https://smith.langchain.com", id="cloud"),
pytest.param(
"https://eu.api.smith.langchain.com",
"https://eu.smith.langchain.com",
id="regional_cloud",
),
pytest.param(
"https://smith.example.com/api/v1",
"https://smith.example.com",
id="self_hosted",
),
pytest.param(
"https://langsmith.customer.example/api/v1",
"https://smith.langchain.com",
id="endpoint_is_the_data_plane",
),
],
)
def test_data_plane_endpoints_keep_the_data_plane_host_and_link_to_langsmith(
langsmith_endpoint, dashboard_url
):
endpoints = ControlPlaneEndpoints.on_data_plane(
"https://langsmith.customer.example/", langsmith_endpoint
)
assert endpoints == ControlPlaneEndpoints(
"https://langsmith.customer.example/api-host",
dashboard_url,
"https://langsmith.customer.example/api/v1/info",
)
assert not endpoints.is_cloud
@pytest.mark.parametrize(
"data_plane_url",
[
pytest.param("http://langsmith.customer.example", id="http"),
pytest.param("ftp://localhost", id="other_scheme"),
],
)
def test_data_plane_without_https_is_refused(data_plane_url):
with pytest.raises(click.ClickException, match="must use https"):
ControlPlaneEndpoints.on_data_plane(data_plane_url, None)
@pytest.mark.parametrize(
"data_plane_url", ["http://localhost:1980", "http://127.0.0.1:1980"]
)
def test_local_data_plane_may_use_http(data_plane_url):
endpoints = ControlPlaneEndpoints.on_data_plane(data_plane_url, None)
assert endpoints.control_plane_url == f"{data_plane_url}/api-host"
@pytest.mark.parametrize(
("host_url", "langsmith_endpoint"),
[
pytest.param(
"https://langsmith.customer.example/api-host", None, id="api_host_url"
),
pytest.param(None, "https://smith.example.com/api/v1", id="self_hosted"),
pytest.param("https://api.host.langchain.com", None, id="cloud"),
],
)
def test_only_a_discovered_data_plane_reads_instance_flags(
host_url, langsmith_endpoint
):
assert ControlPlaneEndpoints.resolve(host_url, langsmith_endpoint).info_url is None
assert (
ControlPlaneEndpoints.on_data_plane(
"https://langsmith.customer.example", None
).info_url
== "https://langsmith.customer.example/api/v1/info"
)
def test_workspace_ids_match_as_uuids():
workspace = Workspace("6f1c2a9e-0b7d-4c3e-9a51-2d8f4e6b7c10", None)
assert workspace.has_id("6F1C2A9E-0B7D-4C3E-9A51-2D8F4E6B7C10")
assert not workspace.has_id("ws-1")
def test_setting_a_routed_workspace_moves_the_client_to_its_data_plane():
seen: list[tuple[str, str | None]] = []
def handler(req: httpx.Request) -> httpx.Response:
seen.append((str(req.url).split("?")[0], req.headers.get("X-Tenant-ID")))
return httpx.Response(200, json={"resources": []})
router = WorkspaceRouter(
[
Workspace("saas-ws", None),
Workspace("byoc-ws", "https://langsmith.customer.example"),
],
None,
)
client = HostBackendClient(
ControlPlaneEndpoints.resolve(None, None),
"key",
router=router,
transport=httpx.MockTransport(handler),
)
client.set_tenant("byoc-ws")
client.list_deployments()
client.set_tenant("unknown-ws")
client.list_deployments()
assert seen == [
("https://langsmith.customer.example/api-host/v2/deployments", "byoc-ws"),
("https://langsmith.customer.example/api-host/v2/deployments", "unknown-ws"),
]
assert client.endpoints.dashboard_url == "https://smith.langchain.com"
def test_data_plane_client_targets_the_data_plane_host_backend():
seen: list[str] = []
def handler(req: httpx.Request) -> httpx.Response:
seen.append(str(req.url))
return httpx.Response(200, json={"resources": []})
client = HostBackendClient(
ControlPlaneEndpoints.on_data_plane(
"https://byoc.langchain.com", "https://eu.api.smith.langchain.com"
),
"key",
"ws-1",
transport=httpx.MockTransport(handler),
)
client.list_deployments()
assert seen[0].startswith("https://byoc.langchain.com/api-host/v2/deployments?")
assert client.endpoints.dashboard_url == "https://eu.smith.langchain.com"
@pytest.mark.parametrize(
("info", "expected"),
[
pytest.param(
{
"instance_flags": {
"deployments_scale_to_zero_supported": True,
"deployments_dedicated_supported": True,
"deployments_cli_builds_supported": True,
}
},
InstanceFlags(scale_to_zero=True, dedicated=True, cli_builds=True),
id="all_supported",
),
pytest.param(
{"instance_flags": {"deployments_dedicated_supported": True}},
InstanceFlags(scale_to_zero=False, dedicated=True, cli_builds=False),
id="missing_flags_are_false",
),
pytest.param(
{},
InstanceFlags(scale_to_zero=False, dedicated=False, cli_builds=False),
id="older_data_plane_without_instance_flags",
),
],
)
def test_data_plane_client_reads_instance_flags_from_info(info, expected):
seen: list[str] = []
def handler(req: httpx.Request) -> httpx.Response:
seen.append(str(req.url))
return httpx.Response(200, json=info)
client = HostBackendClient(
ControlPlaneEndpoints.on_data_plane("https://dp.example.com/", None),
"key",
transport=httpx.MockTransport(handler),
)
assert client.instance_flags() == expected
assert seen == ["https://dp.example.com/api/v1/info"]
def test_host_backend_off_a_data_plane_has_no_instance_flags():
assert (
HostBackendClient("https://api.host.langchain.com", "key").instance_flags()
is None
)
+9 -9
View File
@@ -1398,14 +1398,14 @@ wheels = [
[[package]]
name = "opentelemetry-api"
version = "1.45.1"
version = "1.45.2"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "typing-extensions", version = "4.15.0", source = { registry = "https://pypi.org/simple" } },
]
sdist = { url = "https://files.pythonhosted.org/packages/2e/02/6e0ae9cc61bd3169d401077b507b3ebc344745171e1051ab430be012dcd9/opentelemetry_api-1.45.1.tar.gz", hash = "sha256:aa38ed19bcc084ba42782a73255b3582283eced7ad6dddbd6695189e69adfb75", size = 72804, upload-time = "2026-10-06T17:32:58.133Z" }
sdist = { url = "https://files.pythonhosted.org/packages/19/14/cf3a6b6448849656e1e5f4e2101f3988dc6789724050096aba1bc5ccf592/opentelemetry_api-1.45.2.tar.gz", hash = "sha256:d7b0008e21e5fd61cbe7a7f34ca3b6905a78ab677d9bc395e299359c75cda6b4", size = 73277, upload-time = "2026-10-29T17:29:37.888Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/1e/41/f7dcf80b81ee8e71c1a2b59f14208bc723edbd89ed027a73b175abf6348e/opentelemetry_api-1.45.1-py3-none-any.whl", hash = "sha256:b31553efa588ae44bc306f863c785c5333a9ecc091248c6ee68b4b6c87fdedfb", size = 60256, upload-time = "2026-10-06T17:32:33.506Z" },
{ url = "https://files.pythonhosted.org/packages/a9/2d/610db864d7513158cebb8f36cc88e67e73bd6c7aa1905ef18d89e1281c81/opentelemetry_api-1.45.2-py3-none-any.whl", hash = "sha256:2cbd737377e710ee740d261c94e93fa0f08e6d037c18f17513cc0a2d94479a34", size = 60335, upload-time = "2026-10-29T17:29:06.955Z" },
]
[[package]]
@@ -1497,29 +1497,29 @@ wheels = [
[[package]]
name = "opentelemetry-sdk"
version = "1.45.1"
version = "1.45.2"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "opentelemetry-api" },
{ name = "opentelemetry-semantic-conventions" },
{ name = "typing-extensions", version = "4.15.0", source = { registry = "https://pypi.org/simple" } },
]
sdist = { url = "https://files.pythonhosted.org/packages/a1/79/7392e21a1c8f0c61d90b223e31c7e48cb9d452e91a6b820ad24cca5f23c4/opentelemetry_sdk-1.45.1.tar.gz", hash = "sha256:63d24a6ca645019a631e6a51999c73e93adcac1196ca640b8ae78a7cc4762bf3", size = 218324, upload-time = "2026-10-06T17:33:13.26Z" }
sdist = { url = "https://files.pythonhosted.org/packages/7b/1a/74a21d4d6969fb8b432ac397e66112a8167a6deb267ea4559dbaf2fe91ef/opentelemetry_sdk-1.45.2.tar.gz", hash = "sha256:7eec4de13dd21ff3a1670dcb0e02079e692736f94d733dfdce5af461d884248d", size = 221705, upload-time = "2026-10-29T17:29:54.685Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/95/3c/87c42b4bd6dd297536f04cd9383d212ac557ecd49f2cbdcd46da1c9ef5c8/opentelemetry_sdk-1.45.1-py3-none-any.whl", hash = "sha256:c604c11dc429810812348989115fa44bd558772a3d7442afc43d024f2c250ca4", size = 140063, upload-time = "2026-10-06T17:32:55.04Z" },
{ url = "https://files.pythonhosted.org/packages/9f/a5/9a3b793ef48245f2336a16beb2324c2397dbb3f987cd68942f77cca06156/opentelemetry_sdk-1.45.2-py3-none-any.whl", hash = "sha256:ff974ea70ee4f1d51e2ec152db37c2b626c7bf82bb3f7d86114fd8704e7199c6", size = 141756, upload-time = "2026-10-29T17:29:33.722Z" },
]
[[package]]
name = "opentelemetry-semantic-conventions"
version = "0.66b1"
version = "0.66b2"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "opentelemetry-api" },
{ name = "typing-extensions", version = "4.15.0", source = { registry = "https://pypi.org/simple" } },
]
sdist = { url = "https://files.pythonhosted.org/packages/46/e4/dbbfb2a010c4db2224a5114638acede6fe563d33cc20fb1752cebcbe6298/opentelemetry_semantic_conventions-0.66b1.tar.gz", hash = "sha256:497ca63bf383723411e8eaf60c8779e9877633c936bb641080adab59d0eb6ec8", size = 150250, upload-time = "2026-10-06T17:33:14.073Z" }
sdist = { url = "https://files.pythonhosted.org/packages/37/3f/50f95972b50e8e353f5b9342034c9cd17730f1956f009ce6a3fbbd89f9ce/opentelemetry_semantic_conventions-0.66b2.tar.gz", hash = "sha256:7da5f1a5dc4383eb66711d4d3d3e71824d9403ac1559fea021cc103c1a4c4976", size = 150246, upload-time = "2026-10-29T17:29:55.682Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/bc/14/67f8aa798857f8cf686f515bf93d9bb877ce952ddc8efae0fa25b45ce0d6/opentelemetry_semantic_conventions-0.66b1-py3-none-any.whl", hash = "sha256:d4cddeb4315490b35213f55e2bdc9ac54bb1e4d318927475bed62b35545e581b", size = 206279, upload-time = "2026-10-06T17:32:56.103Z" },
{ url = "https://files.pythonhosted.org/packages/67/bd/6bf33ed31521c565931c037e9e81bac47c1acb000e850c6e24220e2a0c00/opentelemetry_semantic_conventions-0.66b2-py3-none-any.whl", hash = "sha256:4cbe61e5f9275d57ab31708446e7938ef4291ebbe6a7fca6f7a629c5acae87d8", size = 206280, upload-time = "2026-10-29T17:29:35.062Z" },
]
[[package]]
@@ -37,6 +37,10 @@ CONFIG_KEY_SEND = sys.intern("__pregel_send")
# holds the `write` function that accepts writes to state/edges/reserved keys
CONFIG_KEY_READ = sys.intern("__pregel_read")
# holds the `read` function that returns a copy of the current state
CONFIG_KEY_READ_STATE = sys.intern("__pregel_read_state")
# holds a function that returns the state as the task's node gets it from an edge,
# set on Send tasks, whose input is the Send arg instead. Other tasks set it to None
# so a graph running inside a Send task never reads its parent's state
CONFIG_KEY_CALL = sys.intern("__pregel_call")
# holds the `call` function that accepts a node/func, args and returns a future
CONFIG_KEY_CHECKPOINTER = sys.intern("__pregel_checkpointer")
+10 -26
View File
@@ -2,8 +2,6 @@ from __future__ import annotations
import sys
import typing
import warnings
from contextlib import nullcontext
from dataclasses import is_dataclass
from functools import lru_cache
from typing import (
@@ -105,8 +103,7 @@ def _create_root_model(
if default_ is not NO_DEFAULT:
base_class_attributes["root"] = default_
with warnings.catch_warnings():
custom_root_type = type(name, (RootModel,), base_class_attributes)
custom_root_type = type(name, (RootModel,), base_class_attributes)
return cast("type[BaseModel]", custom_root_type)
@@ -225,28 +222,15 @@ def create_model(
)
return named_root_model
# No root, just field definitions
names = set(field_definitions.keys())
capture_warnings = False
for name in names:
# Also if any non-reserved name is used (e.g., model_id or model_name)
if name.startswith("model"):
capture_warnings = True
with warnings.catch_warnings() if capture_warnings else nullcontext():
if capture_warnings:
warnings.filterwarnings(action="ignore")
try:
return _create_model_cached(model_name, **field_definitions)
except TypeError:
# something in field definitions is not hashable
return _create_model_base(
model_name,
__config__=_SchemaConfig,
**_remap_field_definitions(field_definitions),
)
try:
return _create_model_cached(model_name, **field_definitions)
except TypeError:
# something in field definitions is not hashable
return _create_model_base(
model_name,
__config__=_SchemaConfig,
**_remap_field_definitions(field_definitions),
)
def is_supported_by_pydantic(type_: Any) -> bool:
+2 -2
View File
@@ -119,7 +119,7 @@ class DeltaChannel(Generic[Value], BaseChannel[Any, Any, Any]):
"""Initialize from a stored blob.
Blob types:
* `MISSING`: start empty; caller replays writes.
* `MISSING` or `None`: start empty; caller replays writes.
* `_DeltaSnapshot(value)`: restore value directly from snapshot.
* plain value (migration from old `BinaryOperatorAggregate` blobs):
use directly.
@@ -128,7 +128,7 @@ class DeltaChannel(Generic[Value], BaseChannel[Any, Any, Any]):
self.reducer, self.typ, snapshot_frequency=self.snapshot_frequency
)
new.key = self.key
if checkpoint is MISSING:
if checkpoint is MISSING or checkpoint is None:
new.value = self.typ()
elif isinstance(checkpoint, _DeltaSnapshot):
new.value = checkpoint.value
+21 -11
View File
@@ -24,6 +24,9 @@ from typing_extensions import TypedDict, deprecated
from langgraph._internal._constants import CONF, CONFIG_KEY_SEND
from langgraph.graph.state import StateGraph
from langgraph.pregel._messages import (
REMOVE_ALL_MESSAGES as REMOVE_ALL_MESSAGES,
)
from langgraph.pregel._messages import (
_messages_delta_reducer as _messages_delta_reducer,
)
@@ -38,8 +41,6 @@ __all__ = (
Messages = list[MessageLikeRepresentation] | MessageLikeRepresentation
REMOVE_ALL_MESSAGES = "__remove_all__"
def _add_messages_wrapper(func: Callable) -> Callable[[Messages, Messages], Messages]:
def _add_messages(
@@ -194,14 +195,8 @@ def add_messages(
if not isinstance(right, list):
right = [right] # type: ignore[assignment]
# coerce to message
left = [
message_chunk_to_message(cast(BaseMessageChunk, m))
for m in convert_to_messages(left)
]
right = [
message_chunk_to_message(cast(BaseMessageChunk, m))
for m in convert_to_messages(right)
]
left = _coerce_to_messages(left)
right = _coerce_to_messages(right)
# assign missing ids
for m in left:
if m.id is None:
@@ -234,7 +229,8 @@ def add_messages(
merged_by_id[m.id] = len(merged)
merged.append(m)
merged = [m for m in merged if m.id not in ids_to_remove]
if ids_to_remove:
merged = [m for m in merged if m.id not in ids_to_remove]
if format == "langchain-openai":
merged = _format_messages(merged)
@@ -247,6 +243,20 @@ def add_messages(
return merged
def _coerce_to_messages(messages: list) -> list[Any]:
# Both conversions return a plain message unchanged, and a long history is
# all plain messages, so check the few distinct types instead of each item.
if all(
issubclass(t, BaseMessage) and not issubclass(t, BaseMessageChunk)
for t in set(map(type, messages))
):
return messages
return [
message_chunk_to_message(cast(BaseMessageChunk, m))
for m in convert_to_messages(messages)
]
@deprecated(
"MessageGraph is deprecated in langgraph 1.0.0, to be removed in 2.0.0. Please use StateGraph with a `messages` key instead.",
category=None,
+7 -3
View File
@@ -1452,6 +1452,8 @@ class CompiledStateGraph(
output_keys = list(self.builder.channels) + [
k for k, v in self.builder.managed.items()
]
# for membership checks, which run on every key of every node update
output_key_set = frozenset(output_keys)
def _get_updates(
input: None | dict | Any,
@@ -1459,12 +1461,12 @@ class CompiledStateGraph(
if input is None:
return None
elif isinstance(input, dict):
return [(k, v) for k, v in input.items() if k in output_keys]
return [(k, v) for k, v in input.items() if k in output_key_set]
elif isinstance(input, Command):
if input.graph == Command.PARENT:
return None
return [
(k, v) for k, v in input._update_as_tuples() if k in output_keys
(k, v) for k, v in input._update_as_tuples() if k in output_key_set
]
elif (
isinstance(input, (list, tuple))
@@ -1477,7 +1479,9 @@ class CompiledStateGraph(
if i.graph == Command.PARENT:
continue
updates.extend(
(k, v) for k, v in i._update_as_tuples() if k in output_keys
(k, v)
for k, v in i._update_as_tuples()
if k in output_key_set
)
else:
updates.extend(_get_updates(i) or ())
+13
View File
@@ -42,6 +42,7 @@ from langgraph._internal._constants import (
CONFIG_KEY_CHECKPOINTER,
CONFIG_KEY_NODE_ERROR,
CONFIG_KEY_READ,
CONFIG_KEY_READ_STATE,
CONFIG_KEY_RESUME_MAP,
CONFIG_KEY_RUNTIME,
CONFIG_KEY_SCRATCHPAD,
@@ -734,6 +735,7 @@ def prepare_single_task(
triggers,
),
),
CONFIG_KEY_READ_STATE: None,
CONFIG_KEY_CHECKPOINTER: (
checkpointer
or configurable.get(CONFIG_KEY_CHECKPOINTER)
@@ -911,6 +913,7 @@ def prepare_push_task_functional(
managed,
PregelTaskWrites(in_progress_task_path, name, writes, triggers),
),
CONFIG_KEY_READ_STATE: None,
CONFIG_KEY_CHECKPOINTER: (
checkpointer or configurable.get(CONFIG_KEY_CHECKPOINTER)
),
@@ -1081,6 +1084,15 @@ def prepare_push_task_send(
translated_task_path, packet.node, writes, triggers
),
),
CONFIG_KEY_READ_STATE: partial(
_proc_input,
proc,
managed,
channels,
for_execution=True,
scratchpad=scratchpad,
input_cache=None,
),
CONFIG_KEY_CHECKPOINTER: (
checkpointer or configurable.get(CONFIG_KEY_CHECKPOINTER)
),
@@ -1222,6 +1234,7 @@ def prepare_node_error_handler_task(
PUSH_TRIGGER,
),
),
CONFIG_KEY_READ_STATE: None,
CONFIG_KEY_CHECKPOINTER: (
checkpointer or configurable.get(CONFIG_KEY_CHECKPOINTER)
),
+9 -9
View File
@@ -130,35 +130,35 @@ def map_output_updates(
]
if not output_tasks:
return
# a set: a wide state would otherwise scan every key for each write
output_keys = (
frozenset(output_channels) if not isinstance(output_channels, str) else None
)
updated: list[tuple[str, Any]] = []
for task, writes in output_tasks:
rtn = next((value for chan, value in writes if chan == RETURN), MISSING)
if rtn is not MISSING:
updated.append((task.name, rtn))
elif isinstance(output_channels, str):
elif output_keys is None:
updated.extend(
(task.name, value) for chan, value in writes if chan == output_channels
)
elif any(chan in output_channels for chan, _ in writes):
elif any(chan in output_keys for chan, _ in writes):
counts = Counter(chan for chan, _ in writes)
if any(counts[chan] > 1 for chan in output_channels):
if any(n > 1 for chan, n in counts.items() if chan in output_keys):
updated.extend(
(
task.name,
{chan: value},
)
for chan, value in writes
if chan in output_channels
if chan in output_keys
)
else:
updated.append(
(
task.name,
{
chan: value
for chan, value in writes
if chan in output_channels
},
{chan: value for chan, value in writes if chan in output_keys},
)
)
grouped: dict[str, Any] = {t.name: [] for t, _ in output_tasks}
+20 -14
View File
@@ -358,6 +358,14 @@ class PregelLoop:
self.retry_policy = retry_policy
self.cache_policy = cache_policy
self.durability = durability
# Channel types are fixed for the run, so per-step code reads these
# instead of scanning every channel.
self._has_untracked_channels = any(
isinstance(spec, UntrackedValue) for spec in specs.values()
)
self._delta_channel_names = [
k for k, spec in specs.items() if isinstance(spec, DeltaChannel)
]
self._has_graph_lifecycle_callbacks = has_graph_lifecycle_callbacks
self._graph_lifecycle_events = deque()
if self.stream is not None and CONFIG_KEY_STREAM in config[CONF]:
@@ -496,9 +504,7 @@ class PregelLoop:
writes_to_save = writes
# check if any writes are to an UntrackedValue channel
if any(
isinstance(channel, UntrackedValue) for channel in self.channels.values()
):
if self._has_untracked_channels:
# we do not persist untracked values in checkpoints
writes_to_save = [
# sanitize UntrackedValues that are nested within Send packets
@@ -840,10 +846,12 @@ class PregelLoop:
Unfinished (failed or interrupted) tasks keep empty writes, so the
runner re-executes them or routes them to error handlers.
"""
for tid, status in read_task_statuses(self.checkpoint_pending_writes).items():
if task := tasks.get(tid):
task.writes.extend(status.output)
self._reapplied_task_ids.add(tid)
# Filter first: this runs once per task call, and reading the status of
# every task that wrote would make runs with many task calls quadratic.
writes = (w for w in self.checkpoint_pending_writes if w[0] in tasks)
for tid, status in read_task_statuses(writes).items():
tasks[tid].writes.extend(status.output)
self._reapplied_task_ids.add(tid)
def _resume_error_handlers_if_applicable(self) -> None:
"""On resume, schedule error handlers for tasks that failed in a prior run.
@@ -1300,9 +1308,7 @@ class PregelLoop:
)
new_counters: dict[str, tuple[int, int]] = {}
updated = self.updated_channels or set()
for ch_name, ch in self.channels.items():
if not isinstance(ch, DeltaChannel):
continue
for ch_name in self._delta_channel_names:
u, s = prev_counters.get(ch_name, (0, 0))
s += 1
if ch_name in updated:
@@ -1322,7 +1328,9 @@ class PregelLoop:
# create new checkpoint
channels_to_snapshot = (
delta_channels_to_snapshot(
self.channels, new_counters, self.checkpoint["channel_versions"]
{k: self.channels[k] for k in self._delta_channel_names},
new_counters,
self.checkpoint["channel_versions"],
)
| self._delta_channels_forced_snapshot
if do_checkpoint
@@ -1351,9 +1359,7 @@ class PregelLoop:
elif "counters_since_delta_snapshot" in self.checkpoint_metadata:
del self.checkpoint_metadata["counters_since_delta_snapshot"]
# sanitize TASK channel in the checkpoint before saving (durability=="exit")
if TASKS in self.checkpoint["channel_values"] and any(
isinstance(channel, UntrackedValue) for channel in self.channels.values()
):
if TASKS in self.checkpoint["channel_values"] and self._has_untracked_channels:
sanitized_tasks = [
sanitize_untracked_values_in_send(value, self.channels)
if isinstance(value, Send)
+13 -3
View File
@@ -433,21 +433,24 @@ class StreamMessagesHandlerV2(StreamMessagesHandler, _V2StreamingCallbackHandler
# Defined here rather than in `langgraph.graph.message`, which re-exports it:
# `ensure_message_ids` has to recognize it, and importing that module from the
# loop would be an import cycle.
REMOVE_ALL_MESSAGES = "__remove_all__"
def _messages_delta_reducer(
state: list[AnyMessage], writes: list[list[AnyMessage]]
) -> list[AnyMessage]:
"""**Experimental.** Batch reducer for use with `DeltaChannel`.
Processes all writes in one pass — dedup by ID, `RemoveMessage`
tombstoning — without calling `add_messages`.
tombstoning, `REMOVE_ALL_MESSAGES` reset — without calling `add_messages`.
This reducer is batching-invariant, as required by `DeltaChannel`:
`reducer(reducer(state, xs), ys) == reducer(state, xs + ys)`.
Raw dict / string / tuple inputs are coerced to typed `BaseMessage`
objects so that HTTP-driven graphs work without a separate coercion
step. This is not full `add_messages` parity — `REMOVE_ALL_MESSAGES`,
unknown-id `RemoveMessage` errors, missing-id UUID assignment, and
step. This is not full `add_messages` parity — unknown-id
`RemoveMessage` errors, missing-id UUID assignment, and
`BaseMessageChunk` conversion are not handled here.
Example::
@@ -478,6 +481,13 @@ def _messages_delta_reducer(
state_msgs = cast("list[AnyMessage]", convert_to_messages(state))
msgs = cast("list[AnyMessage]", convert_to_messages(flat))
for idx in range(len(msgs) - 1, -1, -1):
m = msgs[idx]
if isinstance(m, RemoveMessage) and m.id == REMOVE_ALL_MESSAGES:
state_msgs = []
msgs = msgs[idx + 1 :]
break
index: dict[str, int] = {
m.id: i for i, m in enumerate(state_msgs) if m.id is not None
}
+9 -1
View File
@@ -78,6 +78,7 @@ class FuturesDict(Generic[F, E], dict[F, PregelExecutableTask | None]):
should_stop: Callable[[set[F]], bool]
counter: int
done: set[F]
failed: set[F]
lock: threading.Lock
def __init__(
@@ -97,6 +98,7 @@ class FuturesDict(Generic[F, E], dict[F, PregelExecutableTask | None]):
self.should_stop = should_stop
self.counter = 0
self.done: set[F] = set()
self.failed: set[F] = set()
def __setitem__(
self,
@@ -123,9 +125,13 @@ class FuturesDict(Generic[F, E], dict[F, PregelExecutableTask | None]):
with self.lock:
self.done.add(fut)
self.counter -= 1
# Only a future that raised can meet the stop condition, so check
# those instead of every done future (quadratic in wide steps).
if not fut.cancelled() and fut.exception() is not None:
self.failed.add(fut)
# Wake waiter when all tracked futures are done, or when runner-level
# stop condition is met (for example, a non-handled fatal exception).
if self.counter == 0 or self.should_stop(self.done):
if self.counter == 0 or self.should_stop(self.failed):
self.event.set()
@@ -234,6 +240,7 @@ class PregelRunner:
fut: concurrent.futures.Future = concurrent.futures.Future()
fut.set_exception(exc)
futures.done.add(fut)
futures.failed.add(fut)
elif reraise and id(exc) not in self._handled_exception_ids:
# let the caller stream this task's result before it raises
yield
@@ -427,6 +434,7 @@ class PregelRunner:
fut: asyncio.Future = loop.create_future()
fut.set_exception(exc)
futures.done.add(fut)
futures.failed.add(fut)
elif reraise and id(exc) not in self._handled_exception_ids:
# let the caller stream this task's result before it raises
yield
+13 -8
View File
@@ -2902,16 +2902,17 @@ class Pregel(
if CONFIG_KEY_TASK_ID not in config[CONF]:
# Not run as a task (a child invoked with its own thread, say),
# this graph's namespace starts at the root, so a caller's
# handler would take this graph's events for its own graph's.
# handler without `subgraphs` would take this graph's events
# for its own graph's. One with `subgraphs` asked for them.
callback_manager.handlers = [
h
for h in callback_manager.handlers
if not _is_stream_mode_handler(h)
if not _streams_only_its_graph(h)
]
callback_manager.inheritable_handlers = [
h
for h in callback_manager.inheritable_handlers
if not _is_stream_mode_handler(h)
if not _streams_only_its_graph(h)
]
if "ls_integration" not in callback_manager.metadata:
callback_manager.add_metadata({"ls_integration": "langgraph"})
@@ -3319,16 +3320,17 @@ class Pregel(
if CONFIG_KEY_TASK_ID not in config[CONF]:
# Not run as a task (a child invoked with its own thread, say),
# this graph's namespace starts at the root, so a caller's
# handler would take this graph's events for its own graph's.
# handler without `subgraphs` would take this graph's events
# for its own graph's. One with `subgraphs` asked for them.
callback_manager.handlers = [
h
for h in callback_manager.handlers
if not _is_stream_mode_handler(h)
if not _streams_only_its_graph(h)
]
callback_manager.inheritable_handlers = [
h
for h in callback_manager.inheritable_handlers
if not _is_stream_mode_handler(h)
if not _streams_only_its_graph(h)
]
if "ls_integration" not in callback_manager.metadata:
callback_manager.add_metadata({"ls_integration": "langgraph"})
@@ -4480,8 +4482,11 @@ def _coerce_checkpoint_values(payload: Any, mapper: Callable[[Any], Any]) -> Non
payload["values"] = mapper(payload["values"])
def _is_stream_mode_handler(handler: object) -> bool:
return isinstance(handler, (StreamMessagesHandler, StreamToolCallHandler))
def _streams_only_its_graph(handler: object) -> bool:
return (
isinstance(handler, (StreamMessagesHandler, StreamToolCallHandler))
and not handler.subgraphs
)
def _resolve_parent_ns(
+2 -2
View File
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project]
name = "langgraph"
version = "1.2.20"
version = "1.2.24"
description = "Building stateful, multi-actor applications with LLMs"
authors = []
requires-python = ">=3.10"
@@ -27,7 +27,7 @@ dependencies = [
"langchain-core>=1.4.7,<2",
"langgraph-checkpoint>=4.3.0,<5.0.0",
"langgraph-sdk>=0.4.6,<0.5.0",
"langgraph-prebuilt>=1.1.0,<1.2.0",
"langgraph-prebuilt>=1.1.3,<1.2.0",
"xxhash>=3.5.0",
"pydantic>=2.7.4",
]
+20 -1
View File
@@ -18,7 +18,7 @@ from langgraph.channels.topic import Topic
from langgraph.channels.untracked_value import UntrackedValue
from langgraph.errors import EmptyChannelError, InvalidUpdateError
from langgraph.graph import START, StateGraph
from langgraph.graph.message import _messages_delta_reducer
from langgraph.graph.message import REMOVE_ALL_MESSAGES, _messages_delta_reducer
from langgraph.graph.state import _get_channel
from langgraph.pregel._checkpoint import delta_channels_to_snapshot
from langgraph.types import Overwrite
@@ -153,6 +153,25 @@ def test_delta_channel_basic_two_steps() -> None:
assert ch.get()[1].content == "hello"
def test_delta_channel_from_none_checkpoint_replays_from_empty() -> None:
ch = DeltaChannel(_messages_delta_reducer, list).from_checkpoint(None)
msg = HumanMessage(content="hi", id="h1")
ch.replay_writes([("t0", "messages", [msg])])
assert ch.get() == [msg]
def test_messages_delta_reducer_remove_all() -> None:
old = HumanMessage(content="old", id="h0")
dropped = HumanMessage(content="dropped", id="h1")
kept = AIMessage(content="kept", id="a1")
writes = [[dropped], [RemoveMessage(id=REMOVE_ALL_MESSAGES), kept]]
assert _messages_delta_reducer([old], writes) == [kept]
state = [old]
for w in writes:
state = _messages_delta_reducer(state, [w])
assert state == [kept]
def test_delta_channel_from_checkpoint_writes_list() -> None:
"""replay_writes on a fresh channel replays through the operator."""
spec = DeltaChannel(_messages_delta_reducer, list)
@@ -5,6 +5,7 @@ import langchain_core
import pytest
from langchain_core.messages import (
AIMessage,
AIMessageChunk,
AnyMessage,
HumanMessage,
RemoveMessage,
@@ -168,6 +169,41 @@ def test_non_list_inputs():
assert result == expected_result
def test_message_likes_and_chunks_are_converted_on_both_sides():
left = [
HumanMessage(content="Hello", id="1"),
{"role": "assistant", "content": "Hi", "id": "2"},
]
right = [AIMessageChunk(content="chunk", id="3"), ("user", "Thanks")]
result = add_messages(left, right)
assert [type(m) for m in result] == [
HumanMessage,
AIMessage,
AIMessage,
HumanMessage,
]
assert result[:3] == [
HumanMessage(content="Hello", id="1"),
AIMessage(content="Hi", id="2"),
AIMessage(content="chunk", id="3"),
]
assert result[3].content == "Thanks"
def test_chunk_only_lists_are_converted():
left = [AIMessageChunk(content="a", id="1")]
right = [AIMessageChunk(content="b", id="2")]
result = add_messages(left, right)
assert [type(m) for m in result] == [AIMessage, AIMessage]
def test_result_is_a_new_list():
left = [HumanMessage(content="Hello", id="1")]
result = add_messages(left, [])
assert result == left
assert result is not left
def test_delete_all():
left = [
HumanMessage(content="Hello", id="1"),
+123 -1
View File
@@ -6,10 +6,14 @@ import re
import sys
import typing
import uuid
import warnings
from concurrent.futures import ThreadPoolExecutor
from enum import Enum
from threading import Event
from typing import Annotated, Literal, Optional
import pydantic
import pytest
import typing_extensions
from langgraph.checkpoint.base import BaseCheckpointSaver
from pydantic import (
@@ -25,7 +29,7 @@ from pydantic import (
model_validator,
)
from langgraph._internal._pydantic import is_supported_by_pydantic
from langgraph._internal._pydantic import create_model, is_supported_by_pydantic
from langgraph.constants import END, START
from langgraph.func import entrypoint, task
from langgraph.graph.state import StateGraph
@@ -33,6 +37,124 @@ from langgraph.types import Command, Interrupt, interrupt
from tests.any_str import AnyStr
@pytest.mark.parametrize("root_model", [False, True], ids=["fields", "root"])
@pytest.mark.parametrize("default", [None, []], ids=["cached", "uncached"])
def test_create_model_preserves_concurrent_warnings(root_model, default) -> None:
schema_started = Event()
warning_emitted = Event()
class PausedSchema:
@classmethod
def __get_pydantic_core_schema__(cls, source, handler):
schema_started.set()
assert warning_emitted.wait(timeout=10)
return handler(source)
type_ = Annotated[list[int] | None, PausedSchema]
kwargs = (
{"root": (type_, default)}
if root_model
else {"field_definitions": {"model_values": (type_, default)}}
)
with warnings.catch_warnings(record=True) as captured:
warnings.simplefilter("always")
with ThreadPoolExecutor(max_workers=1) as executor:
future = executor.submit(create_model, "ConcurrentSchema", **kwargs)
try:
assert schema_started.wait(timeout=10)
warnings.warn("unrelated concurrent warning", UserWarning)
warnings.simplefilter("error", DeprecationWarning)
finally:
warning_emitted.set()
model = future.result(timeout=10)
assert [str(warning.message) for warning in captured] == [
"unrelated concurrent warning"
]
with pytest.raises(DeprecationWarning, match="retained warning filter"):
warnings.warn("retained warning filter", DeprecationWarning)
instance = model.model_validate(["1"] if root_model else {"model_values": ["1"]})
assert instance.model_dump() == ([1] if root_model else {"model_values": [1]})
@pytest.mark.parametrize("default", [0, []], ids=["cached", "uncached"])
def test_create_model_model_fields(default) -> None:
with warnings.catch_warnings():
warnings.simplefilter("error")
model = create_model(
"ModelFields",
field_definitions={
"model_id": (int, ...),
"model_name": (str, "default"),
"model_dump": (str, ...),
"_private": (int, 0),
"model_value": (int | list[int], default),
},
)
instance = model.model_validate(
{"model_id": "1", "model_dump": "data", "_private": "2"}
)
assert model.__name__ == "ModelFields"
assert instance.model_dump(by_alias=True) == {
"model_id": 1,
"model_name": "default",
"model_dump": "data",
"_private": 2,
"model_value": default,
}
with pytest.raises(pydantic.ValidationError, match="model_id"):
model.model_validate({"model_id": "invalid", "model_dump": "data"})
with pytest.raises(pydantic.ValidationError, match="frozen_instance"):
instance.model_id = 2
schema = model.model_json_schema()
assert schema["title"] == "ModelFields"
assert schema["required"] == ["model_id", "model_dump"]
assert set(schema["properties"]) == {
"model_id",
"model_name",
"model_dump",
"_private",
"model_value",
}
assert schema["properties"]["model_dump"] == {
"title": "Model Dump",
"type": "string",
}
assert schema["properties"]["model_value"]["default"] == default
@pytest.mark.parametrize("default", [0, []], ids=["cached", "uncached"])
def test_create_root_model_defaults(default) -> None:
model = create_model("RootSchema", root=(int | list[int], default))
assert model.__name__ == "RootSchema"
assert model().model_dump() == default
assert model.model_validate("2").model_dump() == 2
schema = model.model_json_schema()
assert schema == {
"anyOf": [{"type": "integer"}, {"items": {"type": "integer"}, "type": "array"}],
"default": default,
"title": "RootSchema",
}
with pytest.warns(pydantic.PydanticDeprecatedSince20, match="deprecated"):
assert model.schema() == schema
def test_create_model_preserves_schema_warnings() -> None:
class WarningSchema:
@classmethod
def __get_pydantic_core_schema__(cls, source, handler):
warnings.warn("custom schema warning", UserWarning)
return handler(source)
with pytest.warns(UserWarning, match="custom schema warning"):
create_model(
"WarningSchema", field_definitions={"model_value": (WarningSchema, ...)}
)
def test_is_supported_by_pydantic() -> None:
"""Test if types are supported by pydantic."""
@@ -0,0 +1,50 @@
import concurrent.futures
import threading
import weakref
from functools import partial
from langgraph.pregel._runner import FuturesDict, _should_stop_others
def _on_done(task: object, exc: BaseException | None) -> None:
pass
def _futures(handled_exception_ids: set[int]) -> FuturesDict:
return FuturesDict(
event=threading.Event(),
callback=weakref.ref(_on_done),
should_stop=partial(
_should_stop_others, handled_exception_ids=handled_exception_ids
),
future_type=concurrent.futures.Future,
)
def test_failed_task_wakes_waiter_before_others_finish() -> None:
futures = _futures(set())
ok, bad, pending = (concurrent.futures.Future() for _ in range(3))
for fut in (ok, bad, pending):
futures[fut] = object()
ok.set_result(None)
assert not futures.event.is_set()
bad.set_exception(ValueError("boom"))
assert futures.event.is_set()
def test_handled_failure_waits_for_all_tasks() -> None:
handled: set[int] = set()
futures = _futures(handled)
bad, pending = (concurrent.futures.Future() for _ in range(2))
for fut in (bad, pending):
futures[fut] = object()
exc = ValueError("handled by an error handler")
handled.add(id(exc))
bad.set_exception(exc)
assert not futures.event.is_set()
pending.set_result(None)
assert futures.event.is_set()
+35 -10
View File
@@ -73,6 +73,15 @@ _CHILD_CONFIGS = pytest.mark.parametrize(
ids=["no_config", "own_thread", "caller_thread"],
)
_OWN_THREAD_CONFIGS = pytest.mark.parametrize(
"child_config",
[
{"configurable": {"thread_id": "child"}},
{"configurable": {"thread_id": "parent"}},
],
ids=["own_thread", "caller_thread"],
)
_TASK_CALLERS = pytest.mark.parametrize(
"nested", [False, True], ids=["from_entrypoint", "from_task_in_task"]
@@ -202,15 +211,8 @@ async def test_child_graph_streams_only_to_the_node_streaming_it_async(
assert len(received) == len(_CHAT_AND_ECHO_EVENTS)
@pytest.mark.parametrize(
"child_config",
[
{"configurable": {"thread_id": "child"}},
{"configurable": {"thread_id": "parent"}},
],
ids=["own_thread", "caller_thread"],
)
def test_child_graph_on_its_own_thread_skips_a_caller_streaming_subgraphs(
@_OWN_THREAD_CONFIGS
def test_child_graph_on_its_own_thread_streams_to_a_caller_streaming_subgraphs(
child_config: dict,
) -> None:
child = _one_node_graph(_chat_and_echo)
@@ -224,9 +226,32 @@ def test_child_graph_on_its_own_thread_skips_a_caller_streaming_subgraphs(
{"configurable": {"thread_id": "parent"}},
stream_mode=["messages", "tools"],
subgraphs=True,
version="v2",
)
assert list(parts) == []
assert [_summary(part) for part in parts] == _CHAT_AND_ECHO_EVENTS
@NEEDS_CONTEXTVARS
@_OWN_THREAD_CONFIGS
async def test_child_graph_on_its_own_thread_streams_to_a_caller_streaming_subgraphs_async(
child_config: dict,
) -> None:
child = _one_node_graph(_achat_and_echo)
async def node(state: MessagesState) -> dict:
await child.ainvoke({"messages": []}, child_config)
return {}
parts = _one_node_graph(node).astream(
{"messages": []},
{"configurable": {"thread_id": "parent"}},
stream_mode=["messages", "tools"],
subgraphs=True,
version="v2",
)
assert [_summary(part) async for part in parts] == _CHAT_AND_ECHO_EVENTS
def test_node_gets_the_events_of_every_subgraph_it_streams() -> None:
+13 -13
View File
@@ -1440,7 +1440,7 @@ wheels = [
[[package]]
name = "langgraph"
version = "1.2.20"
version = "1.2.24"
source = { editable = "." }
dependencies = [
{ name = "langchain-core" },
@@ -1629,7 +1629,7 @@ wheels = [
[[package]]
name = "langgraph-checkpoint"
version = "4.3.1"
version = "4.3.2"
source = { editable = "../checkpoint" }
dependencies = [
{ name = "langchain-core" },
@@ -1677,7 +1677,7 @@ test = [
[[package]]
name = "langgraph-checkpoint-postgres"
version = "3.2.0"
version = "3.2.1"
source = { editable = "../checkpoint-postgres" }
dependencies = [
{ name = "langgraph-checkpoint" },
@@ -1827,7 +1827,7 @@ test = [
[[package]]
name = "langgraph-prebuilt"
version = "1.1.1"
version = "1.1.3"
source = { editable = "../prebuilt" }
dependencies = [
{ name = "langchain-core" },
@@ -2182,14 +2182,14 @@ wheels = [
[[package]]
name = "opentelemetry-api"
version = "1.45.1"
version = "1.45.2"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "typing-extensions" },
]
sdist = { url = "https://files.pythonhosted.org/packages/2e/02/6e0ae9cc61bd3169d401077b507b3ebc344745171e1051ab430be012dcd9/opentelemetry_api-1.45.1.tar.gz", hash = "sha256:aa38ed19bcc084ba42782a73255b3582283eced7ad6dddbd6695189e69adfb75", size = 72804, upload-time = "2026-10-06T17:32:58.133Z" }
sdist = { url = "https://files.pythonhosted.org/packages/19/14/cf3a6b6448849656e1e5f4e2101f3988dc6789724050096aba1bc5ccf592/opentelemetry_api-1.45.2.tar.gz", hash = "sha256:d7b0008e21e5fd61cbe7a7f34ca3b6905a78ab677d9bc395e299359c75cda6b4", size = 73277, upload-time = "2026-10-29T17:29:37.888Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/1e/41/f7dcf80b81ee8e71c1a2b59f14208bc723edbd89ed027a73b175abf6348e/opentelemetry_api-1.45.1-py3-none-any.whl", hash = "sha256:b31553efa588ae44bc306f863c785c5333a9ecc091248c6ee68b4b6c87fdedfb", size = 60256, upload-time = "2026-10-06T17:32:33.506Z" },
{ url = "https://files.pythonhosted.org/packages/a9/2d/610db864d7513158cebb8f36cc88e67e73bd6c7aa1905ef18d89e1281c81/opentelemetry_api-1.45.2-py3-none-any.whl", hash = "sha256:2cbd737377e710ee740d261c94e93fa0f08e6d037c18f17513cc0a2d94479a34", size = 60335, upload-time = "2026-10-29T17:29:06.955Z" },
]
[[package]]
@@ -2281,29 +2281,29 @@ wheels = [
[[package]]
name = "opentelemetry-sdk"
version = "1.45.1"
version = "1.45.2"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "opentelemetry-api" },
{ name = "opentelemetry-semantic-conventions" },
{ name = "typing-extensions" },
]
sdist = { url = "https://files.pythonhosted.org/packages/a1/79/7392e21a1c8f0c61d90b223e31c7e48cb9d452e91a6b820ad24cca5f23c4/opentelemetry_sdk-1.45.1.tar.gz", hash = "sha256:63d24a6ca645019a631e6a51999c73e93adcac1196ca640b8ae78a7cc4762bf3", size = 218324, upload-time = "2026-10-06T17:33:13.26Z" }
sdist = { url = "https://files.pythonhosted.org/packages/7b/1a/74a21d4d6969fb8b432ac397e66112a8167a6deb267ea4559dbaf2fe91ef/opentelemetry_sdk-1.45.2.tar.gz", hash = "sha256:7eec4de13dd21ff3a1670dcb0e02079e692736f94d733dfdce5af461d884248d", size = 221705, upload-time = "2026-10-29T17:29:54.685Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/95/3c/87c42b4bd6dd297536f04cd9383d212ac557ecd49f2cbdcd46da1c9ef5c8/opentelemetry_sdk-1.45.1-py3-none-any.whl", hash = "sha256:c604c11dc429810812348989115fa44bd558772a3d7442afc43d024f2c250ca4", size = 140063, upload-time = "2026-10-06T17:32:55.04Z" },
{ url = "https://files.pythonhosted.org/packages/9f/a5/9a3b793ef48245f2336a16beb2324c2397dbb3f987cd68942f77cca06156/opentelemetry_sdk-1.45.2-py3-none-any.whl", hash = "sha256:ff974ea70ee4f1d51e2ec152db37c2b626c7bf82bb3f7d86114fd8704e7199c6", size = 141756, upload-time = "2026-10-29T17:29:33.722Z" },
]
[[package]]
name = "opentelemetry-semantic-conventions"
version = "0.66b1"
version = "0.66b2"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "opentelemetry-api" },
{ name = "typing-extensions" },
]
sdist = { url = "https://files.pythonhosted.org/packages/46/e4/dbbfb2a010c4db2224a5114638acede6fe563d33cc20fb1752cebcbe6298/opentelemetry_semantic_conventions-0.66b1.tar.gz", hash = "sha256:497ca63bf383723411e8eaf60c8779e9877633c936bb641080adab59d0eb6ec8", size = 150250, upload-time = "2026-10-06T17:33:14.073Z" }
sdist = { url = "https://files.pythonhosted.org/packages/37/3f/50f95972b50e8e353f5b9342034c9cd17730f1956f009ce6a3fbbd89f9ce/opentelemetry_semantic_conventions-0.66b2.tar.gz", hash = "sha256:7da5f1a5dc4383eb66711d4d3d3e71824d9403ac1559fea021cc103c1a4c4976", size = 150246, upload-time = "2026-10-29T17:29:55.682Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/bc/14/67f8aa798857f8cf686f515bf93d9bb877ce952ddc8efae0fa25b45ce0d6/opentelemetry_semantic_conventions-0.66b1-py3-none-any.whl", hash = "sha256:d4cddeb4315490b35213f55e2bdc9ac54bb1e4d318927475bed62b35545e581b", size = 206279, upload-time = "2026-10-06T17:32:56.103Z" },
{ url = "https://files.pythonhosted.org/packages/67/bd/6bf33ed31521c565931c037e9e81bac47c1acb000e850c6e24220e2a0c00/opentelemetry_semantic_conventions-0.66b2-py3-none-any.whl", hash = "sha256:4cbe61e5f9275d57ab31708446e7938ef4291ebbe6a7fca6f7a629c5acae87d8", size = 206280, upload-time = "2026-10-29T17:29:35.062Z" },
]
[[package]]
@@ -638,15 +638,15 @@ def create_react_agent(
messages = (
_get_state_value(state, "llm_input_messages")
) or _get_state_value(state, "messages")
error_msg = f"Expected input to call_model to have 'llm_input_messages' or 'messages' key, but got {state}"
expected_keys = "'llm_input_messages' or 'messages' key"
else:
messages = _get_state_value(state, "messages")
error_msg = (
f"Expected input to call_model to have 'messages' key, but got {state}"
)
expected_keys = "'messages' key"
if messages is None:
raise ValueError(error_msg)
raise ValueError(
f"Expected input to call_model to have {expected_keys}, but got {state}"
)
_validate_chat_history(messages)
# we're passing messages under `messages` key, as this is expected by the prompt
+22 -4
View File
@@ -107,6 +107,12 @@ except ImportError: # `langgraph` before `is_invalid_resume` never marks resume
return False
try:
from langgraph._internal._constants import CONFIG_KEY_READ_STATE
except ImportError: # `langgraph` before `CONFIG_KEY_READ_STATE` never sets the key
CONFIG_KEY_READ_STATE = "__pregel_read_state"
# right now we use a dict as the default, can change this to AgentState, but depends
# on if this lives in LangChain or LangGraph... ideally would have some typed
# messages key
@@ -189,7 +195,9 @@ class ToolCallRequest:
Supported keys:
- tool_call: Tool call dict with `name`, `args`, and `id`
- state: Agent state (`dict`, `list`, or `BaseModel`)
- state: Agent state (`dict`, `list`, or `BaseModel`). Also
replaces `runtime.state`, so the tool gets this state through
both `InjectedState` and `ToolRuntime`.
Returns:
New ToolCallRequest instance with specified overrides applied.
@@ -204,7 +212,13 @@ class ToolCallRequest:
new_request = request.override(tool_call=modified_call, state=new_state)
```
"""
return replace(self, **overrides)
request = replace(self, **overrides)
# None outside a graph, or a mock in tests: replace() would raise on either.
if "state" in overrides and isinstance(request.runtime, ToolRuntime):
request = replace(
request, runtime=replace(request.runtime, state=request.state)
)
return request
ToolCallWrapper = Callable[
@@ -1324,7 +1338,8 @@ class ToolNode(RunnableCallable):
- `ToolCallWithContext` dict — legacy Send payload carrying an inlined
state snapshot; return `input["state"]`.
- list of `ToolCall` dicts — new Send payload with no inlined state;
hydrate state from channels via `CONFIG_KEY_READ`.
read the state this node would get from an edge, coerced to its
input schema (raw channel values on older `langgraph`).
- regular graph state (dict/list/BaseModel) — return `input` as-is.
"""
if isinstance(input, dict) and input.get("__type") == "tool_call_with_context":
@@ -1335,7 +1350,10 @@ class ToolNode(RunnableCallable):
and isinstance(input[-1], dict)
and input[-1].get("type") == "tool_call"
):
read = config.get(CONF, {}).get(CONFIG_KEY_READ)
conf = config.get(CONF, {})
if (read_state := conf.get(CONFIG_KEY_READ_STATE)) is not None:
return read_state()
read = conf.get(CONFIG_KEY_READ)
if read is None:
return {}
# Pregel installs CONFIG_KEY_READ as
+1 -1
View File
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project]
name = "langgraph-prebuilt"
version = "1.1.1"
version = "1.1.3"
description = "Library with high-level APIs for creating and executing LangGraph agents and tools."
authors = []
requires-python = ">=3.10"
+56 -1
View File
@@ -1,7 +1,9 @@
"""Unit tests for tool call interceptor in ToolNode."""
import functools
from collections.abc import Callable
from collections.abc import Awaitable, Callable
from dataclasses import replace
from typing import Annotated
from unittest.mock import Mock
import pytest
@@ -12,8 +14,10 @@ from langgraph.store.base import BaseStore
from langgraph.types import Command
from langgraph.prebuilt.tool_node import (
InjectedState,
ToolCallRequest,
ToolNode,
ToolRuntime,
)
pytestmark = pytest.mark.anyio
@@ -1471,3 +1475,54 @@ def test_tool_call_request_is_frozen() -> None:
assert fresh_new_request.tool == add # Other fields should remain the same
assert fresh_new_request.state == state
assert fresh_new_request.runtime is None
@tool
def read_note(note: Annotated[str, InjectedState("note")], runtime: ToolRuntime) -> str:
"""Return the note from injected state and from the tool runtime."""
return f"InjectedState={note} ToolRuntime={runtime.state['note']}"
def _override_state(request: ToolCallRequest) -> ToolCallRequest:
return request.override(state={**request.state, "note": "new"})
def _override_state_and_stale_runtime(request: ToolCallRequest) -> ToolCallRequest:
stale = replace(request.runtime, state={**request.state, "note": "stale"})
return request.override(state={**request.state, "note": "new"}, runtime=stale)
@pytest.mark.parametrize(
"override",
[_override_state, _override_state_and_stale_runtime],
ids=["state", "state_and_stale_runtime"],
)
async def test_wrapper_state_override_reaches_tool(
override: Callable[[ToolCallRequest], ToolCallRequest],
) -> None:
def wrap(
request: ToolCallRequest,
execute: Callable[[ToolCallRequest], ToolMessage | Command],
) -> ToolMessage | Command:
return execute(override(request))
async def awrap(
request: ToolCallRequest,
execute: Callable[[ToolCallRequest], Awaitable[ToolMessage | Command]],
) -> ToolMessage | Command:
return await execute(override(request))
tool_call: ToolCall = {"name": "read_note", "args": {}, "id": "call_1"}
state = {"messages": [AIMessage("", tool_calls=[tool_call])], "note": "old"}
config = _create_config_with_runtime()
sync_out = ToolNode([read_note], wrap_tool_call=wrap).invoke(state, config)
async_out = await ToolNode([read_note], awrap_tool_call=awrap).ainvoke(
state, config
)
expected = "InjectedState=new ToolRuntime=new"
assert {
"sync": sync_out["messages"][0].content,
"async": async_out["messages"][0].content,
} == {"sync": expected, "async": expected}
+61
View File
@@ -3,6 +3,7 @@ import dataclasses
import json
import sys
import warnings
from collections.abc import Callable
from functools import partial
from typing import (
Annotated,
@@ -1573,6 +1574,66 @@ def test_tool_node_inject_state(schema_: type[T]) -> None:
assert tool_message.content == "hi?"
@pytest.mark.parametrize("schema_", _INJECTED_STATE_SCHEMAS)
def test_tool_node_send_tool_call_gets_same_state_as_edge(schema_: type[T]) -> None:
call = ToolCall(name="record", args={}, id="call_1", type="tool_call")
seen: list[tuple[type, type]] = []
def record(runtime: ToolRuntime, state: Annotated[T, InjectedState]) -> str:
"""Record the state types the tool gets."""
seen.append((type(runtime.state), type(state)))
return "ok"
def agent(state: Any) -> dict:
return {"messages": [AIMessage("", tool_calls=[call])]}
def state_types(route: Callable[[Any], str | list[Send]]) -> tuple[type, type]:
seen.clear()
graph = (
StateGraph(schema_)
.add_node("agent", agent)
.add_node("tools", ToolNode([record]))
.add_edge(START, "agent")
.add_conditional_edges("agent", route, ["tools"])
.compile()
)
graph.invoke({"messages": [], "foo": "bar"})
return seen[0]
by_send = state_types(lambda _: [Send("tools", [call])])
by_edge = state_types(lambda _: "tools")
assert by_send == by_edge
def test_tool_node_in_graph_run_by_send_gets_that_graphs_state() -> None:
call = ToolCall(name="record", args={}, id="call_1", type="tool_call")
seen: list[Any] = []
def record(runtime: ToolRuntime) -> str:
"""Record the state the tool gets."""
seen.append(runtime.state)
return "ok"
class State(TypedDict):
value: str
def call_tools(state: State) -> dict:
ToolNode([record]).invoke([call])
return {}
inner = StateGraph(State).add_node(call_tools).add_edge(START, "call_tools")
outer = (
StateGraph(State)
.add_node("inner", inner.compile())
.add_conditional_edges(
START, lambda _: [Send("inner", {"value": "inner"})], ["inner"]
)
.compile()
)
outer.invoke({"value": "outer"})
assert seen == [{"value": "inner"}]
def test_tool_node_inject_store() -> None:
store = InMemoryStore()
namespace = ("test",)
+4 -4
View File
@@ -381,7 +381,7 @@ wheels = [
[[package]]
name = "langgraph"
version = "1.2.20"
version = "1.2.24"
source = { editable = "../langgraph" }
dependencies = [
{ name = "langchain-core" },
@@ -465,7 +465,7 @@ test = [
[[package]]
name = "langgraph-checkpoint"
version = "4.3.1"
version = "4.3.2"
source = { editable = "../checkpoint" }
dependencies = [
{ name = "langchain-core" },
@@ -513,7 +513,7 @@ test = [
[[package]]
name = "langgraph-checkpoint-postgres"
version = "3.2.0"
version = "3.2.1"
source = { editable = "../checkpoint-postgres" }
dependencies = [
{ name = "langgraph-checkpoint" },
@@ -607,7 +607,7 @@ test = [
[[package]]
name = "langgraph-prebuilt"
version = "1.1.1"
version = "1.1.3"
source = { editable = "." }
dependencies = [
{ name = "langchain-core" },
@@ -13,8 +13,10 @@ Each node is designed to surface a specific v3 channel:
- `subgraph` is a nested `StateGraph` invoked once so `thread.subgraphs` has
exactly one direct child (`tasks` + `messages` under a namespace).
Extensions: every node calls `get_stream_writer()("progress", {...})` so
`thread.extensions["progress"]` produces deterministic events.
Extensions: every node writes `{"name": "progress", ...}` with
`get_stream_writer()`, and `ProgressTransformer` relays the root-level ones
onto a named `progress` channel, so `thread.extensions["progress"]` produces
deterministic events.
No real LLM is used — message streaming is simulated by yielding a list of
`AIMessageChunk`s from the node. This keeps the integration suite
@@ -38,6 +40,7 @@ from langchain_core.tools import tool
from langgraph.config import get_stream_writer
from langgraph.graph import StateGraph
from langgraph.graph.message import add_messages
from langgraph.stream import ProtocolEvent, StreamChannel, StreamTransformer
from langgraph.stream.transformers import CustomTransformer, UpdatesTransformer
from langgraph.types import interrupt
@@ -272,6 +275,33 @@ def run_subgraph(state: AgentState) -> dict[str, Any]:
}
class ProgressTransformer(StreamTransformer):
"""The server only routes named channels to `thread.extensions[name]`."""
required_stream_modes = ("custom",)
def __init__(self, scope: tuple[str, ...] = ()) -> None:
super().__init__(scope)
self._channel: StreamChannel[dict[str, Any]] = StreamChannel("progress")
self._scope_list = list(scope)
def init(self) -> dict[str, Any]:
return {"progress": self._channel}
def process(self, event: ProtocolEvent) -> bool:
if event["method"] != "custom":
return True
params = event["params"]
data = params["data"]
if (
params["namespace"] == self._scope_list
and isinstance(data, dict)
and data.get("name") == "progress"
):
self._channel.push(data)
return True
# ---------------------------------------------------------------------------
# Top-level graph
# ---------------------------------------------------------------------------
@@ -296,5 +326,5 @@ graph = _builder.compile(
# auto-registered by the v3 mux for any graph that streams a chat
# model. ``ValuesTransformer`` / ``LifecycleTransformer`` are also
# always-on natives.
transformers=[CustomTransformer, UpdatesTransformer],
transformers=[CustomTransformer, UpdatesTransformer, ProgressTransformer],
)
@@ -1,7 +1,7 @@
"""Exercise `thread.extensions[name]` against the integration API.
Every node in the example graph writes `("progress", {...})` via
`get_stream_writer`. This script verifies the `extensions["progress"]`
Every node in the example graph writes `{"name": "progress", ...}` via
`get_stream_writer`, relayed onto the named `progress` channel. This script verifies the `extensions["progress"]`
projection yields each progress event in order.
"""
@@ -32,7 +32,7 @@ async def run_async() -> None:
print(f" total progress events: {len(events)}")
assert events, "expected at least one progress event"
# Verify ordering covers the node sequence.
steps = [e.get("step") for e in events]
steps = [e["payload"]["step"] for e in events]
print(f" step sequence: {steps}")
finally:
await raw.aclose()
@@ -51,7 +51,7 @@ def run_sync() -> None:
events.append(event)
print(f" total progress events: {len(events)}")
assert events, "expected at least one progress event"
steps = [e.get("step") for e in events]
steps = [e["payload"]["step"] for e in events]
print(f" step sequence: {steps}")
finally:
raw.close()
@@ -28,7 +28,7 @@ async def test_extensions_async(async_threads) -> None:
# Iterator exits at the `ask_human` interrupt via `_signal_paused`,
# so we capture exactly the pre-interrupt progress sequence.
steps = [e.get("step") for e in events]
steps = [e["payload"]["step"] for e in events]
assert steps == _EXPECTED_PRE_INTERRUPT_STEPS, (
f"unexpected step sequence: {steps}"
)
@@ -43,7 +43,7 @@ def test_extensions_sync(sync_threads) -> None:
for event in thread.extensions["progress"]:
events.append(event)
steps = [e.get("step") for e in events]
steps = [e["payload"]["step"] for e in events]
assert steps == _EXPECTED_PRE_INTERRUPT_STEPS, (
f"unexpected step sequence: {steps}"
)
+3 -3
View File
@@ -394,7 +394,7 @@ wheels = [
[[package]]
name = "langgraph"
version = "1.2.20"
version = "1.2.24"
source = { editable = "../langgraph" }
dependencies = [
{ name = "langchain-core" },
@@ -478,7 +478,7 @@ test = [
[[package]]
name = "langgraph-checkpoint"
version = "4.3.1"
version = "4.3.2"
source = { editable = "../checkpoint" }
dependencies = [
{ name = "langchain-core" },
@@ -526,7 +526,7 @@ test = [
[[package]]
name = "langgraph-prebuilt"
version = "1.1.1"
version = "1.1.3"
source = { editable = "../prebuilt" }
dependencies = [
{ name = "langchain-core" },