Sydney Runkle
5e9bea5134
no upper bounds for python
2025-04-25 17:45:54 -07:00
Nuno Campos and GitHub
8951d162f0
Improve logic for drawing virtual end node ( #4409 )
...
- Don't draw unexpected edges to END node
- If a conditional edge has a custom label for END node then draw it
2025-04-25 15:45:12 -07:00
Nuno Campos
d90126b34e
Fix
2025-04-25 15:38:41 -07:00
Nuno Campos and GitHub
adc4569daf
build(deps): bump h11 from 0.14.0 to 0.16.0 in /libs/checkpoint-sqlite ( #4403 )
...
Bumps [h11](https://github.com/python-hyper/h11 ) from 0.14.0 to 0.16.0.
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/python-hyper/h11/commit/1c5b07581f058886c8bdd87adababd7d959dc7ca "><code>1c5b075</code></a>
this time for surer</li>
<li><a
href="https://github.com/python-hyper/h11/commit/d9c369935e853a7ee1aeb7e481f6dddf9b9c9b8a "><code>d9c3699</code></a>
this time for sure...</li>
<li><a
href="https://github.com/python-hyper/h11/commit/d91b9dd2290a25c8c3f5ec15feb57de5873e6e39 "><code>d91b9dd</code></a>
blacken</li>
<li><a
href="https://github.com/python-hyper/h11/commit/5a4683ca466b59bbab9b19cfea20ee157b31cee0 "><code>5a4683c</code></a>
Soothe mypy</li>
<li><a
href="https://github.com/python-hyper/h11/commit/9c9567f0a92d13a83a8d8ebdbc757c8c2d384536 "><code>9c9567f</code></a>
Bump version to 0.16.0</li>
<li><a
href="https://github.com/python-hyper/h11/commit/114803a29ce50116dc47951c690ad4892b1a36ed "><code>114803a</code></a>
Merge commit from fork</li>
<li><a
href="https://github.com/python-hyper/h11/commit/9462006f6ce4941661888228cbd4ac1ea80689b0 "><code>9462006</code></a>
Bump version to 0.15.0</li>
<li><a
href="https://github.com/python-hyper/h11/commit/70a96bea8e55403e5d92db14c111432c6d7a8685 "><code>70a96be</code></a>
Merge pull request <a
href="https://redirect.github.com/python-hyper/h11/issues/181 ">#181</a>
from Julien00859/Julien00859/get_int_max_str_digits</li>
<li><a
href="https://github.com/python-hyper/h11/commit/60782ad107e538b9312aac7e1c119c8358bf797c "><code>60782ad</code></a>
Reject Content-Length longer 1 billion TB</li>
<li><a
href="https://github.com/python-hyper/h11/commit/dff7cc397a26ed4acdedd92d1bda6c8f18a6ed9f "><code>dff7cc3</code></a>
Validate Chunked-Encoding chunk footer</li>
<li>Additional commits viewable in <a
href="https://github.com/python-hyper/h11/compare/v0.14.0...v0.16.0 ">compare
view</a></li>
</ul>
</details>
<br />
[](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 merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@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>
2025-04-25 15:23:46 -07:00
Nuno Campos
6d70559618
Upgrade
2025-04-25 15:17:06 -07:00
Nuno Campos
70afd2dc2c
Update all
2025-04-25 15:11:32 -07:00
ccurme and GitHub
14e7215090
docs: use langchain-tavily in quickstart ( #4412 )
...
We want to deprecate `TavilySearchResults` in langchain-community in
favor of `TavilySearch` in langchain-tavily.
Also update quickstart to use `init_chat_model`.
2025-04-25 17:54:37 -04:00
Nuno Campos
460edde3a7
Lint
2025-04-25 14:37:53 -07:00
Nuno Campos
34d591dedf
Improve logic for drawing virtual end node
...
- Don't draw unexpected edges to END node
- If a conditional edge has a custom label for END node then draw it
2025-04-25 14:37:53 -07:00
Daehwi Kim and GitHub
746b5f0730
fix(docs): fix typo ( #4411 )
2025-04-25 17:10:47 -04:00
Vadym Barda and GitHub
64448404de
ci: don't try to render mermaid images when testing notebooks ( #4414 )
2025-04-25 17:09:18 -04:00
Andrew Nguonly and GitHub
9637f3b1be
docs: Document API endpoint for creating new project ( #4413 )
2025-04-25 10:42:20 -07:00
Jacob Lee and GitHub
c7fe85585b
docs: Adds additional Google Analytics tag to docs ( #4402 )
...
CC @danielrlambert3
2025-04-24 13:17:52 -07:00
dependabot[bot] and GitHub
c6971c6a58
build(deps): bump h11 from 0.14.0 to 0.16.0 in /libs/checkpoint-sqlite
...
Bumps [h11](https://github.com/python-hyper/h11 ) from 0.14.0 to 0.16.0.
- [Commits](https://github.com/python-hyper/h11/compare/v0.14.0...v0.16.0 )
---
updated-dependencies:
- dependency-name: h11
dependency-version: 0.16.0
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-04-24 17:46:01 +00:00
Sydney Runkle and GitHub
2327f8619f
docs: fix xlinks (api and general) ( #4391 )
...
Mostly focusing on the API docs xrefs now working, for example:
<img width="728" alt="Screenshot 2025-04-23 at 6 43 40 PM"
src="https://github.com/user-attachments/assets/e0939edb-2088-4b4e-92b0-8009aac6a86e "
/>
-->
<img width="737" alt="Screenshot 2025-04-23 at 7 57 28 PM"
src="https://github.com/user-attachments/assets/d05e28b5-cf4f-41e0-96f8-9910d19f4657 "
/>
Also fixed some other broken links / references.
There are lots of broken links related to langgraph plans / deployment
options, I think our new docs writer was going to work on those.
2025-04-24 08:47:08 -07:00
Sydney Runkle and GitHub
4eb124e83d
[breaking]: Improve interrupt behavior when stream_mode='values' ( #4374 )
...
This PR does a few things:
1. Surfaces interrupts when `stream_mode='values'` (particularly
relevant for `invoke`, where this is the default behavior)
2. Adds an `interrupt_id` property to the `Interrupt` dataclass so that
interrupts can effectively be mapped to resumes
3. Minor docs updates to reflect the new pattern (no need for a special
section on interrupts with `invoke` and `ainvoke`)
* In a different PR (the one with the multiple resume values), as it's
more relevant there: add an `interrupts` property to `StateSnapshot` so
that `interrupts` can easily be iterated over if users are attempting to
map interrupts to resumes.
I **don't** recommend we release this until we have multi-resumes
working.
## Example
We have the following setup where we're sending multiple prompts to the
child graph, which uses `interrupt`:
```py
def child_graph(state):
human_input = interrupt(state["prompt"])
return {
"human_inputs": [human_input],
}
```
<img width="142" alt="Screenshot 2025-04-23 at 10 01 12 AM"
src="https://github.com/user-attachments/assets/c6238bf1-54ad-4e48-ab0b-60a0bfc18485 "
/>
Old behavior:
```py
initial_input = {"prompts": ["a", "b"]}
print(parent_graph.invoke(input=initial_input,config=thread_config,stream_mode="values"))
#> {'prompts': ['a', 'b'], 'human_inputs': []}
print(parent_graph.invoke(Command(resume="hello 1"),config=thread_config,stream_mode="values"))
#> {'prompts': ['a', 'b'], 'human_inputs': ['hello 1']}
print(parent_graph.invoke(Command(resume="hello 2"),config=thread_config,stream_mode="values"))
#> {'prompts': ['a', 'b'], 'human_inputs': ['hello 1', 'hello 2']}
```
New behavior:
```py
initial_input = {"prompts": ["a", "b"]}
print(parent_graph.invoke(input=initial_input,config=thread_config,stream_mode="values"))
"""
{
"prompts": ["a", "b"],
"human_inputs": [],
"__interrupt__": [
Interrupt(
value="a",
resumable=True,
ns=["child_graph:38d43a18-a5e7-8ab2-ca83-9d80f6e9ca83"]
),
Interrupt(
value="b",
resumable=True,
ns=["child_graph:dad810e8-738e-9f90-41cd-30c0091eb79b"]
)
]
}
"""
print(parent_graph.invoke(Command(resume="hello 1"),config=thread_config,stream_mode="values"))
"""
{
"prompts": ["a", "b"],
"human_inputs": ["hello 1"],
"__interrupt__": [
Interrupt(
value="b",
resumable=True,
ns=["child_graph:dad810e8-738e-9f90-41cd-30c0091eb79b"]
)
]
}
"""
print(parent_graph.invoke(Command(resume="hello 2"),config=thread_config,stream_mode="values"))
#> {'prompts': ['a', 'b'], 'human_inputs': ['hello 1', 'hello 2']}
```
2025-04-24 08:21:28 -07:00
Sydney Runkle
84e9ebda91
add back auto gen content
2025-04-24 08:16:03 -07:00
Sydney Runkle
48e8576fcf
remove auto gen file
2025-04-24 08:15:06 -07:00
William FH and GitHub
6263c2f710
Copy with cached property ( #4399 )
0.3.34
2025-04-24 07:16:37 -07:00
David Duong and GitHub
17bc55028e
docs(js): update semver constraints ( #4401 )
2025-04-24 15:48:17 +02:00
Tat Dat Duong
cd8443f5ce
docs(js): update semver constraints
2025-04-24 15:47:38 +02:00
David Duong and GitHub
7e3f31f97c
docs(js): update required semver ranges ( #4396 )
2025-04-24 12:41:12 +02:00
Tat Dat Duong
3db9bf325c
docs(js): update required semver ranges
2025-04-24 12:37:26 +02:00
Sydney Runkle
97337355a2
formatting
2025-04-23 21:21:02 -07:00
Sydney Runkle
d6c12133ad
fixing links
2025-04-23 21:15:55 -07:00
Sydney Runkle
d67abdd112
fix docs build
2025-04-23 20:07:16 -07:00
Sydney Runkle
8dec77e129
remove bounds on mkdocs deps
2025-04-23 18:42:42 -07:00
Sydney Runkle
b81c21f311
docs updates
2025-04-23 17:48:47 -07:00
Sydney Runkle
cd6b086374
await
2025-04-23 16:36:37 -07:00
Sydney Runkle
5929b0b08d
more test fixes
2025-04-23 16:19:46 -07:00
Sydney Runkle
9f33b4e529
fix test to reflect bug fix
2025-04-23 16:03:08 -07:00
Sydney Runkle and GitHub
f0fb8d9187
Merge branch 'main' into sr/better-interrupts
2025-04-23 15:58:57 -07:00
Sydney Runkle and GitHub
0ff913c50b
Fix double interrupt return caused by dynamic tasks ( #4389 )
...
Fix issue found in
https://github.com/langchain-ai/langgraph/pull/4374#discussion_r2056701206
2025-04-23 15:56:47 -07:00
Sydney Runkle and GitHub
67075bfb7f
Update libs/langgraph/tests/test_pregel_async.py
2025-04-23 15:50:22 -07:00
Sydney Runkle
37b2956758
helpful comments + test
2025-04-23 14:24:57 -07:00
Sydney Runkle
f42fc971e3
fix double interrupt raise with task path bool flag
2025-04-23 14:16:35 -07:00
Vadym Barda and GitHub
6bcab08f55
langgraph: release 0.3.33 ( #4388 )
2025-04-23 16:28:12 -04:00
Sydney Runkle
8fe7c8101f
more explicit tests
2025-04-23 11:49:26 -07:00
Vadym Barda and GitHub
6bca615e6a
langgraph: allow nested lists/dicts of primitives in RemoteGraph config ( #4387 )
2025-04-23 14:04:54 -04:00
Vadym Barda and GitHub
0147790937
langgraph: release 0.3.32 ( #4386 )
0.3.32
2025-04-23 11:51:29 -04:00
Vadym Barda and GitHub
364c572f0f
langgraph: fix messages streaming for list of Commands ( #4379 )
...
Fixes #4372
2025-04-23 11:46:57 -04:00
langchain-infra and GitHub
8af4b63c69
docs: Add docs for REDIS_KEY_PREFIX, REDIS_CLUSTER env vars ( #4334 )
...
# Description
Add documentation for using the REDIS_KEY_PREFIX, REDIS_CLUSTER env
vars.
2025-04-23 11:17:03 -04:00
Asamu David and GitHub
941b4b1287
Merge branch 'main' into da/4-17/add-redis-prefix-support
2025-04-23 15:52:30 +01:00
Asamu David and GitHub
24f04fba37
Update REDIS_CLUSTER env doc.md
2025-04-23 15:52:07 +01:00
William FH and GitHub
05f21a384b
Add image arg to up command ( #4385 )
...
Using this argument, you can get more customization since you can do
`langgraph build` or directly `docker build` your image and then re-use
the `langgraph up --image my-image` and have it also spin up redis &
postgres for you.
Easier then writing your own compose file
cli==0.2.7
2025-04-23 07:48:01 -07:00
Vadym Barda and GitHub
29e9ee2d7b
docs(agents): use list of messages format ( #4378 )
2025-04-23 01:25:00 +00:00
Sydney Runkle
d6b4ee348f
goodness, last test fix
2025-04-22 17:32:13 -07:00
Sydney Runkle
9e89b68596
fixing prebuilt tests
2025-04-22 17:24:54 -07:00
Sydney Runkle
1251eeaa48
final test fixes, hopefully
2025-04-22 17:21:56 -07:00
Sydney Runkle
85e73653f9
linting and test fixes
2025-04-22 17:10:54 -07:00