William FH and GitHub
0d8a8c5847
feat: [CLI] Add arg to retain build deps (setuptools, pip, wheel) ( #5404 )
2025-07-08 19:41:47 +00:00
Michael Li and GitHub
9cb6365914
docs: update file paths to make the examples more robust ( #5382 )
...
* cli: update file paths to make the examples more robust
* fix: fix the prompt path
2025-07-08 18:58:04 +00:00
Jake Broekhuizen and GitHub
fb1c0ae9f9
docs: Updating mcp_tools_node fn & referencing runtime graph rebuild docs ( #5328 )
...
Fix: Updating mcp_tools_node fn & referencing runtime graph rebuild docs
2025-07-08 12:55:15 -04:00
Lauren Hirata Singh and GitHub
4de1bd6e66
docs: cleanup ( #5401 )
...
* docs: cleanup
* fix nav
* fix
* fix nits
2025-07-08 12:33:14 -04:00
+8
f21fc056bf
docs: Convert example notebooks ( #5381 )
...
* Agentic RAG
* Fix formatting
* Agent supervisor
* fix links
* SQL agent
* Graph Runs in LS
* fix format
* Autogen + LG tutorial
* fixes
* update sql
* remove old notebooks
* docs: Add section about data region for LGP data plane (#5378 )
Add section about data region.
* fix: remove empty notebook (#5379 )
* Fix docstring for _unset_config_context function (#5374 )
Signed-off-by: jitokim <pigberger70@gmail.com >
* Fix typo in StreamMode debug description: checlkpoints → checkpoints (#5371 )
Signed-off-by: jitokim <pigberger70@gmail.com >
* fix: remove unused import in generate_llms_text.py (#5380 )
* dcos: Fix deprecation of TavilySearch (#5375 )
Fix deprecation: The class `TavilySearchResults` was deprecated in LangChain 0.3.25 and will be removed in 1.0
* Fix typo: funtion → function (#5370 )
fix typos
Signed-off-by: jitokim <pigberger70@gmail.com >
* docs: feedback edits (#5387 )
* docs: update lgp deployment metric list (#5388 )
* chore(deps): bump peter-evans/create-pull-request from 6 to 7 (#5365 )
Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request ) from 6 to 7.
- [Release notes](https://github.com/peter-evans/create-pull-request/releases )
- [Commits](https://github.com/peter-evans/create-pull-request/compare/v6...v7 )
---
updated-dependencies:
- dependency-name: peter-evans/create-pull-request
dependency-version: '7'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* docs: correct link in docs/docs/how-tos/graph-api.md (#5377 )
Update graph-api.md
* docs: Update quick_start.md Rest API Guide (#5368 )
Update quick_start.md Rest API Guide
The curl command in the quick start needs some minor changes to work out of the box. I hope by adding these changes then new users can get started more quickly
* Remove duplicate CONFIG_KEY_CHECKPOINT_MAP from RESERVED set (#5372 )
Signed-off-by: jitokim <pigberger70@gmail.com >
* docs: fix typo in persistence (#5329 )
* docs: fix typo in application_structure
* docs: fix typo in persistence
* chore[deps]: upgrade dependencies with `uv lock --upgrade` (#5358 )
* chore: upgrade dependencies with `uv lock --upgrade`
* linting
* upgrade PR title
---------
Co-authored-by: sydney-runkle <54324534+sydney-runkle@users.noreply.github.com >
Co-authored-by: Sydney Runkle <sydneymarierunkle@gmail.com >
* Updated examples for SummarizationNode to account for serde with persistence layers (#5257 )
* docs: move script into scripts (#5384 )
* docs: update sql tutorial (#5389 )
---------
Signed-off-by: jitokim <pigberger70@gmail.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: Andrew Nguonly <andrewnguonly@users.noreply.github.com >
Co-authored-by: Michael Li <michaelli65535@gmail.com >
Co-authored-by: jito <pigberger70@gmail.com >
Co-authored-by: Serhii Polishchuk <serhii.polishchuk@gelato.com >
Co-authored-by: hari-dhanushkodi <hari@langchain.dev >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Fadel Akram <af8356207@gmail.com >
Co-authored-by: David <31293924+dreadn0ught@users.noreply.github.com >
Co-authored-by: Youssef Ahmed Mohamed Abdelrahman <109446360+unauthorised-401@users.noreply.github.com >
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: sydney-runkle <54324534+sydney-runkle@users.noreply.github.com >
Co-authored-by: Sydney Runkle <sydneymarierunkle@gmail.com >
Co-authored-by: Nick Riley <nick@sparkida.com >
Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com >
Co-authored-by: ccurme <chester.curme@gmail.com >
2025-07-08 10:36:47 -04:00
lc-arjun and GitHub
1f1d032430
docs: add tunnel flag to node server docs ( #5398 )
2025-07-08 06:59:02 -07:00
lc-arjun and GitHub
6f86a8c4cb
Revert "docs: add -tunnel flag for node server" ( #5397 )
...
Revert "docs: add -tunnel flag for node server (#5373 )"
This reverts commit 4abf948462 .
2025-07-08 06:49:13 -07:00
Nick Riley and GitHub
d5ab8b42e0
Updated examples for SummarizationNode to account for serde with persistence layers ( #5257 )
2025-07-07 16:31:55 -07:00
87f2e69395
chore[deps]: upgrade dependencies with uv lock --upgrade ( #5358 )
...
* chore: upgrade dependencies with `uv lock --upgrade`
* linting
* upgrade PR title
---------
Co-authored-by: sydney-runkle <54324534+sydney-runkle@users.noreply.github.com >
Co-authored-by: Sydney Runkle <sydneymarierunkle@gmail.com >
2025-07-07 23:24:32 +00:00
Youssef Ahmed Mohamed Abdelrahman and GitHub
4c73b176ff
docs: fix typo in persistence ( #5329 )
...
* docs: fix typo in application_structure
* docs: fix typo in persistence
2025-07-07 23:22:53 +00:00
jito and GitHub
4321ed0f87
Remove duplicate CONFIG_KEY_CHECKPOINT_MAP from RESERVED set ( #5372 )
...
Signed-off-by: jitokim <pigberger70@gmail.com >
2025-07-07 19:19:16 -04:00
David and GitHub
cba4d9e3bc
docs: Update quick_start.md Rest API Guide ( #5368 )
...
Update quick_start.md Rest API Guide
The curl command in the quick start needs some minor changes to work out of the box. I hope by adding these changes then new users can get started more quickly
2025-07-07 19:18:55 -04:00
Fadel Akram and GitHub
fa36a50444
docs: correct link in docs/docs/how-tos/graph-api.md ( #5377 )
...
Update graph-api.md
2025-07-07 23:14:17 +00:00
5413f9db9f
chore(deps): bump peter-evans/create-pull-request from 6 to 7 ( #5365 )
...
Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request ) from 6 to 7.
- [Release notes](https://github.com/peter-evans/create-pull-request/releases )
- [Commits](https://github.com/peter-evans/create-pull-request/compare/v6...v7 )
---
updated-dependencies:
- dependency-name: peter-evans/create-pull-request
dependency-version: '7'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-07-07 19:00:51 -04:00
ccurme and GitHub
8118e90543
docs: update sql tutorial ( #5389 )
2025-07-07 18:02:02 -04:00
hari-dhanushkodi and GitHub
c13c474626
docs: update lgp deployment metric list ( #5388 )
2025-07-07 17:44:57 -04:00
Lauren Hirata Singh and GitHub
cd58fad69d
docs: feedback edits ( #5387 )
2025-07-07 17:03:05 -04:00
jito and GitHub
f3a7925d86
Fix typo: funtion → function ( #5370 )
...
fix typos
Signed-off-by: jitokim <pigberger70@gmail.com >
2025-07-07 20:09:55 +00:00
Serhii Polishchuk and GitHub
de6c25689d
dcos: Fix deprecation of TavilySearch ( #5375 )
...
Fix deprecation: The class `TavilySearchResults` was deprecated in LangChain 0.3.25 and will be removed in 1.0
2025-07-07 16:00:57 -04:00
Michael Li and GitHub
141afa8c62
fix: remove unused import in generate_llms_text.py ( #5380 )
2025-07-07 15:54:02 -04:00
jito and GitHub
e99f6292c5
Fix typo in StreamMode debug description: checlkpoints → checkpoints ( #5371 )
...
Signed-off-by: jitokim <pigberger70@gmail.com >
2025-07-07 19:27:09 +00:00
jito and GitHub
1800df7048
Fix docstring for _unset_config_context function ( #5374 )
...
Signed-off-by: jitokim <pigberger70@gmail.com >
2025-07-07 19:25:06 +00:00
Eugene Yurtsev and GitHub
7f57e00975
docs: move script into scripts ( #5384 )
2025-07-07 15:10:01 -04:00
Michael Li and GitHub
844417591d
fix: remove empty notebook ( #5379 )
2025-07-07 19:09:00 +00:00
Andrew Nguonly and GitHub
c9966c4feb
docs: Add section about data region for LGP data plane ( #5378 )
...
Add section about data region.
2025-07-07 12:39:44 -04:00
lc-arjun and GitHub
4abf948462
docs: add -tunnel flag for node server ( #5373 )
...
add -tunnel flag for node server
2025-07-07 08:05:46 -07:00
jessicaou and GitHub
269590c4d9
docs: update case studies ( #5353 )
2025-07-06 20:37:54 -04:00
Shivang Agarwal and GitHub
d8756f257e
Updated TAVILY Key Setup ( #5346 )
2025-07-07 00:36:28 +00:00
Chris G and GitHub
cac0cd5522
docs: update name of CompiledGraph CompiledStateGraph ( #5348 )
...
The name (and type) has changed. See:
https://langchain-ai.github.io/langgraph/reference/graphs/#langgraph.graph.state.StateGraph.compile
2025-07-07 00:35:37 +00:00
David Duong and GitHub
c91208429e
fix(docs): invalid command for creating langgraph app ( #5349 )
2025-07-04 16:30:06 +02:00
Tat Dat Duong
690b6f4ea1
fix(docs): invalid command for creating langgraph app
...
Closes https://github.com/langchain-ai/langgraphjs/issues/1331
2025-07-04 16:29:38 +02:00
Andrew Nguonly and GitHub
07cd4d83e1
docs: Add note about preemptive compute infra ( #5339 )
...
* Add note about preemtive compute infra.
* Fix spelling error.
2025-07-03 16:04:27 -07:00
David Duong and GitHub
fcdfc1d5e4
chore: move sdk-js to langgraphjs ( #5334 )
2025-07-03 16:58:31 +02:00
Tat Dat Duong
dc95d1af88
Add a README.md
2025-07-03 16:52:35 +02:00
Tat Dat Duong
042e8ef315
chore: remove sdk-js
...
`sdk-js` has been moved here: https://github.com/langchain-ai/langgraphjs/tree/main/libs/sdk
2025-07-03 16:50:51 +02:00
Eugene Yurtsev and GitHub
37d1ac1dce
ci: one more workflow without explicit permissions ( #5326 )
2025-07-02 22:26:32 -04:00
Josh Rogers and GitHub
ecfabdf73a
Adding disable_webhook to cli docs ( #5320 )
...
* Adding disable_webhook to cli docs
* Adding disable_webhook config
2025-07-02 22:14:01 -04:00
Lauren Hirata Singh and GitHub
543e4c4e7e
docs: Convert notebooks ( #5322 )
...
* docs: Convert subgraphs notebook
* graph api conversion
* fix examples
* add
* fixes
* fix links
* fix links
* be gone!
* multi-agent conversion
* fix link
* fix links
* fix link
2025-07-02 23:28:42 +00:00
22e09d2739
Create user_agent_auth.md ( #5299 )
...
* Create user_agent_auth.md
Adding documentation for agent authentication on behalf of a user
* Update user_agent_auth.md
* Rename user_agent_auth.md to user-agent-auth.md
* break content out to separate guides
* add links/overview
* edits
* fix sentence
* Fix broken links
* Fix: Change 'get_user_config' fn name to 'my_node'
* Fix: Add reference to custom auth in MCP docs example
---------
Co-authored-by: Lauren Hirata Singh <lauren@langchain.dev >
2025-07-02 22:05:07 +00:00
Andrew Nguonly and GitHub
89451f4ea2
docs: Add LGP control plane API docs page ( #5319 )
...
Add control plane API docs page.
2025-07-02 14:30:00 -07:00
Sydney Runkle and GitHub
813a1d6d0c
langgraph: release v0.5.1 ( #5323 )
...
* bump
* lock
2025-07-02 21:06:05 +00:00
Eugene Yurtsev and GitHub
e28af0ffc3
ci: set explicit workflow permissions to read (should be a no-op) ( #5318 )
...
* We're using restricted GITHUB_TOKENS by default.
* This is expected to be a no-op operation for codeql.
2025-07-02 17:02:17 -04:00
Sydney Runkle and GitHub
339de4c204
langgraph[fix]: remove deprecated pydantic logic + fix schema gen behavior for typed dicts ( #5296 )
2025-07-02 20:08:48 +00:00
lc-arjun and GitHub
0885e7833b
docs: cli data storage handling ( #5188 )
...
Write up initial docs on how data is managed in the langgraph server, what telemetry is collected (and why), and how to opt-out.
2025-07-02 12:19:46 -07:00
Josh Rogers and GitHub
669cf817e8
Bump js sdk to 0.0.89 ( #5313 )
2025-07-02 09:56:04 -07:00
Sydney Runkle and GitHub
000f5c3043
fix[deps]: update lockfiles / deps bounds for internal tools ( #5301 )
...
update lockfiles / deps bounds
2025-07-02 10:30:55 -04:00
Sydney Runkle and GitHub
b3708bd7f6
ci: add automated uv lock --upgrade workflow ( #5307 )
2025-07-02 10:10:01 -04:00
Sydney Runkle and GitHub
8271e39e00
dependabot: no kafka ( #5306 )
...
* fix list of dirs
* another patch
2025-07-02 13:15:00 +00:00
Sydney Runkle and GitHub
60560ea755
dependabot: fix list of dirs for pip updates ( #5305 )
...
fix list of dirs
2025-07-02 13:12:22 +00:00
waqarahmed6095 and GitHub
e2acfb24cc
Update use_stream_react.md ( #5304 )
...
Problem of two times heading
"How to integrate LangGraph into your React application"
2025-07-02 13:10:57 +00:00
Sydney Runkle and GitHub
191192b142
upgrade dependabot scope ( #5303 )
2025-07-02 09:09:11 -04:00
Josh Rogers and GitHub
df368bdd30
Updating message types to include all base message fields ( #5298 )
2025-07-01 15:40:13 -07:00
Josh Rogers and GitHub
4ec897033f
Update LGP api reference docs ( #5297 )
2025-07-01 11:45:30 -07:00
c16e42e6d5
fix broken link ( #5291 )
...
* fix broken link
* Apply suggestions from code review
Fix link
Co-authored-by: Sydney Runkle <54324534+sydney-runkle@users.noreply.github.com >
---------
Co-authored-by: Lauren Hirata Singh <lauren@langchain.dev >
Co-authored-by: Sydney Runkle <54324534+sydney-runkle@users.noreply.github.com >
2025-07-01 13:52:26 +00:00
David Duong and GitHub
376469ea90
release(sdk-js): 0.0.88 ( #5294 )
2025-07-01 14:30:37 +02:00
Tat Dat Duong
7e2af0ce8d
release(sdk-js): 0.0.88
2025-07-01 14:21:11 +02:00
Youssef Ahmed Mohamed Abdelrahman and GitHub
1b205a99cb
docs: fix typo in application_structure ( #5289 )
2025-07-01 12:09:14 +00:00
Sam Crowder and GitHub
0a8ba20f5f
docs: remove beta flag on self hosted plane ( #5288 )
2025-06-30 22:41:05 -04:00
Sam Crowder and GitHub
048cb3584c
self hosted control plane no longer in beta ( #5286 )
...
* self hosted control plane no longer in beta
* accidental changes
2025-06-30 17:34:18 -07:00
Sam Crowder and GitHub
22c35b7bc8
switch order of MCP methods in API spec ( #5287 )
2025-06-30 17:33:59 -07:00
David Duong and GitHub
f3ed32e611
feat(react): enhance useStream with initialValues, newThreadId, and onStop callback for improved UX ( #5111 )
2025-07-01 01:53:28 +02:00
Tat Dat Duong
276675b618
Make sure to spread stream values
2025-07-01 01:39:53 +02:00
Tat Dat Duong
882de42996
Fix non-existent assistantId
2025-07-01 01:35:59 +02:00
Tat Dat Duong
70be50f37b
Fix typo
2025-07-01 01:33:08 +02:00
Tat Dat Duong
1c7234e9c5
Update README.md
2025-07-01 01:32:27 +02:00
Tat Dat Duong
3d88f75254
Cleanup
2025-07-01 01:19:07 +02:00
Lauren Hirata Singh and GitHub
407abbe9ff
Add forum links ( #5282 )
2025-06-30 16:11:46 -04:00
ccurme and GitHub
6182cd1dcb
prebuilt: release 0.5.2 ( #5280 )
2025-06-30 15:50:21 -04:00
Lauren Hirata Singh and GitHub
1d276dd753
docs: cronjob nav ( #5281 )
2025-06-30 15:34:29 -04:00
ccurme and GitHub
a48d8cb69b
prebuilt[patch]: import recognized tool message content block types from langchain-core ( #5275 )
2025-06-30 15:22:19 -04:00
Lauren Hirata Singh and GitHub
a05a251caf
docs: Fix nav ( #5279 )
2025-06-30 15:18:43 -04:00
MauritsBrinkman and Tat Dat Duong
c7bbb26ac0
test: add useStream onStop callback tests
2025-06-30 16:43:48 +02:00
MauritsBrinkman and Tat Dat Duong
ac9b6c416e
feat: add onStop callback to useStream for custom stop behavior
...
Add onStop callback to useStream hook enabling developers to customize
UI behavior when streams are stopped. This is especially useful for
UI messages with loading states that need to show "stopped" status
instead of remaining in infinite loading state.
The callback provides the same mutate function as onCustomEvent for
immediate local state updates, while users can optionally update
server thread state using the threads client.
Example usage:
```typescript
const stream = useStream({
assistantId: "my-assistant",
onStop: async ({ mutate }) => {
// Immediate UI update - stop loading components
mutate((prev) => ({
...prev,
ui: prev.ui?.map(component =>
component.props?.isLoading
? {
...component,
props: {
...component.props,
isLoading: false,
isStopped: true
}
}
: component
)
}));
// Optional server thread state update
if (stream.threadId) {
await stream.client.threads.updateState(stream.threadId, {
values: {
ui: prev.ui // persist stopped state to server
}
});
}
}
});
```
This is especially useful for cases where gen UI components have loading states,
where we don't want the loading state to persist on cancellation.
2025-06-30 16:43:13 +02:00
MauritsBrinkman and Tat Dat Duong
d4b4eebe4a
fix(sdk-js): convert SSE classes to factory functions to resolve tree shaking
...
- Convert BytesLineDecoder and SSEDecoder from classes extending TransformStream to factory functions
- Fixes tree shaking failures that prevented build completion
- Maintains identical API functionality, just removes 'new' keyword usage
- All tests continue to pass
Resolves tree shaking side effect detection issues with TransformStream extension
2025-06-30 16:43:13 +02:00
MauritsBrinkman and Tat Dat Duong
f8e1e803e1
docs(react): add documentation and tests for initialValues and newThreadId options
...
- Document initialValues for cached thread display
- Document newThreadId for optimistic thread creation
- Add comprehensive test coverage for both features
2025-06-30 16:43:12 +02:00
MauritsBrinkman and Tat Dat Duong
141a6af4f7
feat(react): add initialValues option to useStream for cached thread display
...
Add initialValues parameter to UseStreamOptions to enable immediate display
of cached thread data while official history is being fetched from the server.
This addresses the common use case where applications cache thread data
locally (IndexedDB, localStorage, etc.) and want to show it instantly when
users navigate to existing threads, providing better UX with faster loading.
Key changes:
- Add initialValues?: Partial<StateType> | null to UseStreamOptions interface
- Update values precedence: streamValues > initialValues > historyValues
- Ensure optimisticValues properly override initialValues during submission
- Maintain full backward compatibility with existing API
Example usage:
```typescript
const stream = useStream({
threadId,
assistantId: 'my-assistant',
initialValues: cachedThreadData?.values // Show cached data immediately
});
```
The values flow now follows this priority:
1. Initial load: shows initialValues while history loads
2. During submit: optimisticValues take precedence
3. After server response: official history replaces all
2025-06-30 16:43:12 +02:00
MauritsBrinkman and Tat Dat Duong
8a763ad358
feat(react): add newThreadId option to useStream for optimistic UI
...
Add optional newThreadId parameter to useStream hook that allows specifying
a thread ID for new thread creation while keeping threadId null. This enables
optimistic UI patterns where developers need to know the thread ID beforehand
for routing/navigation without causing 404 errors from attempting to fetch
non-existent thread history.
Usage:
- Set threadId: null and newThreadId: "predetermined-id"
- Submit message to create thread with specified ID
- Use onThreadId callback to update threadId after creation
This solves the UX problem of having to await thread creation before
enabling optimistic navigation to e.g. /[threadId] routes.
2025-06-30 16:43:12 +02:00
David Duong and GitHub
16d02e63a1
fix: Allow configuring stream mode in useStream.joinStream() ( #5146 )
2025-06-30 16:37:56 +02:00
David Duong and GitHub
03421c2b04
chore(sdk-js): use embed LGP server for MSW mocking ( #5174 )
2025-06-30 16:33:47 +02:00
Tat Dat Duong
2508aa45ea
Use published package
2025-06-30 13:51:32 +02:00
Sam Crowder and GitHub
9e035264f8
slightly more explanation when we say dont use in serverless ( #5245 )
...
slightly more explanation
2025-06-29 21:59:48 -04:00
joaquin-borggio-lc and GitHub
84e14f47bf
docs: Add pre-req for egress to control plane ( #5241 )
...
added pre-req for egress
2025-06-27 14:18:39 -07:00
Lauren Hirata Singh and GitHub
83bbe42eab
docs: Nav reorg ( #5236 )
...
* docs: Nav consolidation
* nav
* reorg
* fix links
* fix
* prebuilts
* fix spelling
* reorg
* reorg
2025-06-27 14:06:26 -04:00
David Duong and GitHub
70894af72c
fix(sdk-js): avoid stale client when fetching history ( #5240 )
2025-06-27 20:04:41 +02:00
Tat Dat Duong
e466327524
Bump to 0.0.87
2025-06-27 20:03:03 +02:00
Tat Dat Duong
b6655fe083
Use the client hash only in useEffect
2025-06-27 19:59:21 +02:00
Tat Dat Duong
9b7cc1c82e
fix(sdk-js): avoid stale client when fetching history
2025-06-27 19:51:49 +02:00
Nuno Campos and GitHub
80d6bddd1b
Fix deadlock in SqliteStore ( #5234 )
2025-06-27 09:03:57 -07:00
Nuno Campos
c406aede96
Fix deadlock in SqliteStore
...
- If setup wasnt called separately _cursor() and setup() would deadlock
- The call to setup() in _cursor() should be outside the lock block, as setup() also acquires the lock and re-checks the setup flag
2025-06-27 08:57:35 -07:00
Eugene Yurtsev and GitHub
96bfc8bad9
docs: cross links for functional api ( #5231 )
...
add cross-links
2025-06-27 11:31:18 -04:00
0fd6306623
docs: Time travel and breakpoints ( #5215 )
...
* docs: Time travel and breakpoints
* fix links
* fix
* edits
* Fix link
* Remove circular redirects
* revert llms.txt
---------
Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com >
2025-06-27 14:49:53 +00:00
Yassin Nouh and GitHub
f01ab13cab
DOC: Add missing docs_txt = format_docs() lines in adaptive RAG tutorial ( #5222 )
2025-06-27 10:45:12 -04:00
Eugene Yurtsev and GitHub
1beaf48cf9
docs: quick nav fixes ( #5229 )
...
Quick nav fixes
2025-06-27 10:37:42 -04:00
Sam Crowder and GitHub
847b0e8243
add warning about serverless ( #5218 )
2025-06-27 07:31:52 -07:00
Eugene Yurtsev and GitHub
02a2467610
docs: context update ( #5207 )
...
Update context
2025-06-27 14:25:54 +00:00
Sydney Runkle and GitHub
fa5e7a97c2
release[prebuilt]: bump version to v0.5.1 ( #5228 )
...
version bump
2025-06-27 14:02:14 +00:00
Sydney Runkle and GitHub
233a92ccb9
fix[prebuilt]: bind tools even if it's only provider tools ( #5227 )
...
bind tools even if just provider tools
2025-06-27 09:49:26 -04:00
lc-arjun and GitHub
e277a6bd9b
chore: sdk bumps ( #5220 )
...
* chore: sdk bumps
* uv lock
2025-06-26 17:57:05 -07:00
lc-arjun and GitHub
16250fe038
chore: update api ref docs and fix schemas ( #5219 )
2025-06-26 17:41:03 -07:00
Nuno Campos
216d1be0a5
Revert "Reapply "docs: deploy from v0 branch for now ( #4960 )" ( #5184 ) ( #5185 )"
...
This reverts commit cb63c1ab72 .
2025-06-26 15:52:45 -07:00
Nuno Campos
0a4cd5fcaa
0.5.0
2025-06-26 15:47:46 -07:00
Nuno Campos and GitHub
f8503670af
Add test for reducer exceptions ( #5217 )
2025-06-26 12:48:07 -07:00
Nuno Campos
0f22841f78
Add test for reducer exceptions
2025-06-26 11:40:55 -07:00
lc-arjun and GitHub
4a26ca5bc2
feat: crons sorting sdk ( #5197 )
...
* feat: crons sorting sdk
* update sync clients
* lock file
* lock file
* lock file
2025-06-26 11:27:44 -07:00
William FH and GitHub
a622218746
chore: (CLI) bump api minbound ( #5206 )
2025-06-25 19:28:13 -07:00
William FH and GitHub
7fda427601
fix: [prebuilt] Checks for pre-bound model with builtin tools ( #5203 )
2025-06-26 01:34:21 +00:00
Nuno Campos and GitHub
1c9bfba23a
feat(langgraph): task masquerading with update state ( #5189 )
2025-06-25 17:13:54 -07:00
Nuno Campos
cee9ac0b7a
One more
2025-06-25 17:07:26 -07:00
Nuno Campos
3ddb6b1477
One more
2025-06-25 17:05:41 -07:00
Nuno Campos
8a5519da29
Fix update_state bugs
2025-06-25 17:02:08 -07:00
Nuno Campos and Tat Dat Duong
abc5a5ff44
Update
2025-06-26 01:30:52 +02:00
Nuno Campos and Tat Dat Duong
38ab90217f
Fix assertion
2025-06-26 01:30:52 +02:00
Tat Dat Duong
005edb2979
Async test
2025-06-26 01:30:51 +02:00
Tat Dat Duong
c5a851cd91
Use as_node=END instead
2025-06-26 01:30:51 +02:00
Tat Dat Duong
06a42aee53
Remove if/else
2025-06-26 01:30:51 +02:00
Tat Dat Duong
04b9947a41
Fix mypy
2025-06-26 01:30:51 +02:00
Tat Dat Duong
239df52e74
Avoid creating new root checkpoint to preserve behaviour
2025-06-26 01:30:48 +02:00
Tat Dat Duong
8a67a5ac25
Fix format
2025-06-26 01:30:11 +02:00
Tat Dat Duong
adb2eee54b
Remove dict
2025-06-26 01:30:10 +02:00
Tat Dat Duong
263a583f01
Fix lint
2025-06-26 01:30:10 +02:00
Tat Dat Duong
565d52975c
Fix test
2025-06-26 01:30:10 +02:00
Tat Dat Duong
865fba9d50
feat(langgraph): task masquerading with update state
2025-06-26 01:30:10 +02:00
Nuno Campos and GitHub
929bba8337
Add print_mode= arg to invoke/stream ( #5201 )
2025-06-25 16:21:19 -07:00
Nuno Campos and GitHub
634511350f
Remove unused branch in update_state ( #5195 )
2025-06-25 16:08:48 -07:00
Nuno Campos
c9dcd3fbb5
Map debug=True to print_mode=['values', 'updates']
2025-06-25 16:08:20 -07:00
Eugene Yurtsev and GitHub
10a0a8633a
docs: consolidate models ( #5200 )
...
* Expand chat model documentation a bit.
* Adds links to langchain docs to make relevant information easier to find.
* This is a stop-gap until we merge langchain and langgraph docs
2025-06-25 15:55:17 -04:00
Eugene Yurtsev and GitHub
23327f5647
docs: update mcp docs ( #5191 )
...
Update MCP docs
2025-06-25 15:06:35 -04:00
Nuno Campos
e23da72ccd
Add print_mode= arg to invoke/stream
...
- This is more flexible version of the debug= flag, which we'll deprecate
2025-06-25 11:52:42 -07:00
0aefe68a5f
docs: HITL consolidation ( #5192 )
...
* HITL consolidation, minus server
* Fix links
* Fix server page
* remove extra page
* nits
* updates based on feedback
* Update docs/docs/concepts/human_in_the_loop.md
Co-authored-by: Sydney Runkle <54324534+sydney-runkle@users.noreply.github.com >
* edits based on feedback
---------
Co-authored-by: Sydney Runkle <54324534+sydney-runkle@users.noreply.github.com >
2025-06-25 14:16:46 -04:00
Eugene Yurtsev and GitHub
5b8edf3c72
docs: consolidate tool documentation ( #5190 )
...
Consolidate tool documentation
- [x] Cross links between conceptual doc and tools guide
- [x] Tools guide includes both workflow and agent usage example
2025-06-25 14:13:11 -04:00
Lauren Hirata Singh and GitHub
b64e1bcae4
docs: Add FAQ for nodes executed ( #5198 )
...
Add FAQ for nodes executed
2025-06-25 12:28:21 -04:00
Nuno Campos
d877ea479b
Remove unused branch in update_state
...
- update_state(None, as_node=None) was not tested/used, and was too similar in behavior to __copy__ / __end__, so removing it
2025-06-25 08:38:20 -07:00
Sydney Runkle and GitHub
cb63c1ab72
Reapply "docs: deploy from v0 branch for now ( #4960 )" ( #5184 ) ( #5185 )
...
This reverts commit a7ea5e44ce .
2025-06-24 16:01:03 +00:00
Sydney Runkle and GitHub
a7ea5e44ce
Revert "docs: deploy from v0 branch for now ( #4960 )" ( #5184 )
...
This reverts commit aedf974dfd .
2025-06-24 14:59:33 +00:00
Lauren Hirata Singh and GitHub
c3ae5e6b71
docs: Reorganize existing content ( #5122 )
...
* Organize existing content differently
* Fix broken links
* Remove cookie consent popup
* edits
* Consolidate streaming
* Remove agents/streaming
* Fix broken links
* Edit stream modes
* Change titles
* Fix titles based on feedback
* Move LGP to platform section
* Update navigation
* Consolidate assistant conceptual guides
* docs: Memory consolidation (#5149 )
* Memory consolidation
* Fix broken links
* fix links
* Fix links
* Fix links
* General content clean up for memory
* fix links
* Fix link
* fix links
* Fix title
* Edits based on feedback
* Link to memory store
2025-06-24 09:29:59 -04:00
Vedant Panchal and GitHub
ac328c3fd8
[fix] snippet for Agents as a Tool ( #5181 )
...
snippet had a missing decorator that might lead the user to confuse whether it is really a tool
2025-06-24 11:44:32 +00:00
Nuno Campos and GitHub
ebd7977936
Revert change to default value of checkpoint_during arg ( #5177 )
2025-06-23 18:12:19 -07:00
Nuno Campos
a6381c32b0
Revert change to default value of checkpoint_during arg
2025-06-23 18:05:46 -07:00
Nuno Campos and GitHub
294d346650
Fix bug where Command(update=) could be ignored if there was a 2nd interrupt after it ( #5175 )
2025-06-23 17:35:36 -07:00
Nuno Campos
866c8009dc
Fix bug where Command(update=) could be ignored if there was a 2nd interrupt after it
...
- writes from the null task (ie. from outside tasks) should be accummulated across invocations
2025-06-23 17:23:53 -07:00
Tat Dat Duong
9a0cee5cd0
chore(sdk-js): use embed LGP server for MSW mocking
2025-06-24 02:14:19 +02:00
Rauf Parchiev and GitHub
73bed2cf7c
Update workflows.md ( #5116 )
2025-06-23 23:54:45 +00:00
Eugene Yurtsev and GitHub
4cffe58065
docs: fix tab syntax errors and admonition syntax errors ( #5091 )
2025-06-23 19:53:54 -04:00
nikhildigde and GitHub
e73964a971
Update custom_routes.md ( #5110 )
...
Updated the statement about app.py
2025-06-23 23:53:25 +00:00
William Fu-Hinthorn
de91f21f6b
Update cli config doc on pip_installer
2025-06-23 16:40:07 -07:00
David Duong and GitHub
41eed326b8
Disable values update on use stream in interrupt events ( #5041 )
2025-06-24 00:08:14 +02:00
Mason Daugherty and GitHub
946d23213d
docs: add Homebrew install option to CLI docs ( #5160 )
...
Add Homebrew install option to CLI docs
2025-06-23 11:33:12 -04:00
hari-dhanushkodi and GitHub
c78197a583
add more docs for lgp deployment metrics ( #5151 )
2025-06-23 07:12:06 -07:00
Lauren Hirata Singh and GitHub
50756207ee
docs: fix a typo 'prebuit' to 'prebuilt' in notebook_hooks.py ( #5154 )
2025-06-23 09:44:45 -04:00
OfirTeneJuno and GitHub
903cec0cfa
Merge branch 'main' into interrupt-use-stream-values
2025-06-23 13:25:35 +03:00
foie0222
f63952595d
fix: a typo prebuit to prebuilt
2025-06-21 17:49:40 +09:00
Andrew Nguonly and GitHub
4a252bd03a
docs: Remove note for LANGSMITH_TRACING environment variable ( #5147 )
...
Remove note for LANGSMITH_TRACING.
2025-06-20 13:36:29 -07:00
Eugene Yurtsev and GitHub
f0f329d9e1
docs: Add conditional js/python rendering ( #5128 )
...
# Overview
Adding conditional rendering logic to co-locate js and python documentation.
* `:::` conditional syntax can be used to switch between python only or js only content.
* Contains simple unit tests for `:::`
* PR adds set up for a way to implement a context switch between languages, but it will not be enabled until JS content is merged in.
* Contains a script that can add javascript documentation
Implementation of: https://github.com/langchain-ai/langgraph/pull/5118
## Example
Example of conditional rendering / compilation.
```markdown
### Config (static context)
Config is for immutable data like user metadata or API keys. Use
when you have values that don't change mid-run.
Specify configuration using a key called **"configurable"** which is reserved
for this purpose:
:::python
This content will only be rendered for the python site.
:::
:::js
this content will only be rendered for the js / ts site.
:::
```
2025-06-20 16:20:16 -04:00
bracesproul
78bef6bc0c
formatting
2025-06-19 11:20:17 -07:00
bracesproul
7bd364c457
fix: Allow configuring stream mode in useStream.joinStream()
2025-06-19 11:14:59 -07:00
OfirTeneJuno and GitHub
77306c5142
Merge branch 'main' into interrupt-use-stream-values
2025-06-19 14:06:24 +03:00
Nuno Campos and GitHub
eba18c3213
Reduce extraneous keys in checkpoint.metadata ( #5133 )
2025-06-17 17:46:45 -07:00
Nuno Campos
a1c856c088
Reduce extraneous keys in checkpoint.metadata
...
- Leave it up to each checkpointer implementation to decide whether to merge in configurable/metadata (previously PregelLoop would do some of this always)
- Never copy over internal langgraph keys into checkpoint.metadata (these are redundant/misleading to include)
2025-06-17 17:40:18 -07:00
Josh Rogers and GitHub
92010f84ec
Adding disable_mcp field to cli docs ( #5132 )
2025-06-17 16:22:50 -07:00
Nuno Campos and GitHub
3b8f3f9de3
If FuturesDict callback has been GCed, don't call it ( #5131 )
2025-06-17 14:03:16 -07:00
Nuno Campos
6dcff8a839
If FuturesDict callback has been GCed, don't call it
2025-06-17 13:47:47 -07:00
1309243b29
docs: studio evals ( #5129 )
...
* docs: studio evals
* docs: added studio evals images (#5076 )
* docs: added studio evals images
* Update docs/docs/cloud/how-tos/studio/run_evals.md
Co-authored-by: lc-arjun <arjun@langchain.dev >
* Update docs/docs/cloud/how-tos/studio/run_evals.md
Co-authored-by: lc-arjun <arjun@langchain.dev >
* Update docs/docs/cloud/how-tos/studio/run_evals.md
Co-authored-by: lc-arjun <arjun@langchain.dev >
* docs: updated studio evals
* Update docs/docs/cloud/how-tos/studio/run_evals.md
Co-authored-by: lc-arjun <arjun@langchain.dev >
* docs: removed images
---------
Co-authored-by: lc-arjun <arjun@langchain.dev >
* final changes
* i think its this
---------
Co-authored-by: Marco Perini <perinim.98@gmail.com >
2025-06-17 12:32:04 -07:00
Nuno Campos
771c6150a4
langgraph 0.5.0rc1
2025-06-16 17:52:13 -07:00
Nuno Campos
edfb65fd3a
langgraph-prebuilt 0.5.0rc0
2025-06-16 17:47:21 -07:00
Lauren Hirata Singh and GitHub
0f92470e49
docs: Remove cookie consent ( #5123 )
2025-06-16 18:41:55 -04:00
Nuno Campos
dfcaf97c73
langgraph 0.5.0rc0
2025-06-16 15:17:56 -07:00
Nuno Campos
63a0028372
langgraph-checkpoint 2.1.0
2025-06-16 14:58:50 -07:00
Nuno Campos and GitHub
1134017d07
Preparation for 0.5 release: langgraph-checkpoint ( #5124 )
...
Prepare langgraph-checkpoint for 0.5
- Given we have no upper bound on langgraph-checkpoint dep need to undo all changes in langgraph-checkpoint that might break previous versions of langgraph
2025-06-16 21:57:11 +00:00
Lauren Hirata Singh
33feba4877
Remove cookie consent
2025-06-16 16:33:32 -04:00
Nuno Campos and GitHub
4fec8e9dec
Preparation for 0.5 release ( #5121 )
2025-06-16 13:14:25 -07:00
Nuno Campos
c137169325
Preparation for 0.5 release
...
- Update deprecation warnings to mention 0.5, no 1.0
- Add back type hint support for Runnable arg to add_node
2025-06-16 13:07:52 -07:00
Nuno Campos and GitHub
1e2672e63d
Restore shallow checkpointer ( #5105 )
2025-06-16 11:23:27 -07:00
Nuno Campos and GitHub
06803ab683
Add migration for pending_sends ( #5106 )
2025-06-16 11:23:17 -07:00
hari-dhanushkodi and GitHub
3488ee47e0
chore: add docs for lgp deployment monitoring ( #5104 )
2025-06-16 10:21:42 -07:00
Nuno Campos and GitHub
289bdd0cea
Introduce "tasks" and "checkpoints" stream modes ( #5117 )
2025-06-16 10:14:18 -07:00
Nuno Campos
417103066b
Lint
2025-06-16 09:29:03 -07:00
Nuno Campos
25a59447c1
Introduce "tasks" and "checkpoints" stream modes
...
- These are split out of "debug" stream mode, which is now an alias for ["tasks", "checkpoints"]
2025-06-16 08:47:45 -07:00
Nuno Campos
21906d2b7b
Add migration for pending_sends
...
- Checkpoints saved on older versions of langgraph will be compatible with langgraph 0.5 and 1.0
2025-06-13 17:42:14 -07:00
Nuno Campos
0cad7019cb
Restore shallow checkpointer
...
- This should definitely be removed soon, but let's give people more time to update
2025-06-13 17:37:40 -07:00
Nuno Campos and GitHub
7e735672bf
Restore compatibility with custom checkpointer classes created in prior versions ( #5103 )
2025-06-13 16:36:36 -07:00
Nuno Campos
5498893780
Restore compatibility with custom checkpointer classes created in prior versions
...
- Ensure existing custom checkpointer classes are compatible with new langgraph-checkpoint release
2025-06-13 16:29:55 -07:00
Nuno Campos and GitHub
e80f47aa01
Revert removals of APIs that were slated for removal in 1.0 ( #5101 )
2025-06-13 16:09:20 -07:00
Nuno Campos
a0b2f742a3
Revert "Remove UntrackedValue channel"
...
This reverts commit 05f3904d09 .
2025-06-13 15:36:47 -07:00
William FH and GitHub
b7973d65db
fix: Update lockfile ( #5102 )
2025-06-13 14:53:40 -07:00
Nuno Campos
3fa3a586b5
Revert "Remove MessageGraph ( #4875 )"
...
This reverts commit a5e6223569 .
2025-06-13 14:21:05 -07:00
William FH and GitHub
053b606b46
cli: 0.3.3 ( #5100 )
2025-06-13 13:15:26 -07:00
William FH and GitHub
4548a0ebe8
feat: Customizable Pip Installer ( #5098 )
...
Let you set "pip_installer": "pip" (or uv) to handle corner cases in install compatibilities
2025-06-13 10:35:28 -07:00
Sydney Runkle and GitHub
0171e9a323
fix(langgraph): remove deprecated output usage in favor of output_schema ( #5095 )
...
use output_schema
2025-06-13 12:34:39 -04:00
Sydney Runkle and GitHub
c439cb0872
refactor(langgraph): Remove PregelNode's inheritance from Runnable ( #5093 )
...
remove Runnable inheritance for PregelNode
2025-06-13 10:17:42 -04:00
Nuno Campos and GitHub
2a4d7e8889
Remove support for node reading a single managed value ( #5083 )
2025-06-12 15:19:55 -07:00
Nuno Campos
7f3578e0f1
Remove support for node reading a single managed value
...
- This has never been used and is not useful or intended functionality
2025-06-12 15:11:19 -07:00
Lauren Hirata Singh and GitHub
e2f96b5ae5
revert incident banner ( #5082 )
2025-06-12 17:24:36 -04:00
Lauren Hirata Singh
0d5f7e55bf
revert incident banner
2025-06-12 17:10:22 -04:00
Lauren Hirata Singh and GitHub
9209f11187
incident banner ( #5081 )
2025-06-12 16:04:20 -04:00
Lauren Hirata Singh and GitHub
bb1c5b8cdf
Update docs/overrides/main.html
2025-06-12 15:57:14 -04:00
Nuno Campos and GitHub
d6bb008ff4
PregelLoop: Simplify tick() method ( #5080 )
...
* PregelLoop: Simplify tick() method
- Split out superstep finish into separate after_tick() method
- Handle input in __enter__
- Remove unnecessary recursive shortcut
- Remove input sentinel objects
* Lint
2025-06-12 19:53:55 +00:00
Lauren Hirata Singh
6130e08fa6
incident banner
2025-06-12 15:52:36 -04:00
Sydney Runkle and GitHub
3ad061f0d7
serialize/deserialize pandas with pickle fallback ( #5057 )
2025-06-12 15:14:00 -04:00
Nuno Campos and GitHub
116b5d1cac
Remove code paths no longer needed ( #5079 )
2025-06-12 11:47:10 -07:00
Nuno Campos
0aff02e180
Remove code paths no longer needed
...
- These were only used by the kafka scheduler
2025-06-12 11:25:20 -07:00
Nuno Campos and GitHub
074af5c122
Avoid saving checkpoints for subgraphs when checkpoint_during=False ( #5051 )
2025-06-11 11:11:02 -07:00
langchain-infra and GitHub
29ffaa0e0b
docs: fix config section ( #5066 )
2025-06-11 13:23:33 -04:00
Sydney Runkle and GitHub
45cd4e1928
oss: auto apply labels to contributor issues ( #5067 )
...
auto apply labels
2025-06-11 17:19:49 +00:00
langchain-infra and GitHub
480271f753
docs: add mount prefix environment variable ( #5060 )
2025-06-11 11:20:19 -04:00
infra
66fdf60e47
docs: add mount prefix environment variable
2025-06-11 11:18:16 -04:00
infra
0894daf3fc
docs: add mount prefix environment variable
2025-06-11 11:17:45 -04:00
Lauren Hirata Singh and GitHub
850c55d630
Revert "fix assistants overview link" ( #5059 )
2025-06-11 11:02:17 -04:00
Lauren Hirata Singh and GitHub
c0d65ff409
Revert "fix assistants overview link ( #5058 )"
...
This reverts commit be7b60a722 .
2025-06-11 10:58:52 -04:00
Lauren Hirata Singh and GitHub
be7b60a722
fix assistants overview link ( #5058 )
2025-06-11 10:58:07 -04:00
Eugene Yurtsev and GitHub
d467ec6556
Remove gitmcp badge ( #5055 )
...
* Remove gitmcp badge
* xt
* x
2025-06-11 10:55:05 -04:00
b8683ab67a
docs: Update subgraphs.md ( #5052 )
...
* Update subgraphs.md
The state while defining the Subgraph is updated. Also an edge connecting START to the call_model node in the subgraph was created.
* Update docs/docs/concepts/subgraphs.md
* Update docs/docs/concepts/subgraphs.md
---------
Co-authored-by: Eugene Yurtsev <eugene@langchain.dev >
2025-06-11 13:49:51 +00:00
OfirTeneJuno and GitHub
666279a241
Merge branch 'main' into interrupt-use-stream-values
2025-06-11 09:53:25 +03:00
William Fu-Hinthorn
6a9ca8d67e
Update existing
2025-06-10 17:59:41 -07:00
William Fu-Hinthorn
3b98044f2f
Add tests
2025-06-10 17:29:27 -07:00
Nuno Campos
a4a8934bd3
Avoid saving checkpoints for subgraphs when checkpoint_during=False
...
- We can avoid saving checkpoints for successful subgraphs which do not request multi-turn memory
2025-06-10 17:25:05 -07:00
Nuno Campos and GitHub
470b9a4b97
Clean up PregelNode attributes ( #5049 )
2025-06-10 17:24:03 -07:00
Nuno Campos
516175780d
Clean up things for Matt!
2025-06-10 16:14:15 -07:00
William FH and GitHub
571780f74c
fix: header merging ( #4926 )
2025-06-10 14:44:34 -07:00
Emmanuel Ferdman and GitHub
d719438307
fix: throw exception on multiple injections ( #5033 )
...
Throw exception on for multiple injections
Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com >
2025-06-10 16:54:01 -04:00
Simon Frank and GitHub
85c809a651
docs: fixed a wrong import in persistence docs ( #5045 )
2025-06-10 20:53:50 +00:00
Nuno Campos and GitHub
0441fd156f
Add docs for checkpoint encryption ( #5047 )
...
docs: list CipherProtocol in API
2025-06-10 16:52:45 -04:00
Nuno Campos and GitHub
37b5d3886c
Add library overview to AGENTS.md ( #5044 )
2025-06-10 10:08:55 -07:00
Nuno Campos
b95267a3cc
Refine dependency map
2025-06-10 10:06:08 -07:00
OfirTeneJuno
2172bc89ed
remove yarn
2025-06-10 17:37:27 +03:00
OfirTeneJuno
4138ef9c43
Change to continue
2025-06-10 17:33:52 +03:00
OfirTeneJuno
0ff181b7ce
Disable values update on use stream in interrupt events
2025-06-10 17:21:17 +03:00
Nuno Campos and GitHub
2e33c520a5
Support numpy array serialization in JsonPlusSerializer ( #5035 )
...
* Handle numpy Fortran arrays
* Lint
* Lint
* Lint
2025-06-10 01:17:28 +00:00
Nuno Campos and GitHub
67b1dc602e
Update ormsgpack ( #5034 )
...
* Update ormsgpack
- Now supports bytearray/memoryview passthrough
* Lint
2025-06-10 00:30:58 +00:00
Naohiro Yoshida and GitHub
1519b90414
Centralized CheckpointTuple creation into a shared function for checkpoint_postgres ( #4970 )
2025-06-09 18:40:17 +00:00
Ykoh and GitHub
0035ab9825
docs: Replace unsupported models with structured output-supported models ( #3982 )
2025-06-09 14:17:05 -04:00
c42cd57a32
chore: Update variable naming in postgres store ( #4096 )
...
Co-authored-by: William FH <13333726+hinthornw@users.noreply.github.com >
2025-06-09 17:54:06 +00:00
acc56e094a
docs: add query params for Store semantic search ( #4828 )
...
Co-authored-by: William FH <13333726+hinthornw@users.noreply.github.com >
2025-06-09 17:47:50 +00:00
Yassin Nouh and GitHub
6b30d4fd8f
docs: enhance PostgresSaver connection requirements explanation ( #4953 )
...
docs: enhance PostgresSaver connection requirements explanation - Add detailed explanation of why autocommit=True and row_factory=dict_row are required - Include example of incorrect usage and resulting errors - Addresses issue #4937 about incomplete setup documentation
2025-06-09 17:12:44 +00:00
fcc37cd06b
docs: update tutorial/rag/langgraph_adaptive_rag.ipynb ( #2006 )
...
- add some explanations of ipynb code in markdown cell.
Co-authored-by: Sydney Runkle <54324534+sydney-runkle@users.noreply.github.com >
2025-06-09 12:54:29 -04:00
William FH and GitHub
c17ee1bf5a
feat: [CLI] Add support for building deps with uv ( #4995 )
2025-06-09 08:57:29 -07:00
William FH and GitHub
88c603b00b
fix: (sdk-js) Expand ToolMessage Type ( #5015 )
2025-06-09 08:22:35 -07:00
Sydney Runkle and GitHub
c12f7cb2b9
github: support blank issues (help with v1 planning) ( #4999 )
...
blank issues
2025-06-09 13:52:14 +00:00
🤖Esteban Dalel R and GitHub
6d7d689578
docs: highlight changed lines in 3-add-memory.md ( #4930 )
2025-06-08 14:08:04 +00:00
LostInCode404 and GitHub
f1b7eca7fc
docs: Update 1-build-basic-chatbot.md to add a section about END node ( #4886 )
...
Update `1-build-basic-chatbot.md` to add a section about `END` node
2025-06-08 13:51:17 +00:00
Michael Li and GitHub
93766a6df1
docs: fix assistants url at manage_assistants.md ( #4993 )
...
* docs: fix agent supervisor doc codes
* docs: fix assistants url at manage_assistants.md
2025-06-08 13:49:45 +00:00
Dionysis Glytsos and GitHub
a9d4e0da29
docs: fix typos ( #4992 )
...
Fix typos
2025-06-08 13:46:41 +00:00
Sydney Runkle and GitHub
9105e60a34
graph: improve generics on StateGraph etc + move typing utils to private file ( #4982 )
2025-06-06 19:51:05 -04:00
Sydney Runkle and GitHub
b735452153
deprecate input and output in favor of input_schema and output_schema ( #4983 )
2025-06-06 19:44:56 -04:00
Sydney Runkle
5920d8aa92
using StateT as default for InputT
2025-06-06 12:58:19 -04:00
533f5b3d6f
docs: fix task description example in the agent supervisor tutorial ( #4938 )
...
* docs: fix agent supervisor doc codes
---------
Co-authored-by: vbarda <vadym@langchain.dev >
2025-06-06 13:41:41 +00:00
Asamu David and GitHub
be5889a7df
docs: add docs for image_distro cli option ( #4974 )
2025-06-05 23:11:47 +01:00
David Asamu
0bf268feca
add docs for image_distro cli option
2025-06-05 17:23:05 +01:00
Sydney Runkle and GitHub
5e7566f4a3
lint: use pep 604 union syntax and pep 585 generic syntax ( #4963 )
...
* new union syntax
* fix test
* second round of conversions by injecting future annotations
* format + add top level makefile
2025-06-04 21:50:16 -04:00
Sydney Runkle and GitHub
494c8ef0d2
docs: remove references to StateGraph(dict) ( #4964 )
...
remove StateGraph(dict)
2025-06-04 21:29:19 -04:00
lc-arjun and GitHub
45e60ff9e1
fix: camel case to snake case conversion ( #4966 )
2025-06-04 17:31:12 -07:00
Nuno Campos
194c4c1d1c
cli 0.2.12
2025-06-04 15:50:07 -07:00
1a76f6a92a
🐛 [CLI] Generate one --build-context argument for each dependency in the docker build command. ( #4962 )
...
* Generate one `--build-context` for each dependency in the `docker build` command.
* Try and fix test
---------
Co-authored-by: Nuno Campos <nuno@langchain.dev >
2025-06-04 22:48:48 +00:00
Sydney Runkle and GitHub
aedf974dfd
docs: deploy from v0 branch for now ( #4960 )
...
only deploy docs on v0
2025-06-04 13:27:48 -04:00
Sydney Runkle and GitHub
c0b6a85488
docs: format to allow for deploy ( #4959 )
...
formatting
2025-06-04 17:20:19 +00:00
Sydney Runkle and GitHub
9fde14079a
docs: use retry_policy instead of retry in docs ( #4958 )
2025-06-04 17:12:13 +00:00
Sydney Runkle and GitHub
02f3944e88
rename retry -> retry_policy ( #4957 )
2025-06-04 14:55:06 +00:00
Nuno Campos and GitHub
1ea5812ed0
Fix step_timeout causing ParentCommand/GraphInterrupt exception to bubble up ( #4950 )
2025-06-03 17:32:46 -07:00
Nuno Campos
314115513c
Fix step_timeout causing ParentCommand/GraphInterrupt exception to bubble up
...
- We should not re-raise exceptions in commit() as that is now called in a future done callback
- panic_or_proceed takes care of re-raising exceptions as needed anyway
2025-06-03 17:26:29 -07:00
Nuno Campos
161a1e3af6
Remove from ci matrix
2025-06-03 17:26:13 -07:00
Nuno Campos
f8995f234c
Remove scheduler-kafka library
...
Superseded by upcoming distributed runner
2025-06-03 17:25:17 -07:00
Nuno Campos and GitHub
5f1d76ba3b
docs: fix a grammar issue in multiple files ( #4935 )
2025-06-03 17:04:20 -07:00
Asamu David and GitHub
13ebe1ad8c
cli v0.2.11 release ( #4941 )
2025-06-04 01:00:06 +01:00
David Asamu
ae2b766d0f
bump version
2025-06-04 00:53:56 +01:00
Nuno Campos and GitHub
b211d4e767
Make it possible to run test command without docker installed ( #4948 )
2025-06-03 16:29:14 -07:00
Nuno Campos and GitHub
0b609646d5
Fix async callback manager tag handling ( #4949 )
2025-06-03 16:23:22 -07:00
Nuno Campos
5ab5da767b
Pass tags when configuring async callback manager
2025-06-03 16:17:17 -07:00
Nuno Campos and GitHub
a534807ec9
Allow same-name channels and nodes in StateGraph ( #4944 )
2025-06-03 16:15:07 -07:00
Nuno Campos
89e827bd15
Make it possible to run test command without docker installed
2025-06-03 16:14:46 -07:00
Nuno Campos and GitHub
d4018497a9
Fix ensure_config docstring ( #4947 )
2025-06-03 16:02:44 -07:00
Nuno Campos
7080eaa79e
docs: fix ensure_config docstring
2025-06-03 15:56:41 -07:00
Nuno Campos and GitHub
9c6e8d5237
Fix duplicate article typos in docs ( #4946 )
2025-06-03 15:56:04 -07:00
langchain-infra and GitHub
ae3c2e0b89
fix: use right deployment link ( #4945 )
2025-06-03 18:55:05 -04:00
Nuno Campos
cd2847ee07
docs: fix double article typos
2025-06-03 15:53:19 -07:00
infra
7335b80586
fix: use right deployment link
2025-06-03 18:42:11 -04:00
Asamu David and GitHub
394ea1c12b
Merge branch 'main' into david/06-03/update-cli-version
2025-06-03 23:40:10 +01:00
Nuno Campos and GitHub
b00ea605e2
checkpoint-postgres: Use lock also for pipeline mode ( #4942 )
2025-06-03 15:30:04 -07:00
Nuno Campos
bb990715f1
Allow same-name channels and nodes in StateGraph
...
- We no longer auto create a same-name channel for each node, so this limitation can now be lifted
2025-06-03 15:29:49 -07:00
Asamu David and GitHub
fce7652b7c
Merge branch 'main' into david/06-03/update-cli-version
2025-06-03 23:26:42 +01:00
langchain-infra and GitHub
8837b8534f
fix: use right link ( #4943 )
2025-06-03 18:15:51 -04:00
infra
4473db6361
fix: use right link
2025-06-03 18:12:41 -04:00
Nuno Campos
c31c940bbb
checkpoint-postgres: Use lock also for pipeline mode
2025-06-03 14:59:56 -07:00
Asamu David and GitHub
5c18123bb7
cli v0.2.11 release
...
## Description
bump cli version to 0.2.11
2025-06-03 21:37:25 +01:00
Asamu David and GitHub
7ba5636200
add support for image_distro in config file ( #4871 )
2025-06-03 20:59:06 +01:00
Sydney Runkle and GitHub
37c215b5a2
Improve type checking on graph init and invoke/stream ( #4932 )
2025-06-03 15:21:51 -04:00
Asamu David and GitHub
f528f5ebd6
Merge branch 'main' into david/05-28/support-image-distro-config
2025-06-03 18:18:22 +01:00
Michael Li
cd28bef155
docs: fix a grammar issue in multiple files
2025-06-04 01:20:29 +10:00
David Duong and GitHub
3a74514bc3
fix(sdk-js): uiMessageReducer should handle undefined metadata ( #4931 )
2025-06-03 15:21:25 +02:00
Tat Dat Duong
2b759a2a33
fix(sdk-js): uiMessageReducer should handle undefined metadata
2025-06-03 15:20:13 +02:00
723cff9001
build(deps): bump actions/setup-node from 3 to 4 ( #4915 )
...
Bumps [actions/setup-node](https://github.com/actions/setup-node ) from 3 to 4.
- [Release notes](https://github.com/actions/setup-node/releases )
- [Commits](https://github.com/actions/setup-node/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/setup-node
dependency-version: '4'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-03 08:37:31 -04:00
lc-arjun and GitHub
7d27d108fc
bump sdk ( #4925 )
2025-06-02 18:16:08 -07:00
Arjun Natarajan
f4b480c4b8
bump sdk
2025-06-02 18:13:36 -07:00
lc-arjun and GitHub
8c560ef62a
feat: support custom tracer when creating run in ts sdk ( #4924 )
2025-06-02 18:10:01 -07:00
David Asamu
1e324b681a
update dockerfile generation logic, fix pip removal in wolfi
2025-06-03 01:43:59 +01:00
Arjun Natarajan
6002aebec5
maybe nees the full lint rewrite
2025-06-02 17:35:12 -07:00
Arjun Natarajan
b438210a0d
maybe fixes lint
2025-06-02 17:33:29 -07:00
Arjun Natarajan
b908e96541
need to export it here too
2025-06-02 17:27:33 -07:00
Arjun Natarajan
70dc0323c1
i want this exported
2025-06-02 17:26:20 -07:00
Arjun Natarajan
a75e40192f
perhaps better typing
2025-06-02 17:18:59 -07:00
Arjun Natarajan
952017fbe2
feat: support custom tracer when creating run in ts sdk
2025-06-02 17:17:07 -07:00
Nuno Campos and GitHub
36bd88287f
Fix makefile command file for dev server ( #4922 )
2025-06-02 16:41:59 -07:00
Nuno Campos
5e5840805e
Fix makefile command file for dev server
...
- pidfile was always empty
2025-06-02 16:35:48 -07:00
Nuno Campos and GitHub
7828003958
Fix Command(graph=PARENT) when used together w checkpointer=True ( #4921 )
2025-06-02 16:18:52 -07:00
Nuno Campos
e5e78e4192
Fix Command(graph=PARENT) when used together w checkpointer=True
2025-06-02 16:05:32 -07:00
William FH and GitHub
e2b14a9499
feat: Add onRequest callback to JS SDK ( #4919 )
...
Add onRequest callback
2025-06-02 13:43:16 -07:00
Nuno Campos and GitHub
2563301f39
Remove unused deprecation decorator/warning ( #4917 )
2025-06-02 15:53:26 -04:00
David Asamu
bbbadc3db9
regenerate schema + lint & format
2025-06-02 20:50:48 +01:00
b4cb4e72ab
build(deps): bump actions/configure-pages from 4 to 5 ( #4916 )
...
Bumps [actions/configure-pages](https://github.com/actions/configure-pages ) from 4 to 5.
- [Release notes](https://github.com/actions/configure-pages/releases )
- [Commits](https://github.com/actions/configure-pages/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: actions/configure-pages
dependency-version: '5'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-02 15:36:18 -04:00
7e45a0530b
build(deps): bump actions/cache from 3 to 4 ( #4913 )
...
Bumps [actions/cache](https://github.com/actions/cache ) from 3 to 4.
- [Release notes](https://github.com/actions/cache/releases )
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md )
- [Commits](https://github.com/actions/cache/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/cache
dependency-version: '4'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-02 15:17:21 -04:00
dd059fea3c
build(deps): bump actions/checkout from 3 to 4 ( #4912 )
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-version: '4'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-02 15:17:04 -04:00
Michael Li and GitHub
871b1dccd8
docs: fix grammar issues in deployment_options.md and faq.md ( #4905 )
2025-06-02 15:04:03 -04:00
Daiki Inoue and GitHub
f8b5e05c47
docs: fix a typo ( #4908 )
2025-06-02 15:03:23 -04:00
Eugene Yurtsev and GitHub
6cde3ee7a3
ci: add depandabot config for upgrading actions ( #4911 )
...
Depandabot config for suggesting to update old actions
2025-06-02 15:03:03 -04:00
Michael Li and GitHub
d44581d754
docs: fix typos in langgraph_studio.md and low_level.md ( #4909 )
2025-06-02 17:49:04 +00:00
Michael Li and GitHub
dc787b5aa6
docs: fix grammar issues in langgraph_data_plane.md and langgraph_platform.md ( #4906 )
...
* docs: fix grammar issues in langgraph_data_plane.md and langgraph_platform.md
* docs: further update the wording in langgraph_data_plane.md
2025-06-02 17:48:55 +00:00
Michael Li and GitHub
0d6af09187
docs: fix grammar issues in application_structure.md and assistants.md ( #4904 )
...
* docs: fix a grammar error in mcp.md
* docs: fix a grammar error in multi-agent.md
* docs: fix grammar issues in application_structure.md and assistants.md
2025-06-02 13:48:50 -04:00
Michael Li and GitHub
469576f966
docs: fix grammar issues in langgraph_self_hosted_control_plane.md and langgraph_server.md ( #4907 )
2025-06-02 17:47:16 +00:00
Michael Li and GitHub
f00b994692
docs: fix incorrect word in memory.md ( #4902 )
2025-06-02 13:48:18 +00:00
Michael Li and GitHub
7d6243e6b4
docs: fix incorrect word in custom_docker.md ( #4901 )
2025-06-02 13:48:06 +00:00
Michael Li and GitHub
8fd50a50d4
docs: fix grammar errors in mcp.md and multi-agent.md ( #4903 )
...
* docs: fix a grammar error in mcp.md
* docs: fix a grammar error in multi-agent.md
2025-06-02 13:46:29 +00:00
Sydney Runkle and GitHub
eaa1b37645
Require state_schema in StateGraph.__init__ ( #4897 )
2025-06-02 01:52:35 +00:00
David Duong and GitHub
21f762140a
docs(sdk-js): improve resumability docs ( #4899 )
2025-06-02 02:10:16 +02:00
Tat Dat Duong
5973fcb0ae
docs(sdk-js): improve resumability docs
2025-06-02 02:09:43 +02:00
David Duong and GitHub
624c688013
feat(sdk-js): add docs for reconnectOnMount, expose run metadata ( #4898 )
2025-06-02 01:53:46 +02:00
Tat Dat Duong
d05b323b88
feat(sdk-js): add docs for reconnectOnMount, expose run metadata
2025-06-02 01:52:40 +02:00
Ikpreet S Babra and GitHub
765bc3b9e0
docs: Update 2-add-tools.md ( #4896 )
...
Typo in first sentence.
2025-06-01 10:47:35 +00:00
Nuno Campos and GitHub
78d3d8c802
Remove add_conditional_edge(..., then=) ( #4893 )
...
- This is redundant with deferred nodes, and not documented
2025-06-01 06:46:51 -04:00
Nuno Campos and GitHub
3b85c83d51
Avoid repeated runtime calls to get_type_hints ( #4888 )
2025-05-31 08:37:23 -07:00
Eugene Yurtsev and GitHub
08f88ce8da
docs: add gtm ( #4887 )
...
Add google tag manager
2025-05-30 21:49:22 -04:00
Nuno Campos
d661d528b2
Avoid repeated runtime calls to get_type_hints
...
- Replace get_type_hints logic with much simpler implementation which only collects annotated keys (not the annotations themselves)
- Cache annotations in a WeakKeyDictionary
2025-05-30 16:30:53 -07:00
Sydney Runkle and GitHub
5cbf31e8a4
Remove non-state Graph ( #4872 )
2025-05-29 21:56:53 -04:00
a5e6223569
Remove MessageGraph ( #4875 )
...
Remove MessageGraph
Co-authored-by: Nuno Campos <nuno@langchain.dev >
2025-05-29 21:50:23 -04:00
Nuno Campos and Sydney Runkle
afb83d2201
Remove non-state Graph
...
- Not used in any examples/docs
2025-05-29 21:38:58 -04:00
David Asamu
1e8f5dd2b6
add warning when image distro is not configured as wolfi
2025-05-30 00:25:27 +01:00
David Asamu
574a9246a6
add unit tests for image_distro config
2025-05-29 23:30:27 +01:00
David Asamu
c46f7a4c3d
add support for image_distro in config file
2025-05-29 21:54:54 +01:00
langchain-infra and GitHub
8e82c7d1a0
docs: fix self hosted control plane concepts/docs ( #4870 )
2025-05-29 16:16:02 -04:00
infra
2066e4c018
docs: fix self hosted control plane concepts/docs
2025-05-29 13:10:16 -07:00
Sydney Runkle and GitHub
f8fae30aa9
docs: fix pprint import ( #4869 )
2025-05-29 19:37:43 +00:00
Nuno Campos and GitHub
2615c7046c
Remove UntrackedValue channel ( #4868 )
2025-05-29 12:14:36 -07:00
Nuno Campos
05f3904d09
Remove UntrackedValue channel
...
- This is incompatible with distributed execution modes, so needs to go
2025-05-29 12:07:51 -07:00
Nuno Campos and GitHub
583fe9fd84
Remove UntrackedValue channel ( #4859 )
2025-05-29 11:52:10 -07:00
Nuno Campos
0afc4ebda3
Flip default for checkpoint_during
...
- Now defaulting to False, ie. saving only the final checkpoint
- All features other than time travel into an intermediate step are supported by checkpoint_during=False so this is a better default for almost all use cases
2025-05-29 11:45:54 -07:00
Nuno Campos and GitHub
d55cafad29
Remove Channel node builder ( #4858 )
2025-05-28 14:30:12 -07:00
Nuno Campos
1b961f68b9
Remove Channel node builder
...
- Replaced by NodeBuilder introduced in earlier PR
2025-05-28 14:14:47 -07:00
Nuno Campos and GitHub
045d6dfb82
Update managed value usage in local_read ( #4854 )
2025-05-28 14:05:14 -07:00
Nuno Campos and GitHub
26d5fccfa0
Modify stream mode messages and custom to respect subgraphs=False ( #4843 )
2025-05-28 14:05:03 -07:00
Nuno Campos and GitHub
76661f4c9c
Remove Checkpoint.writes ( #4822 )
2025-05-28 14:04:45 -07:00
Nuno Campos and GitHub
9320bedd2a
Remove Checkpoint.pending_sends ( #4820 )
2025-05-28 14:04:26 -07:00
Nuno Campos and GitHub
3737d886e7
Pregel: Add NodeBuilder class to replace Channel.subscribe_to ( #4819 )
2025-05-28 14:04:08 -07:00
Nuno Campos and GitHub
8386eaceab
Remove dict subclasses used for values/updates stream chunks ( #4816 )
2025-05-28 14:03:40 -07:00
Nuno Campos and GitHub
c32677c92d
Remove old checkpoint test fixtures ( #4814 )
2025-05-28 14:03:12 -07:00
Nuno Campos and GitHub
e384ccacaf
Remove postgres shallow checkpointer ( #4813 )
2025-05-28 14:02:58 -07:00
Nuno Campos and GitHub
dc95f95181
Remove ChannelsManager, ManagedValues are now static classes and never instantiated ( #4812 )
2025-05-28 14:02:43 -07:00
Nuno Campos and GitHub
2e4645ce61
Remove Context channel / managed value, Remove SharedValue ( #4857 )
2025-05-28 14:02:12 -07:00
Nuno Campos and GitHub
efb282a197
Remove SchemaCoercionMapper ( #4855 )
2025-05-28 10:51:32 -07:00
Nuno Campos
89ce6ea2a8
Remove SchemaCoercionMapper
2025-05-28 10:42:43 -07:00
Nuno Campos
197b01e985
Update managed value usage in local_read
2025-05-28 10:40:20 -07:00
DHPark and GitHub
1e87312d1f
Update graph-api.ipynb ( #4824 )
2025-05-28 13:39:22 +00:00
vksx and GitHub
bcc6485f6c
(docs) fix broken links ( #4823 )
2025-05-28 13:36:48 +00:00
Sydney Runkle and GitHub
ce5f248e3b
docs: fix typo ( #4852 )
...
minor fix
2025-05-28 13:35:17 +00:00
Sydney Runkle and GitHub
5602c29668
prebuilt: release 0.2.2 ( #4851 )
...
bump prebuilt
2025-05-28 13:33:39 +00:00
Nuno Campos
bc404d14f6
Format
2025-05-27 16:07:54 -07:00
Sydney Runkle and GitHub
19ca6b416b
fix: post_model_hook should inject state + store into tool calls if necessary ( #4842 )
2025-05-27 17:42:20 +00:00
Nuno Campos
936176eb21
Remove Checkpoint.writes
...
- This has been superseded by saving the individual writes of each task through put_writes()
- Removing this speeds up checkpoint operations as it was duplicating data saved elsewhere already
2025-05-25 19:06:46 -07:00
Nuno Campos
4e8fbe4525
Remove Checkpoint.pending_sends
...
- Instead store sends in a Topic channel, removing the need to fetch sends as writes against the parent checkpoint
- Remove deprecated/unused functions in langgraph-checkpoint (will require bumping min range for langgraph-checkpoint in langgraph lib)
- Implement migration of old pending sends in langgraph-checkpoint-postgres
- Ensure parent config of `checkpoint_during=False` checkpoints always points to checkpoints that were also saved
2025-05-25 19:06:02 -07:00
Nuno Campos
85522ec6a6
Pregel: Add NodeBuilder class to replace Channel.subscribe_to
...
- For now keeping Channel.subscribe_to given it was used in docs
2025-05-24 20:35:37 -07:00
Nuno Campos
0f8f5444bc
Lint
2025-05-24 14:54:57 -07:00
Nuno Campos
bc17c3522b
Remove old checkpoint test fixtures
...
- Now all tests fully migrated to more recent sync_checkpointer and async_checkpointer fixtures for parametrising on checkpointer
- Use sync/async_store fixtures where tests used only in memory store
- Remove unused "should snapshot" check for older versions of langchain core no longer tested against
2025-05-24 14:27:13 -07:00
Nuno Campos
8c11c1155a
Remove postgres shallow checkpointer
...
- This was deprecated, and superseded by checkpoint_during=False, which is available for all checkpointers
2025-05-24 12:39:50 -07:00
Nuno Campos
9c79d887a0
Remove ChannelsManager, ManagedValues are now static classes and never instantiated
...
- This keeps the existing API for accessing IsLastValue, RemainingSteps, but simplifies the internal implementation
- This lets us remove ChannelsManager completely, which no longer needs to be a context manager, now replaced w function channels_from_checkpoint
- Managed values are now simple functions that return a value given a PregelScratchpad, which will be easier to implement in distributed runner
2025-05-24 12:15:11 -07:00
Nuno Campos
889b40e7a8
Remove Context channel / managed value, Remove SharedValue
...
- Both have been deprecated long ago, have not been present in docs for quite a while
- Removing these lets us delete some code paths that were dedicated to this, easing work on distributed runner
2025-05-24 11:05:15 -07:00
Lauren Hirata Singh and GitHub
2553ae0b87
docs: Fix links ( #4807 )
2025-05-23 22:34:08 -04:00
Lauren Hirata Singh
3e4b69af3f
Fix links
2025-05-23 22:30:43 -04:00
Lauren Hirata Singh and GitHub
0c6367c186
docs: fix link to examples page in readme.md ( #4710 )
2025-05-23 22:26:30 -04:00
Lauren Hirata Singh and GitHub
99860b5713
Update README.md
2025-05-23 22:12:18 -04:00
Lauren Hirata Singh and GitHub
a69860baa6
Merge branch 'main' into fix-examples-link-readme
2025-05-23 22:08:32 -04:00
Lauren Hirata Singh and GitHub
6fc21046cd
Update libs/langgraph/README.md
2025-05-23 22:06:43 -04:00
Lauren Hirata Singh and GitHub
754420e9a2
Update libs/langgraph/README.md
2025-05-23 22:03:39 -04:00
Lauren Hirata Singh and GitHub
15126ad827
Create overview.md
2025-05-23 22:02:14 -04:00
芥子观须弥 and GitHub
6633173918
Fix: Ensure route function returns "b" to enable a → b → a loop ( #4738 )
...
fix: correct route function to return 'b' instead of 'a' when not terminating
This fixes a bug in the graph API how-to where the route function incorrectly returned 'a'. Now it correctly returns 'b' as intended.
2025-05-23 23:56:51 +00:00
Nuno Campos
0139e11ae5
0.4.7
2025-05-23 16:51:48 -07:00
Nuno Campos and GitHub
bfbe55ab64
Fix stream mode not respected in subgraphs ( #4806 )
2025-05-23 16:47:01 -07:00
Nuno Campos
36478eb745
Fix stream mode not respected in subgraphs
...
- The default applied for subgraphs should be applied only when stream mode arg not passed in
2025-05-23 16:40:51 -07:00
Nuno Campos and GitHub
8fb91569b9
Add tests for stream_events when using imperative api ( #4805 )
2025-05-23 16:40:38 -07:00
Nuno Campos
9bf6728354
Try to make test less flaky
2025-05-23 16:32:51 -07:00
Nuno Campos
126a8f5bc6
Lock
2025-05-23 16:22:12 -07:00
Nuno Campos
9170f636d0
Lock
2025-05-23 16:14:15 -07:00
Nuno Campos
8207d3fefb
Add tests for stream_events when using imperative api
2025-05-23 16:11:12 -07:00
Nuno Campos
ade3f372a5
0.4.6
2025-05-23 15:24:07 -07:00
Nuno Campos and GitHub
3a55d1137b
Fix exception handling for imperative tasks ( #4802 )
2025-05-23 15:23:15 -07:00
Nuno Campos
bece43dc67
Fix
2025-05-23 15:06:18 -07:00
Nuno Campos
913b8d5e95
Lint
2025-05-23 14:32:45 -07:00
Andrew Nguonly and GitHub
29f6ea7f61
docs: Add warning about immutable deployment types ( #4804 )
...
* Add more details about database for deployment types. Clarify that deployment type cannot be changed.
* Add note about Development type disk capacity.
2025-05-23 14:04:46 -07:00
Nuno Campos
3c0d9346c2
Add sync test
2025-05-23 13:51:13 -07:00
Nuno Campos
0ebb78d9b2
Fix
2025-05-23 13:50:11 -07:00
Nuno Campos
70153ceba2
Fix exception handling for imperative tasks
...
- These exceptions should not be re-raised at end of tick, given they're handled explicitly by the developer in their entrypoint
2025-05-23 12:26:27 -07:00
Sydney Runkle and GitHub
a9c87ed8b6
prebuilt: release 0.2.1 ( #4801 )
...
lockfile and version updates
2025-05-23 18:07:24 +00:00
Sydney Runkle and GitHub
837fe59e24
prebuilt: support provider builtin tools in create_react_agent ( #4800 )
2025-05-23 13:58:53 -04:00
Andrew Nguonly and GitHub
596a26461c
docs: Add note about Enterprise plan in banner for all self-hosted deployment options. ( #4797 )
...
Add note about Enterprise plan in banner for all self-hosted deployment options.
2025-05-22 18:38:06 -07:00
Sydney Runkle and GitHub
aff3be03dc
prebuilt: release 0.2.0 ( #4793 )
2025-05-22 17:54:58 +00:00
David Duong and GitHub
1000b81eca
feat(langgraph): push_messages should directly write to the state ( #4791 )
2025-05-22 19:41:51 +02:00
Tat Dat Duong
10c6ed7320
Code review
2025-05-22 19:35:44 +02:00
Tat Dat Duong
28e0e7f3ae
feat(langgraph): push_messages should directly write to the state
2025-05-22 19:35:15 +02:00
Sydney Runkle and GitHub
87fa661ac0
temp: remove ToolInterruptNode code ( #4792 )
...
remove tool node specific code for post_model_hook release
2025-05-22 13:28:59 -04:00
David Duong and GitHub
3189b8fcda
feat(sdk-js): Add rejoining of streams ( #4744 )
2025-05-22 19:19:07 +02:00
Tat Dat Duong
74b18acfc2
Bump to 0.0.78
2025-05-22 19:08:39 +02:00
Tat Dat Duong
1ff5e2966b
Add joinStream method
2025-05-22 19:07:01 +02:00
Diwakar Gupta and GitHub
1ba2b3fba9
Merge branch 'main' into fix-examples-link-readme
2025-05-22 22:34:22 +05:30
Tat Dat Duong
102b1f63f3
Fix assumption on sessionStorage
2025-05-22 19:01:14 +02:00
Tat Dat Duong
74dbccd408
Rename to reconnectOnMount
2025-05-22 18:42:38 +02:00
Tat Dat Duong
f5a2410ddc
Make useStream more hackable
2025-05-22 18:38:09 +02:00
Sydney Runkle and GitHub
4cade428d8
docs: adding interactive graph widget ( #4785 )
2025-05-22 12:23:43 -04:00
Tat Dat Duong
5823a659fc
use sessionStorage instead
2025-05-22 18:11:38 +02:00
Tat Dat Duong
f2c32727e8
Fix invalid states
2025-05-22 18:09:16 +02:00
Tat Dat Duong
9d71d941fd
resumable
2025-05-22 17:45:52 +02:00
Tat Dat Duong
0db618ae75
Further cleanup
2025-05-22 17:45:52 +02:00
Tat Dat Duong
49746ab3a3
Code cleanup
2025-05-22 17:45:51 +02:00
Tat Dat Duong
5c7ef9a4fc
Fix race condition
2025-05-22 17:45:51 +02:00
Tat Dat Duong
62e688bb37
Add rejoining of streams
2025-05-22 17:45:51 +02:00
Sydney Runkle and GitHub
42eff39cd0
docs: fix top nav ( #4783 )
...
fix top nav
2025-05-21 19:30:13 -04:00
David Duong and GitHub
39172f2ff9
feat(graph): add push_message method to push manually to messages / message-tuple stream ( #4722 )
2025-05-22 01:01:48 +02:00
Nuno Campos and GitHub
0202c83e73
Apply same condition for stream_mode=values in suppress interrupt ( #4782 )
2025-05-21 15:55:55 -07:00
Tat Dat Duong
ab924c72fa
Add message state test
2025-05-22 00:49:23 +02:00
Nuno Campos
1833889316
Apply same condition for stream_mode=values in suppress interrupt
2025-05-21 15:23:27 -07:00
Tat Dat Duong
7a6bdb3441
Remove redundant cast
2025-05-22 00:23:26 +02:00
David Duong and GitHub
ea7f45dba7
feat(sdk-py): resumable streams ( #4765 )
2025-05-22 00:19:43 +02:00
Tat Dat Duong
d2875cc576
feat(graph): add push_message method to push manually to messages / message-tuple stream
2025-05-22 00:18:12 +02:00
Tat Dat Duong
e77197a00f
Here as well
2025-05-22 00:13:22 +02:00
Tat Dat Duong
30e6ea7aed
Last uv.lock?
2025-05-22 00:13:10 +02:00
Tat Dat Duong
461afe0aa6
Again?
2025-05-22 00:12:40 +02:00
Tat Dat Duong
92f8dde61e
uv.lock?
2025-05-22 00:07:56 +02:00
Tat Dat Duong
f4f7a79907
Bump to 0.1.70
2025-05-22 00:03:48 +02:00
Tat Dat Duong
9c1267af1a
Import re
2025-05-22 00:03:41 +02:00
Tat Dat Duong
e0a4420b8e
feat(sdk-py): resumable streams
2025-05-22 00:03:41 +02:00
Andrew Nguonly and GitHub
94a8067c12
docs: Remove outdated docs regarding graph construction ( #4779 )
...
Remove outdated docs regarding graph construction.
2025-05-21 12:21:32 -07:00
Lauren Hirata Singh and GitHub
957db60d89
docs: fix ( #4778 )
2025-05-21 14:48:36 -04:00
Lauren Hirata Singh
a17efb1120
fix
2025-05-21 14:47:55 -04:00
Eugene Yurtsev and GitHub
d4b428de62
docs: improved llms.txt ( #4777 )
...
Improved llms.txt
2025-05-21 14:40:01 -04:00
Eugene Yurtsev and GitHub
fd0b70eb05
docs: improve llms.txt to generate title and description based on content ( #4775 )
...
Update llms.txt based on content
2025-05-21 14:39:13 -04:00
Lauren Hirata Singh and GitHub
b8daf323ac
docs: fix redirect ( #4776 )
2025-05-21 14:35:04 -04:00
Lauren Hirata Singh
2d3a3de1ce
docs: fix redirect
2025-05-21 14:34:02 -04:00
Nuno Campos and GitHub
96e2f68b2d
Only emit stream values chunks when the output channels have changed ( #4774 )
2025-05-21 13:09:42 -04:00
Eugene Yurtsev and GitHub
364508ff20
docs: Add script to generate llms-txt links from yaml ( #4771 )
...
A first pass at the script to fix the immediate issue. Will follow up with a few additional improvements.
2025-05-21 11:54:23 -04:00
Eugene Yurtsev and GitHub
fa1af5c364
docs: replace llms.txt with updated links ( #4772 )
...
This is a stop gap solution to fix broken links.
This PR will be followed up with a better llms.txt file
2025-05-21 11:53:26 -04:00
le-codeur-rapide and GitHub
8ec29b4df7
docs: fix example pregel reducer ( #4740 )
2025-05-21 10:38:29 -04:00
Sydney Runkle and GitHub
06607e08ea
prebuilts hitl: fix branching logic + add structural snapshot tests ( #4767 )
2025-05-21 09:29:59 -04:00
Lauren Hirata Singh and GitHub
0a8f54ca4a
docs: add redirect ( #4762 )
2025-05-20 15:06:34 -04:00
Lauren Hirata Singh
9d41d439cc
docs: add redirect
2025-05-20 14:52:02 -04:00
Diwakar Gupta and GitHub
364fdf5dfe
Merge branch 'main' into fix-examples-link-readme
2025-05-21 00:00:09 +05:30
Leeroy Brun and GitHub
ae5c01fbab
docs: typo in npx command to install LangGraph CLI ( #4761 )
2025-05-20 17:08:02 +00:00
Sydney Runkle and GitHub
bd52b1faa1
docs: deferred nodes ( #4759 )
2025-05-20 13:07:11 -04:00
Stefano Lottini and GitHub
4a04ca7268
[docs] Revise pip-install packages for PostgresSaver in "how-to/Persistence" notebook ( #4752 )
...
revise pip-install packages for PostgresSaver usage in how-to page
2025-05-20 15:46:39 +00:00
Yazan Jian and GitHub
23b868da00
docs: fix async usage example from await .invoke() to `await .ainvo… ( #4758 )
...
docs: fix async usage example from `await .invoke()` to `await .ainvoke()`
2025-05-20 15:45:47 +00:00
David Duong and GitHub
51bfd16460
feat(sdk-js): add stream_resumable flag, that marks the stream as resumable ( #4757 )
2025-05-20 14:16:39 +02:00
Tat Dat Duong
325d9e3134
Bump to 0.0.77
2025-05-20 14:14:48 +02:00
Tat Dat Duong
b052ebf984
feat(sdk-js): add stream_resumable flag, that marks the stream as resumable
2025-05-20 14:13:47 +02:00
Sydney Runkle and GitHub
1e938a692f
docs: node caching ( #4749 )
2025-05-19 15:49:31 -04:00
Nuno Campos and GitHub
46a9d3159d
Remove local_write utility ( #4751 )
...
- The validation isn't worth the cost of having to pass list of nodes to task config
2025-05-19 15:49:17 -04:00
Nuno Campos and GitHub
d825e39df9
Print output for cached @task functions ( #4750 )
2025-05-19 11:42:16 -07:00
Nuno Campos
53a1e7c9de
Print output for cached @task functions
2025-05-19 11:35:51 -07:00
Sydney Runkle and GitHub
7bd8616b1e
feature: Implement post_model_hook and HumanInterruptNode ( #4583 )
2025-05-19 14:07:42 -04:00
William FH and GitHub
95f92069a7
sqlite: Add test for search with list filters ( #4747 )
2025-05-18 23:50:27 -07:00
William FH and GitHub
6b28319796
sqlite: update list_namespaces with max_depth ( #4746 )
...
sqlite: update on conflict
2025-05-18 23:27:06 -07:00
Didier Durand and GitHub
2ddf61201c
docs: Fixing some typos ( #4741 )
2025-05-18 22:36:37 -07:00
Didier Durand and GitHub
9453ee08dc
docs: Fix a few spelling mistakes ( #4742 )
...
Fixing some typos
2025-05-18 22:35:54 -07:00
William Fu-Hinthorn
15bafc54c8
Update lockfile
2025-05-17 21:55:46 -07:00
William FH and GitHub
725dd40fa7
Release sqlite store ( #4737 )
2025-05-17 21:49:03 -07:00
William FH and GitHub
c2a1b3af07
docs: Clean up adjective use in readme ( #4734 )
2025-05-17 21:43:14 -07:00
William FH and GitHub
025b634d98
SqliteStore ( #3608 )
2025-05-17 21:40:19 -07:00
Diwakar Gupta and GitHub
fe5d303ccd
Merge branch 'main' into fix-examples-link-readme
2025-05-17 13:56:41 +05:30
Brace Sproul and GitHub
8edb3e7b65
release(sdk-js): 0.0.76 ( #4733 )
2025-05-16 14:59:50 -07:00
bracesproul
c21cf9fc1d
release(sdk-js): 0.0.76
2025-05-16 14:56:56 -07:00
David Duong and GitHub
cb95393c67
fix: Allow users to config whether or not stream subgraphs ( #4732 )
2025-05-16 23:51:25 +02:00
bracesproul
bb1edb4415
cr
2025-05-16 14:49:57 -07:00
bracesproul
6f1db4c60a
fix: Allow users to config whether or not stream subgraphs
2025-05-16 14:49:28 -07:00
Vadym Barda and GitHub
119a03bb00
ci: fix benchmark command ( #4729 )
2025-05-16 12:53:46 -07:00
Vadym Barda and GitHub
09138048bc
docs: document tuples in streaming guides ( #4690 )
2025-05-16 14:59:51 -04:00
David Duong and GitHub
adc89440a6
feat(sdk-js): expose ID for SSE events, update joinStream ( #4547 )
2025-05-16 20:53:39 +02:00
Tat Dat Duong
c65919b3b2
Remove onResponse
2025-05-16 11:52:07 -07:00
Tat Dat Duong
0fa2b6c600
Bump to 0.0.75
2025-05-16 11:50:35 -07:00
Tat Dat Duong
9b2071b103
Fix tests
2025-05-16 11:50:09 -07:00
Tat Dat Duong
b3f13ee904
Add onRunCreated callback
2025-05-16 11:43:40 -07:00
Tat Dat Duong
bf239a06e1
Add callback for response object to get headers
2025-05-16 11:43:39 -07:00
Tat Dat Duong
cc25539018
feat(sdk-js): expose ID for SSE events, update joinStream
2025-05-16 11:43:39 -07:00
Lauren Hirata Singh and GitHub
654096625a
docs: add redirect ( #4727 )
2025-05-16 11:28:45 -07:00
David Duong and GitHub
3ea1141d55
feat(sdk-js): switch from jest to vitest, add useStream FE tests ( #4726 )
2025-05-16 19:55:30 +02:00
Tat Dat Duong
e9d1f5508a
package.json
2025-05-16 10:53:06 -07:00
Tat Dat Duong
c6157d90dd
feat(sdk-js): switch from jest to vitest, add useStream FE tests
2025-05-16 10:48:11 -07:00
Lauren Hirata Singh
f37a228b58
add redirect
2025-05-16 10:28:51 -07:00
Sydney Runkle and GitHub
d34299ac39
ci: fix issue with cache in integration tests ( #4725 )
2025-05-16 16:49:29 +00:00
Diwakar Gupta and GitHub
c9fa11ae7d
Merge branch 'langchain-ai:main' into fix-examples-link-readme
2025-05-16 16:32:53 +05:30
Sydney Runkle and GitHub
228a08b966
ci: migrate to uv! ( #4698 )
...
* Migrate to `uv`
* Format `pyproject.toml` files properly
* Remove upper bounds on dependencies, and bounds on dev dependencies
(we should be using latest)
* Move to hatch for packaing
In the future we should:
* Set up dependabot / automate lockfile updates and tests
* Add tests for min compatible versions (I'll do this right after merge)
* Use dynamic versioning
* Bump `pydantic` to v2.11.4 in the lockfile, we have some tests failing
2025-05-15 17:39:14 -07:00
Lauren Hirata Singh and GitHub
217795eb72
docs: fix broken img ( #4716 )
2025-05-15 13:37:40 -07:00
Lauren Hirata Singh
e873df678b
fix broken img
2025-05-15 13:33:36 -07:00
Hussein Akbarzadeh and GitHub
2b603a6ab0
Update sql-agent.ipynb ( #4702 )
...
On line 586, the check_query function should use
check_query_system_prompt. Instead, small mistake it is using the
generate_query_system_prompt prompt which is obviously incorrect.
2025-05-15 20:26:36 +00:00
Lauren Hirata Singh and GitHub
f60a06441b
docs: fix nit ( #4714 )
2025-05-15 12:50:32 -07:00
Lauren Hirata Singh
db5e956dc6
docs: fix nit
2025-05-15 12:48:49 -07:00
Yagnesh M. Bhadiyadra and GitHub
cacae7bd1f
fix(docs): Correctify the Pass or Fail condition in the Graph API example. ( #4712 )
2025-05-15 19:37:36 +00:00
Vadym Barda and GitHub
60df867872
docs: update MCP example ( #4713 )
2025-05-15 14:59:35 -04:00
Diw
988805d60b
fix link to examples page in readme.md
2025-05-15 23:11:17 +05:30
Vadym Barda and GitHub
6fb2a93212
langgraph: release 0.4.5 ( #4709 )
2025-05-15 13:33:02 -04:00
Vadym Barda and GitHub
3f8944c1fc
checkpoint: release 2.0.26 ( #4708 )
2025-05-15 13:28:10 -04:00
Nuno Campos and GitHub
e79f3ceedc
Improve how we match cached writes for async imperative tasks ( #4691 )
...
- remove match_cached_writes from PregelRunner args (now called by
PregelLoop internally)
- this will be helpful when implementing distributed runner classes
2025-05-15 10:21:27 -07:00
Vadym Barda and GitHub
a64414c87c
langgraph: release 0.4.4 ( #4704 )
2025-05-15 11:20:59 -04:00
Nuno Campos and GitHub
c9d85a22ec
langgraph: fix drawing graph with __root__ channel ( #4695 )
2025-05-15 07:55:45 -07:00
Pablo and GitHub
983243333c
Missing space in langgraph_server.md ( #4697 )
...
Missing space
2025-05-15 08:39:01 -04:00
vbarda
3a1c02ff33
update for consistency
2025-05-15 08:38:25 -04:00
vbarda
5ab2aa79bb
lint again
2025-05-14 22:11:09 -04:00
vbarda
c33e64daa6
use list
2025-05-14 22:03:40 -04:00
vbarda
4ffae6065f
lint + update
2025-05-14 22:01:54 -04:00
vbarda
54ddde9d4c
update
2025-05-14 21:30:22 -04:00
vbarda
60c41ce69e
update
2025-05-14 21:14:49 -04:00
vbarda
efd33d860f
update
2025-05-14 21:03:47 -04:00
vbarda
254a38560e
langgraph: fix drawing graph with __root__ channel
2025-05-14 20:42:30 -04:00
Nuno Campos and GitHub
3487f4eba5
langgraph: fix graph drawing for self-loops ( #4688 )
...
Fixes #4685
2025-05-14 11:44:44 -07:00
Nuno Campos
3bdb7d09be
Lint
2025-05-14 11:30:49 -07:00
Nuno Campos
3acf63a918
Lint
2025-05-14 11:29:26 -07:00
Nuno Campos
f51e5e2bd7
Improve how we match cached writes for async imperative tasks
...
- remove match_cached_writes from PregelRunner args (now called by PregelLoop internally)
- this will be helpful when implementing distributed runner classes
2025-05-14 11:25:49 -07:00
lc-arjun and GitHub
c1a4d77bd4
fix: update langgraph cli to include js and update template app description ( #4687 )
2025-05-14 07:04:04 -07:00
6e3eb6370e
Update docs/docs/tutorials/langgraph-platform/local-server.md
...
Co-authored-by: William FH <13333726+hinthornw@users.noreply.github.com >
2025-05-14 06:56:36 -07:00
Arjun Natarajan
ab0fa9dc77
use npx to install cli instead
2025-05-14 09:49:42 -04:00
vbarda
b20130d4e4
langgraph: fix graph drawing for self-loops
2025-05-14 09:46:32 -04:00
Arjun Natarajan
5f821cf584
fix: update langgraph cli to include js and update template app description
2025-05-14 09:41:37 -04:00
lc-arjun and GitHub
c7691081d1
fix(docs): template app names ( #4682 )
2025-05-13 15:25:39 -07:00
Arjun Natarajan
2ff2972b67
oops js is js not python
2025-05-13 18:21:20 -04:00
Arjun Natarajan
873873e640
fix(docs): template app names
2025-05-13 18:17:42 -04:00
lc-arjun and GitHub
fba0d6f96c
chore(docs): reformat troubleshooting section and remove faqs page ( #4681 )
2025-05-13 15:04:19 -07:00
Arjun Natarajan
8bc509578b
fix formatting
2025-05-13 17:59:51 -04:00
Arjun Natarajan
72d085d9f8
reformat troubleshooting section and remove faqs page
2025-05-13 17:54:51 -04:00
ccurme and GitHub
940c2b0e74
docs: add chat model tabs to models guide ( #4679 )
2025-05-13 17:50:26 -04:00
lc-arjun and GitHub
e705ea1961
feat(docs): studio nits ( #4680 )
2025-05-13 13:53:02 -07:00
Arjun Natarajan
18e8d334ed
nits to threads
2025-05-13 16:48:07 -04:00
Arjun Natarajan
392606f5f7
feat(docs): studio nits
2025-05-13 16:29:10 -04:00
lc-arjun and GitHub
cff2be48c9
feat(docs): further improvements for studio guides docs ( #4677 )
2025-05-13 12:59:47 -07:00
Arjun Natarajan
c63cc173b2
added page for running application
2025-05-13 15:54:46 -04:00
Lauren Hirata Singh and GitHub
2b8c295898
docs: Simplify LGP quickstarts ( #4678 )
...
- Change quickstarts to use `new-langgraph-project`, which doesn't
require API keys for Anthropic, Tavily, etc.
2025-05-13 11:47:48 -07:00
Arjun Natarajan
03c5547e34
update dataset page
2025-05-13 14:46:26 -04:00
Lauren Hirata Singh
a7faae6b54
nit
2025-05-13 11:40:30 -07:00
Lauren Hirata Singh
1d3f19763d
add js sample code back
2025-05-13 11:36:45 -07:00
Lauren Hirata Singh
16d5ce364c
nit
2025-05-13 11:24:19 -07:00
Lauren Hirata Singh
ce235d0eb1
edits based on feedback
2025-05-13 11:20:19 -07:00
Arjun Natarajan
2e17857ca7
verb tense
2025-05-13 13:57:18 -04:00
Arjun Natarajan
304a59a1c9
feat(docs): further improvements for studio guides docs
2025-05-13 13:52:14 -04:00
Lauren Hirata Singh
063a0e027b
docs: Simplify LGP quickstarts
2025-05-13 10:51:48 -07:00
ccurme and GitHub
4534d174f4
docs: move async guide into graph-api ( #4676 )
2025-05-13 13:30:23 -04:00
Lauren Hirata Singh and GitHub
8d9a99bb99
docs: address feedback ( #4674 )
2025-05-13 10:08:42 -07:00
Lauren Hirata Singh
ee528f7d49
nit
2025-05-13 10:04:33 -07:00
Lauren Hirata Singh
9d3ea6fd7e
docs: address feedback
2025-05-13 09:51:50 -07:00
Vadym Barda and GitHub
d256469f37
docs: fix warnings in links ( #4672 )
2025-05-13 11:38:54 -04:00
William Fu-Hinthorn
138f0eb003
fix: (docs) Rm unused api keys
2025-05-13 08:07:13 -07:00
Lauren Hirata Singh and GitHub
1acad37bee
docs: LGP nits ( #4670 )
2025-05-12 20:59:59 -07:00
Lauren Hirata Singh
0a7a7fb71f
docs: LGP nits
2025-05-12 20:57:29 -07:00
lc-arjun and GitHub
b6f3e25ef7
fix: use absolute links for sdk reference ( #4669 )
2025-05-12 19:44:36 -07:00
Arjun Natarajan
70a10b0b57
fix: use absolute links for sdk reference
2025-05-12 22:39:05 -04:00
William FH and GitHub
bed5f80e2c
Optionally use loop-safe asgi transport ( #4668 )
2025-05-12 19:31:44 -07:00
Vadym Barda and GitHub
8057efc80a
docs: update cassettes & notebook runner processing ( #4667 )
2025-05-12 21:54:42 -04:00
ce4caa3ac8
docs: mcp adapters example for deployed graph ( #4666 )
...
Example to connect to the MCP server of a deployed graph in langgraph
platform (langchain-mcp-adapters).
The graph can be used as a MCP tool.

---------
Co-authored-by: Vadym Barda <vadym@langchain.dev >
2025-05-12 17:55:38 -07:00
Vadym Barda and GitHub
ad315bb5e0
docs: update HITL platform docs ( #4664 )
2025-05-12 17:56:27 -04:00
Lauren Hirata Singh and GitHub
5b9c9057a2
docs: General clean up ( #4665 )
...
- Change LG Cloud > Platform
- Misc. cleanup
2025-05-12 17:41:49 -04:00
Lauren Hirata Singh and GitHub
280d612b2d
Merge branch 'main' into clean
2025-05-12 17:26:17 -04:00
Lauren Hirata Singh
ceee65c93c
Fix headings
2025-05-12 14:25:34 -07:00
William Fu-Hinthorn
a16176c5bf
fix: (docs) Update openapi.json
2025-05-12 14:23:20 -07:00
lc-arjun and GitHub
5537adc16a
feat(docs): threads ( #4662 )
2025-05-12 14:19:48 -07:00
Ido Salomon and GitHub
9fce01f884
[Proposal] add gitmcp badge for simple LLM-accessible documentation ( #4502 )
...
[gitmcp.io](https://gitmcp.io/ ) provides easy access to the latest
langgraph docs through a remote, free, open-source MCP. It's supported
by all major clients (including the new claude.ai web client). It
enables two access points -
- Empower AI agents (e.g., Cursor) with live documentation context to
prevent hallucinations.
- Chat with the documentation in the browser via the embedded chat
This PR proposes adding a new badge to help users make the most of
Langgraph's documentation with GitMCP. The badge is
[customizable](https://github.com/idosal/git-mcp?tab=readme-ov-file#-gitmcp-badge ).
The count is a live count of users accessing Langgraph's documentation
through GitMCP.
Example:
[](https://gitmcp.io/langchain-ai/langgraph )
You can see a demo with Langgraph's GitHub pages at gitmcp.io.
Please let us know what you think :)
2025-05-12 17:08:47 -04:00
Arjun Natarajan
e1ea8c9538
pr feedback
2025-05-12 16:55:03 -04:00
Lauren Hirata Singh
7ea406648f
Simplify assistants
2025-05-12 13:37:25 -07:00
Lauren Hirata Singh
f5423783f7
Change LG Cloud > Platform
2025-05-12 12:44:50 -07:00
Arjun Natarajan
04a42c014b
rm accidental change
2025-05-12 15:22:26 -04:00
Arjun Natarajan
1e405274ba
feat(docs): threads
2025-05-12 15:18:41 -04:00
Vadym Barda and GitHub
ae5b4e834e
docs: replace state_modifier w/ prompt in func how-tos ( #4659 )
2025-05-12 13:46:50 +00:00
André Menezes and GitHub
3d394740ce
Fix AsyncPostgresStore._cursor row type ( #4623 )
...
`AsyncPostgresStore._cursor` is expected to yield
`AsyncCursor[DictRow]`. In the `else` branch the `row_factory` was not
defined, meaning that it would yield `AsyncCursor[TupleRow]` (default).
This resulted in an error in
[langgraph/store/postgres/aio.py#L249](https://github.com/langchain-ai/langgraph/blob/main/libs/checkpoint-postgres/langgraph/store/postgres/aio.py#L249 )
(`TypeError: tuple indices must be integers or slices, not str`).
2025-05-12 13:34:56 +00:00
Emmanuel Ferdman and GitHub
5ab6f77982
Fix invalid channels error message ( #4357 )
...
# PR Summary
This small PR resolves the error formatting in
`libs/langgraph/langgraph/pregel/algo.py` so the `proc.channels` will be
evaluated in the message.
Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com >
2025-05-12 09:29:49 -04:00
Hamza Kyamanywa and GitHub
fe11a71d28
docs: update link in agentic concepts tutorial for map-reduce implementation ( #4650 )
...
## PR for:
- Fix broken link in agentic concepts tutorial for map-reduce
implementation
2025-05-12 07:46:30 -04:00
Sydney Runkle and GitHub
347fbf1625
docs: remove unused annotation comments in readmes ( #4656 )
2025-05-12 07:45:22 -04:00
Sydney Runkle and GitHub
0b5529108f
docs: fix broken API reference link ( #4657 )
2025-05-12 07:45:07 -04:00
Lauren Hirata Singh and GitHub
daf20b610b
docs: General language cleanup ( #4649 )
...
- README updates based on feedback
- Auth tutorial cleanup
2025-05-12 06:11:08 +00:00
William FH and GitHub
f7c4f96e61
Ref index ( #4644 )
2025-05-11 16:46:03 -07:00
Andrew Nguonly and GitHub
4bdbebb3e4
docs: Update beta labels for deployment options ( #4643 )
...
@lnhsingh, let me know if you're ok with this copy and messaging
placement.
2025-05-11 10:33:38 -07:00
ce5d3c9c5a
docs: Remove self-hosted lite deployment option ( #4645 )
...
### Summary
Self-Hosted Lite is a server version, not a deployment option.
---------
Co-authored-by: Lauren Hirata Singh <lauren@langchain.dev >
2025-05-11 10:29:01 -07:00
Eugene Yurtsev and GitHub
dda4b02095
docs: remove customer support bot example ( #4641 )
...
Hide example temporarily until we bring it up to date
2025-05-09 21:19:35 -04:00
lc-arjun and GitHub
0c57f2ab7e
fix(docs): update footer color ( #4646 )
2025-05-09 18:09:44 -07:00
Arjun Natarajan
6f6ae8edce
update footer color
2025-05-09 21:05:43 -04:00
lc-arjun and GitHub
ee11294351
feat(docs): assistants and threads and faqs ( #4642 )
2025-05-09 15:35:11 -07:00
Arjun Natarajan
6d3dae6fd1
assistants and threads and faqs
2025-05-09 18:11:44 -04:00
Eugene Yurtsev and GitHub
200c09b662
docs: re-enable strict mode ( #4638 )
...
- Turn on strict mode to fail docs build if there are any internal
broken anchor links.
- Fix broken anchor links.
- Delete storm tutorial that has fake markdown inside it (we'll figure
out how to deal with it later)
2025-05-09 17:25:11 -04:00
Eugene Yurtsev and GitHub
af80d6b339
docs: re-org side bar ( #4640 )
2025-05-09 17:21:15 -04:00
Eugene Yurtsev and GitHub
220f9aaaab
docs: fix formatting in overview for getting started tutorial ( #4639 )
2025-05-09 16:48:13 -04:00
William FH and GitHub
bb416eb39a
feat: CLI: Add __main__.py ( #4637 )
2025-05-09 13:14:45 -07:00
+2
3055c4b9cc
[docs] LangGraph / LangGraph Platform docs updates ( #4479 )
...
Main changes made:
- Add top level horizontal tabs
- Reorganize the sidenav
- Build out README/index page
- Consolidate how-tos under each section
- Remove duplicate content
---------
Signed-off-by: William Fu-Hinthorn <13333726+hinthornw@users.noreply.github.com >
Co-authored-by: Tat Dat Duong <david@duong.cz >
Co-authored-by: Sydney Runkle <sydneymarierunkle@gmail.com >
Co-authored-by: William Fu-Hinthorn <13333726+hinthornw@users.noreply.github.com >
Co-authored-by: Vadym Barda <vadym@langchain.dev >
Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com >
Co-authored-by: ccurme <chester.curme@gmail.com >
Co-authored-by: Andrew Nguonly <andrewnguonly@users.noreply.github.com >
Co-authored-by: David Asamu <david.asamu@langchain.dev >
Co-authored-by: infra <mukil@langchain.dev >
Co-authored-by: Arjun Natarajan <arjun@langchain.dev >
2025-05-09 16:09:43 -04:00
Nuno Campos and GitHub
909a4591a8
Port checkpointer/store fixtures in langgraph-prebuilt to idiomatic pattern ( #4629 )
2025-05-09 19:42:44 +00:00
Nuno Campos and GitHub
fc1ef29df7
Extend all tests using InMemorySaver to use all available checkpointers ( #4627 )
2025-05-09 12:34:59 -07:00
Nuno Campos and GitHub
30a72ced06
Implement update_state for functional api ( #4626 )
2025-05-09 12:34:45 -07:00
Nuno Campos and GitHub
302ae69e60
More idiomatic sync/async checkpointer fixtures in pytest ( #4624 )
2025-05-09 12:34:34 -07:00
Nuno Campos and GitHub
6777b5274c
More idiomatic sync/async store fixtures in pytest ( #4617 )
...
- Use a single fixture that returns the store, instead of list of names
2025-05-09 12:34:16 -07:00
Nuno Campos and GitHub
c5283cac09
Cache nodes/tasks ( #4486 )
...
- BaseCache interface defines the base class for cache storage adapters
- FileCache implements BaseCache with filesystem-backed storage
- Provide default cache key implementation which hashes args with pickle
- Update PregelExecutableTask with cache_key property for tasks that
opt-in to caching
- Update PregelLoop, PregelRunner to get/set from cache as appropriate
TODO
- [x] Call match_cached_writes in async PregelRunner
- [ ] Implement RedisCache to use in LGP
- [x] Add more tests
2025-05-09 12:34:04 -07:00
Nuno Campos
562d64bbb7
Lint
2025-05-09 12:07:59 -07:00
Nuno Campos
898f266f72
Overload clear method to delete all when called without args
2025-05-09 12:05:26 -07:00
Nuno Campos
331d5b07ce
Limit depth
2025-05-09 12:00:08 -07:00
William FH and GitHub
62069439fc
feat: support --base-image in langgraph dockerfile command ( #4628 )
2025-05-09 18:35:33 +00:00
Nuno Campos
0d9b664360
Extend all tests using InMemorySaver to use all available checkpointers
2025-05-09 11:11:04 -07:00
Nuno Campos
e8cea06e7e
Implement update_state for functional api
2025-05-09 10:54:26 -07:00
Nuno Campos
ed7f038a19
Fix
2025-05-09 10:54:12 -07:00
William FH and GitHub
e507f0b991
feat: Customize timeouts in get_client ( #4622 )
2025-05-09 10:07:35 -07:00
Nuno Campos
af961e279b
More idiomatic sync/async checkpointer fixtures in pytest
2025-05-09 09:59:43 -07:00
Nuno Campos
dd55e5097b
Move to sep file
2025-05-09 09:01:25 -07:00
Nuno Campos
92cc3f0e0e
More idiomatic sync/async store fixtures in pytest
...
- Use a single fixture that returns the store, instead of list of names
2025-05-09 08:38:31 -07:00
Eugene Yurtsev and GitHub
4210188ade
docs: remove giscus comments ( #4616 )
2025-05-09 11:22:43 -04:00
Nuno Campos
6fc1df9013
Lint
2025-05-08 17:12:22 -07:00
Nuno Campos
7850c8d799
Lint
2025-05-08 17:08:47 -07:00
Nuno Campos
83d2f93566
Lint
2025-05-08 16:57:21 -07:00
Nuno Campos
c937d5f048
Lint
2025-05-08 16:54:06 -07:00
Nuno Campos
1a6395fd07
Move FileCache to sqlite package, add InMemoryCache
2025-05-08 16:50:36 -07:00
Nuno Campos
6e0041529e
Add clear cache methods
2025-05-08 16:50:24 -07:00
Nuno Campos
d5d6fc0fee
Remove refresh
2025-05-08 16:50:24 -07:00
Nuno Campos
31b135f75d
Add namespace to cache keys
2025-05-08 16:50:24 -07:00
Nuno Campos
bebb0e8164
Lint
2025-05-08 16:50:24 -07:00
Nuno Campos
4761eb7696
Lint
2025-05-08 16:50:24 -07:00
Nuno Campos
f1c1eaf229
Lint
2025-05-08 16:50:24 -07:00
Nuno Campos
0211886bf5
Lint
2025-05-08 16:50:24 -07:00
Nuno Campos
0dd9fba0af
Lint
2025-05-08 16:50:24 -07:00
Nuno Campos
f5bf77b3eb
Lint
2025-05-08 16:50:09 -07:00
Nuno Campos
7c9f9aa89d
Lint
2025-05-08 16:49:38 -07:00
Nuno Campos
d38303494c
Lint
2025-05-08 16:49:38 -07:00
Nuno Campos
c4deb2c621
Finish implementation, add tests
2025-05-08 16:49:38 -07:00
Nuno Campos
42d88a769a
Lint
2025-05-08 16:49:38 -07:00
Nuno Campos
14b07d06fa
Re-implement using sqlite
2025-05-08 16:49:38 -07:00
Nuno Campos
d04570f178
Lint
2025-05-08 16:49:38 -07:00
Nuno Campos
6c155f87c3
Lint
2025-05-08 16:49:38 -07:00
Nuno Campos
0264363083
Lint
2025-05-08 16:49:38 -07:00
Nuno Campos
1edf5cee89
Accept default cache_policy for graph/entrypoint/pregel
2025-05-08 16:49:38 -07:00
Nuno Campos
0e81699fec
Lint
2025-05-08 16:49:01 -07:00
Nuno Campos
a2a1a42c75
Fix
2025-05-08 16:49:01 -07:00
Nuno Campos
6b78bcd857
Implement ttl in FileCache
2025-05-08 16:49:01 -07:00
Nuno Campos
d33c5a20e4
Fix
2025-05-08 16:49:01 -07:00
Nuno Campos
09fdc14d0a
Output cached writes
2025-05-08 16:49:01 -07:00
Nuno Campos
64491a2b29
Lint
2025-05-08 16:49:01 -07:00
Nuno Campos
057da43cd0
Lint
2025-05-08 16:49:01 -07:00
Nuno Campos
a11a62e68f
Thread-safe delete
2025-05-08 16:49:01 -07:00
Nuno Campos
1d977f1c09
Rename
2025-05-08 16:49:01 -07:00
Nuno Campos
5cff35d1c3
Fix type annotation
2025-05-08 16:49:01 -07:00
Nuno Campos
ed3f05260a
Secure!
2025-05-08 16:49:01 -07:00
Nuno Campos
b3ea406e81
Add pickle_fallback for json plus serializer
2025-05-08 16:49:01 -07:00
Nuno Campos
2a1c63ff9c
Fixes
2025-05-08 16:49:01 -07:00
Nuno Campos
1aecde3cd8
Re-do with separate cache interface
2025-05-08 16:49:01 -07:00
Nuno Campos
a446f34ed9
WIP
2025-05-08 16:48:46 -07:00
Nuno Campos and GitHub
c2776449fd
Deferred Node ( #4269 )
2025-05-08 23:03:57 +00:00
William FH and GitHub
88fd6b1e80
Start dev server externally ( #4604 )
...
Signed-off-by: William Fu-Hinthorn <13333726+hinthornw@users.noreply.github.com >
2025-05-08 15:20:51 -07:00
William FH and GitHub
10b1676d0b
Update python SDK docstrings ( #4602 )
2025-05-08 14:37:26 -07:00
William FH and GitHub
c1bf678ed1
Update openapi spec ( #4599 )
...
Incorporate new arguments added to the API, including the `/mcp` paths
2025-05-08 09:14:18 -07:00
William FH and GitHub
9938b51d31
release: 0.4.3 ( #4592 )
2025-05-07 20:28:40 -07:00
b84ae660b8
langgraph: use tuples for streamed message events in RemoteGraph ( #4589 )
...
Co-authored-by: William FH <13333726+hinthornw@users.noreply.github.com >
2025-05-08 03:20:23 +00:00
William FH and GitHub
e3146d8050
Fix remote streaming of subgraphs ( #4590 )
...
Because we were propagating the task ID config key, the stream mode was
always overridden as "values", meaning the token, etc. callback handlers
were never added within the remote graphs.
---------
Signed-off-by: William Fu-Hinthorn <13333726+hinthornw@users.noreply.github.com >
2025-05-07 20:10:31 -07:00
Lauren Hirata Singh and GitHub
d56c3b0f26
Update banner ( #4588 )
2025-05-07 20:12:35 -04:00
Lauren Hirata Singh
cf89499507
Update banner
2025-05-07 20:07:31 -04:00
Vadym Barda and GitHub
79dffe20b2
docs: update multi agent multi-turn howto ( #4582 )
...
Fixes #4554
2025-05-07 16:06:28 -04:00
a9ea0cd28a
Add a limit to Pregel.draw ( #4575 )
...
Co-authored-by: vbarda <vadym@langchain.dev >
2025-05-07 16:12:12 +00:00
Gustaf and GitHub
ffaddab110
docs: Fixed incorrect tool in 'Write from tools' documentation ( #4572 )
...
I was having trouble following this section of the docs and I realized
it is because the incorrect tools is included in the tools list.
`update_user_info` was defined earlier in the file but never used.
2025-05-07 11:06:44 -04:00
William FH and GitHub
4aeaffef4e
0.4.2 ( #4570 )
...
Release
2025-05-06 18:28:37 -07:00
Lauren Hirata Singh and GitHub
b44be763fb
Fix typos ( #4567 )
2025-05-06 13:41:32 -07:00
langchain-infra and GitHub
00d2a1abd4
docs: update ingress requirement for self hosted control plane ( #4564 )
2025-05-06 14:51:37 -04:00
infra
2e8e9e4531
docs: update ingress requirement for self hosted control plane
2025-05-06 11:46:31 -07:00
William FH and GitHub
0e2471b401
Add LANGGRAPH_POSTGRES_POOL_MAX_SIZE env var ( #4562 )
2025-05-06 18:23:55 +00:00
Nuno Campos and GitHub
e401ad7c75
langgraph: decouple name from assistant ID in RemoteGraph ( #4550 )
2025-05-05 18:22:54 -07:00
vbarda
f1bfd6051a
update
2025-05-05 21:02:10 -04:00
vbarda
998be75f34
langgraph: decouple name from assistant ID in RemoteGraph
2025-05-05 20:47:22 -04:00
Nuno Campos and GitHub
e51442279a
sdk-py: Prefix private functions in sdk with _ ( #4542 )
2025-05-05 15:19:24 -07:00
Nuno Campos
365dd5f459
sdk-py: Prefix private functions in sdk with _
2025-05-05 14:43:34 -07:00
Jacob Lee and GitHub
8837f8452c
docs: Fix JS example in custom auth how-tos ( #4536 )
...
Should be `defaultHeaders`:
https://github.com/langchain-ai/langgraph/blob/main/libs/sdk-js/src/client.ts#L76
2025-05-05 12:35:00 -07:00
Vadym Barda and GitHub
306915690c
docs(concepts): update HITL Command section ( #4533 )
2025-05-05 18:44:32 +00:00
Vadym Barda and GitHub
0e61cc2cf6
prebuilt: remove state_modifier ( #4439 )
...
Removes support for `state_modifier` param in `create_react_agent`. To
specify system prompt / instructions use `prompt` parameter.
2025-05-05 09:49:28 -04:00
Sydney Runkle and GitHub
a0a302dec5
prebuilt: switch to executing parallel tool calls via Send by default ( #4438 )
2025-05-05 09:49:09 -04:00
Vadym Barda and GitHub
b19405b296
docs: hide old RAG tutorials ( #4525 )
2025-05-04 21:03:05 +00:00
Vadym Barda and GitHub
101ad12292
docs: update agentic rag tutorial ( #4513 )
2025-05-04 20:59:08 +00:00
Vadym Barda and GitHub
df58a71567
docs: update api ref test ( #4516 )
2025-05-02 13:58:29 -04:00
Vadym Barda and GitHub
ee04c32bb3
docs: update api ref links to be smaller / italicized ( #4514 )
2025-05-02 12:50:21 -04:00
William FH and GitHub
4e05db8537
Release checkpoint-sqlite ( #4509 )
2025-05-01 22:42:07 -07:00
William FH and GitHub
d6e20e6d09
Add missing 'running' RunStatus ( #4508 )
2025-05-02 05:36:58 +00:00
Eugene Yurtsev and GitHub
dd4ad48864
docs: add /mcp endpoint concept for LangGraph Server ( #4151 )
...
Documents the /mcp endpoint for LangGraph Server
2025-05-01 22:14:22 -04:00
Vadym Barda and GitHub
f79c8487d9
docs: remove nonexistent pages from nav ( #4504 )
2025-05-01 21:34:24 -04:00
Vadym Barda and GitHub
284e9a2cb4
docs: hide hierarchical tutorial from nav ( #4503 )
2025-05-01 21:24:12 -04:00
Vadym Barda and GitHub
9216e949e9
docs: update multi-agent supervisor tutorial to use handoffs ( #4491 )
2025-05-01 21:22:14 -04:00
gyudoza and GitHub
a6e2d9e197
docs(rag): fix many typo of generate at RAG section ( #4490 )
...
While I was studying about RAG by using langgraph, I found these typos.
2025-05-02 01:19:24 +00:00
Eugene Yurtsev and GitHub
abae398a3a
fix(docs): fix indent typo in code snippet in human-in-the-loop.md ( #4501 )
2025-05-01 21:18:15 -04:00
William FH and GitHub
fcd06acd33
Add support for specifying a custom base image in docker commands ( #4500 )
...
build & dockerfile commands
can be specified via CLI > langgraph.json
2025-05-01 23:13:49 +00:00
c687daa867
docs: update sql tutorial ( #4494 )
...
Co-authored-by: Lauren Hirata Singh <lauren@langchain.dev >
2025-05-01 20:18:00 +00:00
Sydney Runkle and GitHub
a9f02efab2
docs: remove type in parens from docstrings + use tables for args ( #4497 )
...
Adhering to google style format so that mkdocs can pick up + format
args. Also, these types easily get out of date, so nice to remove from
that perspective as well.
Before:
<img width="710" alt="Screenshot 2025-05-01 at 2 01 55 PM"
src="https://github.com/user-attachments/assets/9ad0b33e-5d2c-43c2-9e7c-bf3fc6a6dffe "
/>
After:
<img width="729" alt="Screenshot 2025-05-01 at 2 01 24 PM"
src="https://github.com/user-attachments/assets/97e94d54-41f0-4946-9677-0c5d6400d62b "
/>
2025-05-01 14:08:52 -04:00
Sydney Runkle
2288ef110c
use table format
2025-05-01 14:01:14 -04:00
Sydney Runkle
ceac510054
meaningless change to docs/ to get vercel going
2025-05-01 13:52:33 -04:00
Sydney Runkle
94994a8d99
meaningless commit to get vercel going sigh
2025-05-01 13:50:55 -04:00
Sydney Runkle
f35caf3401
fix for langgraph
2025-05-01 13:41:18 -04:00
Sydney Runkle
3cf2291354
docstrings for prebuilt
2025-05-01 13:40:58 -04:00
Sydney Runkle
0f96441a7c
docstrings for sdk-py
2025-05-01 13:40:39 -04:00
Sydney Runkle
6c6bfbc63a
docstrings for checkpoint-sqlite
2025-05-01 13:40:21 -04:00
Sydney Runkle
8ce33b948c
docstrings for checkpoint-postgres
2025-05-01 13:40:05 -04:00
Sydney Runkle
cc698b4f2b
docstrings for checkpoint
2025-05-01 13:29:51 -04:00
Sydney Runkle
5916dc333e
docstring fixes for cli
2025-05-01 13:23:54 -04:00
Sydney Runkle
7b749f05bd
docstring fixes for libs/langgraph
2025-05-01 13:22:49 -04:00
Vadym Barda and GitHub
cc4d2d26c7
docs: update add_messages API ref ( #4495 )
2025-05-01 12:33:27 -04:00
Vadym Barda and GitHub
3c7861c70a
docs: fix a link in the agents page ( #4492 )
2025-05-01 11:39:37 -04:00
William FH and GitHub
a2035eeb11
Update CLI ( #4488 )
...
Remove maxbound for langgraph-api and runtime inmem.
Update min-bound.
Add server log level flag for dev
2025-04-30 18:23:41 -07:00
William FH and GitHub
9a5b602287
Add checkpoint_during for the SDKs ( #4487 )
2025-04-30 15:56:29 -07:00
lc-arjun and GitHub
03c34bf2cf
feat: assistants sorting sdk spec ( #4484 )
2025-04-30 17:05:37 -04:00
Vadym Barda and GitHub
536c1c2bba
docs: remove prebuilt how-tos and add redirects to agents tab ( #4485 )
2025-04-30 15:55:55 -04:00
c5de8f4e50
docs(agents): update manage message history section ( #4482 )
...
Co-authored-by: Lauren Hirata Singh <lauren@langchain.dev >
2025-04-30 19:11:45 +00:00
Vadym Barda and GitHub
d08ed5f42e
docs(agents): add store semantic search link ( #4483 )
2025-04-30 15:08:18 -04:00
David Duong and GitHub
0269dd8818
release(langgraph): 0.4.1 ( #4480 )
2025-04-30 20:24:48 +02:00
David Duong and GitHub
aa722ac084
release(sdk-js): 0.0.72 ( #4481 )
2025-04-30 20:22:01 +02:00
Tat Dat Duong
91e9f12b54
release(sdk-js): 0.0.72
2025-04-30 20:19:30 +02:00
Tat Dat Duong
5779d9079f
release(langgraph): 0.4.1
2025-04-30 20:18:25 +02:00
David Duong and GitHub
e02c4b06db
feat(ui): add merge option to UI messages ( #4473 )
...
- Add docs about (partial) streaming UI components from LLMs
- Add missing support for "nostream" in LangGraph
2025-04-30 20:15:57 +02:00
Vadym Barda and GitHub
5b44886da0
docs(agents): add disable_streaming ( #4475 )
2025-04-30 14:07:19 -04:00
Tat Dat Duong
be1af772f5
Fix lint
2025-04-30 20:04:48 +02:00
Vadym Barda and GitHub
33e409e12b
docs(agents): add model fallbacks ( #4478 )
2025-04-30 17:56:58 +00:00
Vadym Barda and GitHub
ce2ba47aff
docs: cross link working w/ memory in tools ( #4464 )
2025-04-30 13:52:10 -04:00
Tat Dat Duong
b3371a1d63
Add missing "nostream" support
2025-04-30 19:50:14 +02:00
Tat Dat Duong
5804e788d8
Add docs
2025-04-30 19:46:14 +02:00
Vadym Barda and GitHub
aa9651910c
docs: set package-mode to false for pyproject ( #4477 )
2025-04-30 12:09:18 -04:00
Sydney Runkle and GitHub
49c10a9188
packaging: removing pydantic v1 support ( #4448 )
...
Also moving over any logic from `langchain-core` to here as we slowly
drop `langchain-core` dependency.
Pydantic v1 is no longer undergoing active maintenance and v2 has been
out for almost 2 years, so it seems like an appropriate time to drop v1
scar tissue.
2025-04-30 09:10:47 -04:00
Tat Dat Duong
1b6e12ef14
feat(ui): add merge option to UI messages
2025-04-30 11:52:47 +02:00
David Duong and GitHub
a7090ef983
release(sdk): Python 0.1.64 & JS (0.0.71) ( #4471 )
2025-04-30 10:40:29 +02:00
Tat Dat Duong
20b9b8b1d7
release(sdk): Python 0.1.64 & JS (0.0.71)
2025-04-30 10:33:52 +02:00
William Fu-Hinthorn
91de85a8e6
fix test
2025-04-29 15:55:54 -07:00
David Duong and GitHub
1ec6efab52
fix(sdk-js): avoid sending run metadata in UI messages ( #4467 )
2025-04-30 00:41:12 +02:00
Tat Dat Duong
d0a70a15a8
fix(sdk-js): avoid sending run metadata in UI messages
2025-04-30 00:34:22 +02:00
Sydney Runkle
ef1e1659c6
conditional for config
2025-04-29 18:22:18 -04:00
Sydney Runkle
c712e09fbc
conditional for config
2025-04-29 18:17:33 -04:00
Vadym Barda and GitHub
e25dde1df0
docs(reference): filter class methods and add missing docstrings ( #4463 )
2025-04-29 21:31:57 +00:00
Eugene Yurtsev and GitHub
0bfb818e87
docs: process cell magics ( #4462 )
...
Handle a small thing that can be fairly confusing to new python users.
Before:

After:

2025-04-29 17:13:46 -04:00
d86d0a9311
fix(langgraph): missing conditional edge on get_graph() ( #4458 )
...
Co-authored-by: Nuno Campos <nuno@langchain.dev >
2025-04-29 19:49:48 +00:00
Eugene Yurtsev and GitHub
dbceb3c2e6
docs: remove non directive to stop indexing output code blocks (it doesn't work) ( #4461 )
...
This directive seems to have no effect on code blocks: `{
mkdocs-exclude-search }`. Removing it for now.
2025-04-29 15:46:29 -04:00
Sydney Runkle
80dca9b9a5
removing remaining v1 logic
2025-04-29 15:11:37 -04:00
Vadym Barda and GitHub
ea55c2d468
docs: simplify docstring / API reference for create_react_agent ( #4457 )
2025-04-29 18:52:43 +00:00
Eugene Yurtsev and GitHub
8dd95a450b
docs: strip ansi and exclude outputs from search ( #4460 )
...
# Changes
* Strip ANSI codes from outputs
* Exclude outputs from search (relies on an insiders feature, so can't
test locally)
## ANSI Changes
Before

After

2025-04-29 14:50:07 -04:00
Sydney Runkle
da0994b741
removing langchain-core pydantic utilities
2025-04-29 14:31:28 -04:00
Vadym Barda and GitHub
80a74a879c
docs: expose supervisor, swarm & MCP in the API reference ( #4446 )
2025-04-29 17:59:42 +00:00
Eugene Yurtsev and GitHub
7170a9f0f4
docs: apply boosts and tag a few things ( #4455 )
...
Manual pass to apply a few heuristics:
* Boost conceptual pages
* Deboost (is that a word?) index pages that list all content
* Prefer Agents pages if search query contains the word "agent"
* Add tags for a few selected pages
2025-04-29 13:56:57 -04:00
Sydney Runkle
64cfbb0d02
remove v1 test
2025-04-29 13:51:45 -04:00
langchain-infra and GitHub
11b472e876
chore: update eu ips for new cluster ( #4454 )
2025-04-29 10:54:48 -04:00
infra
5d831726a3
chore: update eu ips for new cluster
2025-04-29 10:50:31 -04:00
David Duong and GitHub
9ffa6371e0
feat(sdk-js): add onLangChainEvent and onDebugEvent to useStream ( #4453 )
2025-04-29 15:40:09 +02:00
David Duong and GitHub
4d1e5ab71f
feat(sdk-js): pass the client instead of apiKey/apiUrl ( #4452 )
2025-04-29 15:38:47 +02:00
Sydney Runkle and GitHub
c0d6524ec7
release: v0.4.0 ( #4447 )
2025-04-29 09:35:04 -04:00
Tat Dat Duong
8ad5331c89
feat(sdk-js): add onLangChainEvent and onDebugEvent to useStream
2025-04-29 15:34:03 +02:00
Tat Dat Duong
cc62a9fa33
feat(sdk-js): pass the client instead of apiKey/apiUrl
2025-04-29 15:17:55 +02:00
David Duong and GitHub
b7482a6f6a
fix(docs): Studio troubleshooting docs ( #4449 )
2025-04-29 11:59:39 +02:00
Tat Dat Duong
d4df2bd807
fix(docs): Studio troubleshooting docs
2025-04-29 11:58:52 +02:00
Sydney Runkle
e99028cfc6
what would it look like to remove pydantic v1 support?
2025-04-28 21:44:17 -04:00
Sydney Runkle
6250b364f7
version bumps and locks
2025-04-28 17:39:20 -04:00
William FH and GitHub
062253fe48
Add examples of configurable headers ( #4445 )
2025-04-28 12:52:06 -07:00
Sydney Runkle and GitHub
fc0d08328d
langgraph: fix bug + add test for multi resume ( #4444 )
...
Fine if command is "empty" as we don't add writes for mapped resumes.
2025-04-28 15:48:33 -04:00
Sydney Runkle
2bf8e690b0
test + bug fix
2025-04-28 15:41:37 -04:00
Vadym Barda and GitHub
11c6a54de9
docs: small update in the manage message history how to ( #4442 )
2025-04-28 13:22:52 -04:00
Nuno Campos and GitHub
78581b80c2
Support multiple resume values with Command.resume ( #4406 )
...
* Adding support for mapping interrupt ids -> resume values with the
`Command.resume_map` argument, like:
```py
resume_map = {
i.interrupt_id: f"human input for prompt {i.value}"
for i in parent_graph.get_state(thread_config).interrupts
}
parent_graph.invoke(Command(resume=resume_map), config=thread_config)
```
* Adds an `interrupts` attribute on `StateSnapshot` so that we can
access that directly rather than having to do
`get_state(thread_config).tasks` and then iterate over tasks to find
interrupts
* Deprecates undocumented feature where (if interrupting a graph from
the level of an interrupt), you could pass a dict mapping task ids ->
resume values. Now we recommend and endorse the `interrupt_id` approach
above.
I'll note, from an internal perspective, I would love if we didn't have
to pass around this map, but it seems like the best way right now to
make the necessary resume information necessary at different levels in a
graph with subgraphs.
Fix https://github.com/langchain-ai/langgraph/issues/4028
Slotted to be included in our v0.4.0 release early next week!
2025-04-28 09:06:58 -07:00
vbarda
78f809bc52
update other tests
2025-04-28 12:02:23 -04:00
Sydney Runkle
5fee0d9d66
skip yielding interrupt if input was a map
2025-04-28 11:47:51 -04:00
William FH and GitHub
68e3d70967
Add section in how-to on exclusions ( #4441 )
2025-04-28 08:42:32 -07:00
William FH and GitHub
dc9f2b1109
Add how-to on headers ( #4440 )
...
and their configurability for configurability
2025-04-28 15:31:48 +00:00
William FH and GitHub
67aeba6210
Add schema updates for the configurable headers ( #4437 )
2025-04-28 15:10:07 +00:00
vbarda
4b7ec256e9
prebuilt: switch to executing parallel tool calls via Send by default
2025-04-28 11:07:27 -04:00
Sydney Runkle
dbf1c28ccd
lint
2025-04-28 10:22:30 -04:00
Sydney Runkle
cb25ef985d
update loop to append mapped tasks to task specific values
2025-04-28 10:18:39 -04:00
Sydney Runkle and GitHub
2f49ebfd53
packaging: Remove Python Upper Bounds ( #4416 )
...
A few notes:
* We shouldn't be using `tool.poetry.dependencies`, that's deprecated -
waiting for a future PR to address this big change though.
* We should remove upper bounds for all deps unless strictly necessary.
2025-04-28 10:03:43 -04:00
David Duong and GitHub
d9c781cc7d
feat(js): add message-specific fallback UI components ( #4430 )
2025-04-28 12:17:07 +02:00
David Duong and GitHub
66af72acb3
fix(sdk-js): remove client-only bootstrapping warning ( #4428 )
2025-04-28 12:05:43 +02:00
Tat Dat Duong
a44d822cd3
feat(js): add message-specific fallback UI components
2025-04-28 12:03:58 +02:00
Tat Dat Duong
28d884b37a
fix(sdk-js): remove client-only bootstrapping warning
2025-04-28 11:52:26 +02:00
William FH and GitHub
d7a0da8f06
checkpointer: Enter stack for blobs dict in InMemorySaver ( #4419 )
2025-04-26 13:57:36 -07:00
Vadym Barda and GitHub
2d9347ec33
docs(cloud): update human-in-the-loop guides to use interrupt() ( #4418 )
2025-04-26 13:37:06 -04:00
Sydney Runkle
5e9bea5134
no upper bounds for python
2025-04-25 17:45:54 -07:00
Sydney Runkle and GitHub
5ddc24ba85
Merge branch 'main' into multi-resumes
2025-04-25 17:05:35 -07:00
Sydney Runkle
0362840d0b
revert debugging note"
...
"
2025-04-25 17:00:26 -07:00
Sydney Runkle
44099d27c8
fixing tests
2025-04-25 16:53:37 -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
Sydney Runkle
50449af1a9
add convenient interrupt access to StateSnapshot
2025-04-24 14:52:54 -07:00
Sydney Runkle
c2fa33e055
linting etc
2025-04-24 13:28:29 -07:00
Sydney Runkle
644a6c3b63
use resume instead of resume_map and deprecate old mapping task_id -> resume logic
2025-04-24 13:26:01 -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
Sydney Runkle
847b9c13ac
adding docs example
2025-04-24 12:36:35 -07:00
Sydney Runkle
b6963d35aa
multi hitl with new hash pattern
2025-04-24 11:21:25 -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 )
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 )
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
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
Sydney Runkle and GitHub
a8b70cb23c
Merge branch 'main' into sr/better-interrupts
2025-04-22 13:48:03 -07:00
Sydney Runkle and GitHub
173627a94c
langgraph[lint]: Upgrade to Python 3.9+ syntax ( #4368 )
...
Also added "UP" (pyupgrade) rule to `pyproject.toml`
2025-04-22 13:47:18 -07:00
Sydney Runkle
edd7d608cd
final linting
2025-04-22 13:40:53 -07:00
Sydney Runkle
8977a35060
linting post merge
2025-04-22 13:01:40 -07:00
Sydney Runkle and GitHub
0a6e5a18bb
Merge branch 'main' into pyupgrade-39
2025-04-22 12:30:53 -07:00
Sydney Runkle
abc6323c6c
Merge branch 'sr/better-interrupts' of https://github.com/langchain-ai/langgraph into sr/better-interrupts
2025-04-22 11:39:24 -07:00
Sydney Runkle
d5a1bb05f5
revert changes to lockfile
2025-04-22 11:35:56 -07:00
Sydney Runkle
8506c6655b
more linting
2025-04-22 11:34:38 -07:00
Sydney Runkle and GitHub
44af4d8e3e
Merge branch 'main' into sr/better-interrupts
2025-04-22 11:31:46 -07:00
Sydney Runkle
8e6c0be48a
try linting + maybe test fix
2025-04-22 11:28:09 -07:00
Sydney Runkle
35523f4081
linting
2025-04-22 10:34:24 -07:00
Sydney Runkle
9a7b1fa12a
initial pass - surfacing interrupts for stream_mode='values'
2025-04-22 10:15:19 -07:00
Nuno Campos and GitHub
71bf2f9e85
Rewrite graph drawing logic ( #4354 )
...
- It now executes the same pregel algo as when the graph is executed
(without running any user code in nodes or conditional edges) to
discover all the edges
- This means we now support drawing the graph for all Pregel instances,
not just StateGraph
- This is done in preparation for new edge/node type coming in separate
PR
- Known changes
- custom labels on conditional edges to END are no longer displayed
2025-04-22 09:31:13 -07:00
Nuno Campos
b03c647677
Lint
2025-04-22 08:45:50 -07:00
Nuno Campos
5d49188d3e
Lint
2025-04-22 08:41:51 -07:00
Nuno Campos
deeb2d6e92
Fix
2025-04-22 08:36:42 -07:00
Nuno Campos
0db67d4196
Fix
2025-04-22 08:36:42 -07:00
Nuno Campos
56c9c210c3
Fix
2025-04-22 08:36:42 -07:00
Nuno Campos
3398715258
Rewrite graph drawing logic
...
- It now executes the same pregel algo as when the graph is executed (without running any user code in nodes or conditional edges) to discover all the edges
- This means we now support drawing the graph for all Pregel instances, not just StateGraph
2025-04-22 08:36:41 -07:00
William Fu-Hinthorn
38d806733d
Update site_description
...
Signed-off-by: William Fu-Hinthorn <13333726+hinthornw@users.noreply.github.com >
2025-04-22 08:18:10 -07:00
William FH and GitHub
86ddd8da10
Add docs on tunneling ( #4371 )
...
Signed-off-by: William Fu-Hinthorn <13333726+hinthornw@users.noreply.github.com >
2025-04-22 15:04:04 +00:00
William FH and GitHub
a5f5d0c4df
Expose --tunnel flag to dev command ( #4370 )
...
Signed-off-by: William Fu-Hinthorn <13333726+hinthornw@users.noreply.github.com >
2025-04-22 14:23:09 +00:00
Sydney Runkle
cba7d21732
fix tests?
2025-04-21 21:14:14 -07:00
Sydney Runkle
b6ea73ff24
linting for 3.12
2025-04-21 21:01:27 -07:00
Sydney Runkle
1a477e57ff
upgrade to py39 standards
2025-04-21 20:43:40 -07:00
lc-arjun and GitHub
7486adabdf
fix: threads search sorting defaults ( #4365 )
...
Removes default from https://github.com/langchain-ai/langgraph/pull/4362
2025-04-21 20:49:16 -04:00
William FH and GitHub
12ad47e4e8
Use model_validate if needed ( #4363 )
...
If the state schema uses validators, skip the model construct
optimization.
For context, pydantic state can be significantly slower to run than
typed dict and dataclass states due to the full recursive validation.
We have some optimizations to reduce the impact of this (using cached
validators with model_construct), but this doesn't handle things like
field_validator.
We prefer correctness over performance, obviously.
Resolves: https://github.com/langchain-ai/langgraph/issues/4074
Signed-off-by: William Fu-Hinthorn <13333726+hinthornw@users.noreply.github.com >
2025-04-21 21:53:58 +00:00
lc-arjun and GitHub
90f7f776cf
feat: threads sorting sdk spec ( #4362 )
2025-04-21 14:42:43 -07:00
William FH and GitHub
c7306f7aed
Add log json env var ( #4348 )
2025-04-18 20:44:50 +00:00
William FH and GitHub
20bd71e289
Bump lockfile ( #4346 )
2025-04-18 08:43:58 -07:00
William Fu-Hinthorn
283485753f
Format notebook
2025-04-18 08:35:31 -07:00
ba7f9975fa
Fix text fields naming ( #4345 )
...
The configuration expects the key "fields", not "text_fields": I had
failed to update across all implementations in the original PR
Thank you to Vincent Min for the fix!
---------
Co-authored-by: Vincent Min <93780551+VMinB12@users.noreply.github.com >
2025-04-18 08:21:46 -07:00
David Duong and GitHub
8c4904bee9
fix(sdk-js): make sure to wrap client component in UseStreamContext ( #4338 )
2025-04-18 01:08:38 +02:00
Tat Dat Duong
6bb06b8702
fix(sdk-js): make sure to wrap client component in UseStreamContext
2025-04-18 01:07:13 +02:00
Vadym Barda and GitHub
7a16e33833
docs: fix notebook runner ( #4337 )
2025-04-17 22:43:41 +00:00
David Asamu
f94eeabebd
add doc for REDIS_CLUSTER env var
2025-04-17 23:20:53 +01:00
Asamu David and GitHub
9e22a75423
Merge branch 'main' into da/4-17/add-redis-prefix-support
2025-04-17 22:30:10 +01:00
Vadym Barda and GitHub
3da5c73a04
checkpoint-postgres: release 2.0.20 ( #4335 )
2025-04-17 17:08:18 -04:00
David Asamu
e0da491fe6
docs: Add docs for REDIS_KEY_PREFIX env var
2025-04-17 21:38:41 +01:00
David Duong and GitHub
e818f83a92
feat(cli): add internal docker tag support ( #4333 )
2025-04-17 22:32:31 +02:00
Tat Dat Duong
e478a8deb9
Update schema
2025-04-17 22:25:47 +02:00
Tat Dat Duong
4bbdfbf381
Cleanup
2025-04-17 22:23:44 +02:00
Tat Dat Duong
db1fbe74cc
Revert args
2025-04-17 22:22:43 +02:00
Tat Dat Duong
01ce86ad9b
Bump to 0.2.5
2025-04-17 22:21:42 +02:00
Tat Dat Duong
d5f73fe37b
Add tests
2025-04-17 22:21:23 +02:00
Tat Dat Duong
5a200cd89e
feat(cli): add internal docker tag support
2025-04-17 22:15:10 +02:00
Nuno Campos
6082bcf8d3
0.3.31
2025-04-17 10:01:29 -07:00
18a9ae45f3
Add delete_thread method to Checkpointer class ( #4328 )
...
- Deletes all data associated with a thread_id
- Implemented in InMemory, Sqlite and Postgres checkpointers
Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com >
2025-04-17 16:38:58 +00:00
Vadym Barda and GitHub
83bf004ad7
docs: remove old prebuilt file ( #4330 )
2025-04-17 12:10:32 -04:00
Vadym Barda and GitHub
72114c6c33
docs: add missing prebuilt file ( #4329 )
2025-04-17 12:01:32 -04:00
88b57df15b
docs: add agents section ( #4189 )
...
Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com >
2025-04-17 11:53:05 -04:00
Daehwi Kim and GitHub
abfb88e5d7
fix(docs): fix typo ( #4320 )
...
Correct a typo in documentation: 'thedocker' changed to 'the docker'
2025-04-17 11:19:58 -04:00
Vadym Barda and GitHub
49f063e076
langgraph: update min bound for prebuilt ( #4319 )
2025-04-17 13:19:31 +00:00
William FH and GitHub
30f9bcd8de
Make docstring even less ambiguous ( #4308 )
2025-04-16 23:39:04 +00:00
David Duong and GitHub
6ee112851c
fix(cli): only render progress when in TTY ( #4299 )
...
Prevents logging terminal clear commands in non-TTY environments
(LangSmith / CI)
2025-04-16 23:41:35 +02:00
Tat Dat Duong
960f612dd7
Bump to 0.2.4
2025-04-16 23:34:54 +02:00
Tat Dat Duong
43af618bb5
Remove negation
2025-04-16 23:28:07 +02:00
Tat Dat Duong
9b87b45322
retrigger checks
2025-04-16 22:33:58 +02:00
David Duong and GitHub
39adc05357
fix(docs): fix typo ( #4301 )
2025-04-16 22:29:00 +02:00
Tat Dat Duong
c5ac80d2f0
fix(docs): fix typo
2025-04-16 22:28:27 +02:00
Tat Dat Duong
2fc941c1df
fix(cli): only render progress when in TTY
...
Prevents logging terminal clear commands in non-TTY environments (LangSmith / CI)
2025-04-16 21:25:21 +02:00
Vadym Barda and GitHub
7bafc5dd36
docs: add more prominent workflows link ( #4297 )
2025-04-16 18:29:54 +00:00
David Duong and GitHub
c78588b995
feat(sdk-js): export more useStream types, allow loopback clients using globals ( #4295 )
2025-04-16 17:14:25 +02:00
Tat Dat Duong
ecb15acb80
feat(sdk-js): export more useStream types, allow loopback clients using globals
2025-04-16 17:10:44 +02:00
Nuno Campos and GitHub
07ba931105
Stringify thread_id when of a different type ( #4281 )
2025-04-15 17:07:26 -07:00
Nuno Campos
88ccde6274
Same in get/update state/history
2025-04-15 17:01:01 -07:00
Nuno Campos
5cca153b72
Fix
2025-04-15 16:52:52 -07:00
HeardACat and GitHub
63ebb3a846
docs: rename parallel_workflow --> prompt_chaining_workflow ( #4283 )
...
Make the docs clearer within the prompt chaining section
2025-04-15 17:38:39 -04:00
Nuno Campos
48c08421fa
Stringify thread_id when of a different type
2025-04-15 12:51:33 -07:00
William FH and GitHub
cd967c40ac
Add function templates ( #4270 )
2025-04-15 11:51:20 -07:00
Andrew Nguonly and GitHub
854b76addd
docs: Update LangGraph Platform autoscaling docs ( #4268 )
2025-04-14 15:55:07 -07:00
Vadym Barda and GitHub
73b3535c4d
langgraph: release 0.3.30 ( #4267 )
2025-04-14 17:05:10 -04:00
Nuno Campos and GitHub
3e0629c56c
langgraph: support streaming messages from Command.update ( #4250 )
2025-04-14 12:25:20 -07:00
vbarda
04dd69b1cd
simplify
2025-04-14 14:53:08 -04:00
Nuno Campos and GitHub
ff22eb6495
langgraph: handle pydantic updates consistently in Command ( #4255 )
...
Fixes https://github.com/langchain-ai/langgraph/issues/3950
2025-04-14 11:47:22 -07:00
vbarda
07ca03ff15
lower depth
2025-04-14 14:12:40 -04:00
William FH and GitHub
6eea15ec3b
Add store in platform ( #4266 )
2025-04-14 17:52:14 +00:00
vbarda
0e111b2f44
3.9
2025-04-14 13:23:26 -04:00
vbarda
b526fe0a4b
set max recursion depth
2025-04-14 13:21:00 -04:00
vbarda
062bf4d717
Merge branch 'vb/fix-command-messages' of github.com:langchain-ai/langgraph into vb/fix-command-messages
2025-04-14 13:20:48 -04:00
vbarda
173f4f6ccf
Merge branch 'main' into vb/fix-command-messages
2025-04-14 13:13:49 -04:00
Vadym Barda and GitHub
9a45a5b0f2
Merge branch 'main' into vb/pydantic-command
2025-04-14 13:06:22 -04:00
vbarda
2c557e9e46
move to fields
2025-04-14 13:00:03 -04:00
William FH and GitHub
6c34e599ab
Re-warn for omitted nav ( #4265 )
2025-04-14 09:56:41 -07:00
vbarda
d4224a7abb
Merge branch 'main' into vb/pydantic-command
2025-04-14 12:56:22 -04:00
Andrew Nguonly and GitHub
c700dab97c
docs: Add docs for LANGSMITH_TRACING env var ( #4257 )
2025-04-13 15:33:44 -07:00
vbarda
704b78b8fe
tests
2025-04-12 10:45:10 -04:00
vbarda
2ed453debe
factor out util
2025-04-12 10:34:02 -04:00
Nuno Campos
62b2580ad5
0.3.29
2025-04-11 16:21:09 -07:00
Nuno Campos
dfbf0ddbcb
Don't run branch reader in bg thread
2025-04-11 16:20:45 -07:00
Nuno Campos and GitHub
41bb20ee5e
Reduce perf impact of set_context ( #4256 )
...
- call it less often
- find the run from the run manager at callsite
2025-04-11 15:32:42 -07:00
Nuno Campos
560d6a1f65
Reduce perf impact of set_context
...
- call it less often
- find the run from the run manager at callsite
2025-04-11 15:01:17 -07:00
vbarda
dc6fa9ed30
langgraph: handle pydantic updates consistently in Command
2025-04-11 17:51:56 -04:00
Andrew Nguonly and GitHub
a9be75f745
docs: Add Data Plane features sections for custom Postgres/Redis, tracing, telemetry, and licensing ( #4254 )
2025-04-11 14:48:20 -07:00
Nuno Campos and GitHub
20e3469296
Merge branch 'main' into vb/fix-command-messages
2025-04-11 14:27:26 -07:00
233cca1357
Update langgraph_platform.md ( #4251 )
...
Co-authored-by: Catherine <catherine@langchain.dev >
2025-04-11 15:29:11 -04:00
Andrew Nguonly and GitHub
d1ac0a0e13
docs: Add alpha and beta labels for respective LangGraph Platform deployment options ( #4249 )
...
### Summary
Examples:



2025-04-11 12:01:43 -07:00
vbarda
5071a6cd97
langgraph: support streaming messages from Command.update
2025-04-11 14:05:13 -04:00
Nuno Campos and GitHub
72d7b23638
Use tuple entry for control branch ( #4248 )
2025-04-11 10:29:44 -07:00
Nuno Campos
64aa1e6cd8
Use tuple entry for control branch
2025-04-11 09:53:54 -07:00
Nuno Campos and GitHub
d6f2f0c90d
Simplify path for control branch attached to every node ( #4247 )
...
- attached to every node to handle command/send return values
- used to be a full blown conditional edge, can be simpler by doing all
of it in a single function
2025-04-11 09:44:18 -07:00
Nuno Campos
5a7edead8c
Lint
2025-04-11 09:20:10 -07:00
Nuno Campos
8ff5c43cf0
Avoid creating contexts for control branches
2025-04-11 09:10:58 -07:00
Nuno Campos and GitHub
0eb32a4251
Avoid validating node input more than once per superstep ( #4242 )
2025-04-11 09:06:07 -07:00
Nuno Campos
3d12a2df59
Simplify path for control branch attached to every node
...
- attached to every node to handle command/send return values
- used to be a full blown conditional edge, can be simpler by doing all of it in a single function
2025-04-11 09:00:16 -07:00
Nuno Campos
04d3c9d30f
Use cache in attach_branch too
2025-04-11 08:38:14 -07:00
David Duong and GitHub
cddcf35c09
fix(cli): invert assumed python_version / js_version check ( #4245 )
2025-04-11 16:49:46 +02:00
Tat Dat Duong
5eefc1d55d
fix(cli): invert assumed python_version / js_version check
2025-04-11 16:38:26 +02:00
Vadym Barda and GitHub
c9d4f1d77d
langgraph: release 0.3.28 ( #4243 )
2025-04-10 21:17:25 -04:00
Vadym Barda and GitHub
1e2888ce39
langgraph: allow passing a list of retry policies ( #4240 )
...
* support passing `retry=(RetryPolicy(...), RetryPolicy())`
* fix bugs with `default_retry_on` and backoff calculation
* add tests
2025-04-10 21:16:27 -04:00
Nuno Campos
4d1b3370df
Lint
2025-04-10 17:38:25 -07:00
Nuno Campos
bf5017f6e0
Lint
2025-04-10 17:29:36 -07:00
Nuno Campos
64086aa814
Avoid validating node input more than once per superstep
2025-04-10 17:28:00 -07:00
David Duong and GitHub
2a7d48582f
release(cli): 0.2.2 ( #4241 )
2025-04-11 01:40:35 +02:00
Tat Dat Duong
b7bd87a063
release(cli): 0.2.2
2025-04-11 01:34:08 +02:00
David Duong and GitHub
2a825cc0e0
feat(cli): add multiplatform support ( #4239 )
...
- Uses new `install-node.sh` script already used for Python Gen UI
- Add default `node_version` / `python_version` based on provided
`graphs`
Closes #4115
2025-04-11 01:32:27 +02:00
Tat Dat Duong
436902e5a3
Consolidate node_version and python_version fix
2025-04-11 01:04:26 +02:00
Tat Dat Duong
0ac6a96c6e
Fix up
2025-04-11 00:41:16 +02:00
Tat Dat Duong
d9856d92af
Another 3.9 fix
2025-04-11 00:09:34 +02:00
Tat Dat Duong
b3487cbc49
Fix Python 3.9
2025-04-11 00:06:31 +02:00
Tat Dat Duong
d06075cbcf
Fix new style config
2025-04-11 00:04:44 +02:00
Tat Dat Duong
e0be9ae2ef
feat(cli): add multiplatform support
...
Uses new `install-node.sh` script already used for Python Gen UI, add default `node_version` / `python_version` based on provided `graphs`
2025-04-10 23:52:49 +02:00
Vadym Barda and GitHub
19cfe3a0a9
docs: fix title ( #4238 )
2025-04-10 17:17:36 -04:00
David Duong and GitHub
99a87abaa5
feat(docs): update typedoc references for auth ( #4236 )
2025-04-10 21:29:19 +02:00
William FH and GitHub
a03cb0b16d
CLI: Ensure correct api version is used ( #4237 )
...
Signed-off-by: William Fu-Hinthorn <13333726+hinthornw@users.noreply.github.com >
2025-04-10 15:56:07 +00:00
Tat Dat Duong
4be86b2a51
feat(docs): update typedoc references for auth
2025-04-10 17:03:03 +02:00
David Duong and GitHub
06e660a845
chore(docs,cli): remove python-only label for custom auth, add test for custom auth in CLI ( #4233 )
2025-04-10 16:02:12 +02:00
Tat Dat Duong
794dc1ae92
docs(api): add custom auth docs
2025-04-10 15:06:55 +02:00
Tat Dat Duong
6e7bfecbbc
chore(docs,cli): remove python-only label for custom auth, add test for custom auth in CLI
2025-04-10 14:34:52 +02:00
fa080ea689
updates prereq banner ( #4220 )
...
<img width="796" alt="Screenshot 2025-04-09 at 1 20 14 PM"
src="https://github.com/user-attachments/assets/fe7409ed-c4cb-42d1-9e34-5adf4ca237e7 "
/>
---------
Co-authored-by: Vadym Barda <vadim.barda@gmail.com >
2025-04-09 20:22:36 -04:00
David Duong and GitHub
9fb06fc5af
feat(sdk-js): use event key instead of action, prevent retrying on HTTP 409 ( #4223 )
2025-04-10 01:54:54 +02:00
Tat Dat Duong
5debbb23ca
feat(sdk-js): use event key instead of action, clean up interfaces
2025-04-10 01:52:44 +02:00
Nuno Campos and GitHub
7dcc760fd8
Validate other types in model_construct ( #4200 )
...
Resolves:
https://github.com/langchain-ai/langgraph/issues/4184
https://github.com/langchain-ai/langgraph/issues/4198 <- tested on
python 3.9 and 3.10
2025-04-09 15:58:11 -07:00
Vadym Barda and GitHub
fdb9b9b8e0
checkpoint-postgres: add deprecation warning for ShallowPostgresSaver ( #4219 )
2025-04-09 11:31:33 -04:00
William FH and GitHub
2f51a15064
Update CLI ( #4213 )
2025-04-08 19:23:59 -07:00
Nuno Campos and GitHub
d2acacfc8f
Merge branch 'main' into wfh/_validate_more
2025-04-08 18:03:19 -07:00
Nuno Campos and GitHub
622a15b89e
Remove pip from image ( #4208 )
...
After user installs, removes pip, setuptools, and wheel from the
resulting image.
2025-04-08 18:01:24 -07:00
Nuno Campos and GitHub
bf50938de5
Update poetry version used in ci ( #4212 )
2025-04-08 18:00:28 -07:00
Nuno Campos
d67a500cd9
Fix
2025-04-08 17:57:09 -07:00
Nuno Campos
c6f5e561ec
Update poetry version used in ci
2025-04-08 17:52:24 -07:00
William FH and GitHub
288fe12933
docs: Fix link ( #4211 )
2025-04-08 17:31:00 -07:00
William Fu-Hinthorn
5b58efc8d7
Update tests
2025-04-08 17:08:24 -07:00
David Duong and GitHub
2e1e582991
feat(sdk-js): add support for registering multiple events at once ( #4209 )
2025-04-09 01:58:49 +02:00
Tat Dat Duong
72260e64d5
Prevent casting
2025-04-09 01:57:50 +02:00
Tat Dat Duong
3193f5d063
feat(sdk-js): add support for registering multiple events at once
2025-04-09 01:56:32 +02:00
William Fu-Hinthorn
1b9093459c
Remove pip from image
...
Signed-off-by: William Fu-Hinthorn <13333726+hinthornw@users.noreply.github.com >
2025-04-08 15:52:58 -07:00
Nuno Campos
392805938e
0.3.27
2025-04-08 15:04:46 -07:00
Nuno Campos and GitHub
4fb2aeacc7
Add checkpoint_during arg ( #4169 )
...
- This provides a new mode of execution where only the last checkpoint
is saved
- We save the last checkpoint no matter how the agent run is terminated
(success, error, interrupt, etc)
- This cuts down on cpu time spent on checkpointing, while not losing
any resilience benefits, given individual task writes are still saved
- If an error occurs and the run is retried, any tasks that completed
successfully before will be skipped (as currently)
- checkpoint_during=True is useful when you want to time-travel to inner
steps of a run
- The default value will remain the current behavior, ie.
checkpoint_during=True
2025-04-08 15:03:06 -07:00
David Duong and GitHub
8252668bcc
release(sdk-js): 0.0.64 ( #4207 )
2025-04-08 23:46:23 +02:00
Tat Dat Duong
27e4b0fcfe
release(sdk-js): 0.0.64
2025-04-08 23:45:03 +02:00
David Duong and GitHub
ba388e25b3
feat(sdk-js): add auth types ( #4199 )
2025-04-08 23:44:33 +02:00
Nuno Campos
947a233fc5
Fix
2025-04-08 14:20:29 -07:00
Nuno Campos
b76dc8ae0a
Fix
2025-04-08 14:15:13 -07:00
Nuno Campos
cbbfaba1fd
Add comments
2025-04-08 14:07:08 -07:00
Nuno Campos
e9aec77893
Add more tests
2025-04-08 14:07:02 -07:00
William FH
44691b69a3
Merge branch 'main' into wfh/_validate_more
...
Signed-off-by: William Fu-Hinthorn <13333726+hinthornw@users.noreply.github.com >
2025-04-08 13:57:37 -07:00
Nuno Campos and GitHub
067c4dd246
Implement simpler filtering of config keys in RemoteGraph ( #4205 )
2025-04-08 13:51:11 -07:00
Nuno Campos
ccc21974e0
Implement simpler filtering of config keys in RemoteGraph
2025-04-08 13:44:31 -07:00
Nuno Campos and GitHub
a6e66746f7
Make compatible with langchain-core 0.1 by conditionally importing _StreamingCallbackHandler ( #4203 )
2025-04-08 13:28:01 -07:00
Vadym Barda and GitHub
3a17df6106
langgraph: release 0.3.26 ( #4204 )
2025-04-08 14:53:10 -04:00
William Fu-Hinthorn
52c2837e42
Lint & handle arb types
...
Test on pydantic < 2
Signed-off-by: William Fu-Hinthorn <13333726+hinthornw@users.noreply.github.com >
2025-04-08 11:49:37 -07:00
Nuno Campos
cee6a450dc
Lint
2025-04-08 10:52:28 -07:00
Nuno Campos
0b3bf37a55
Fix the rest
2025-04-08 10:47:55 -07:00
Nuno Campos and GitHub
305a676675
langgraph: raise GraphInterrupt only if used as a subgraph ( #4202 )
2025-04-08 10:45:45 -07:00
Nuno Campos
5b73e38c38
Make compatible with langchain-core 0.1 by conditionally importing _StreamingCallbackHandler
2025-04-08 10:44:12 -07:00
vbarda
41fb5ec77c
Revert "add warning"
...
This reverts commit cff349e22e .
2025-04-08 13:38:49 -04:00
vbarda
cff349e22e
add warning
2025-04-08 13:34:47 -04:00
vbarda
8f32fc4819
update tests
2025-04-08 13:28:35 -04:00
vbarda
5690555394
langgraph: raise GraphInterrupt only if used as a subgraph
2025-04-08 12:51:36 -04:00
William Fu-Hinthorn
933d6aa8f5
Validate types.
...
My be too slow though. V1 handling is ugly.
Signed-off-by: William Fu-Hinthorn <13333726+hinthornw@users.noreply.github.com >
2025-04-08 09:31:54 -07:00
Tat Dat Duong
7d5621a84f
Default type for TExtra
2025-04-08 17:10:43 +02:00
Tat Dat Duong
5f1213a1c7
Remove extra
2025-04-08 17:07:04 +02:00
Tat Dat Duong
a98f9542fa
Add unused extra generic for future typing of metadata
2025-04-08 17:06:51 +02:00
William Fu-Hinthorn
d2e854b04f
Merge branch 'main' into wfh/_validate_more
2025-04-08 06:34:38 -07:00
William FH and GitHub
c5b118a672
Add admonitions about managed checkpointers ( #4197 )
...
If you're deploying with langgraph API, you don't need to manually
define a checkpointer. For folks who already know they'll be developing
with the api server, I'd like to save everyone time by making this more
clear in the docs on checkpointing.
2025-04-08 12:16:24 +00:00
Tat Dat Duong
aee39605e0
Add missing types
2025-04-08 14:13:59 +02:00
lc-arjun and GitHub
72bec9161a
Release js sdk 0.0.63 ( #4192 )
2025-04-07 18:40:59 -07:00
Nuno Campos and GitHub
ae17e77522
feat: add assistant description to js sdk ( #4191 )
2025-04-07 18:37:49 -07:00
Arjun Natarajan
a96fc75c55
add assistant description to js sdk
2025-04-07 21:06:34 -04:00
Nuno Campos
d541ed90d5
Save Sends unconditionally
2025-04-07 16:45:26 -07:00
William Fu-Hinthorn
7d7708fe42
Validate more
2025-04-07 11:29:32 -07:00
Tat Dat Duong
c757247858
feat(sdk-js): add auth types
2025-04-07 20:29:14 +02:00
Nuno Campos
5a0228cb13
Add test
2025-04-04 16:00:28 -07:00
Nuno Campos
4abfc7702d
Subgraphs inherit checkpoint mode
2025-04-04 16:00:22 -07:00
Nuno Campos
a5495e84c8
Add another test
2025-04-04 15:42:11 -07:00
Nuno Campos
4f353dac31
Fix assignment of pending writes
2025-04-04 14:41:10 -07:00
Nuno Campos and GitHub
4c89bb39d4
Add benchmark script for typed dict version of existing wide state benchmark ( #4174 )
...
- to easily compare perf impact of using pydantic, data class, or typed
dict for same workload
2025-04-04 18:37:57 +00:00
Eugene Yurtsev and GitHub
05a4fcc8bb
cli: release 0.1.89 ( #4173 )
...
Release to pick up this: https://github.com/langchain-ai/langgraph/pull/4164
2025-04-04 13:46:47 -04:00
Nuno Campos
7ebd6f5e1f
Better test
2025-04-04 10:01:35 -07:00
Eugene Yurtsev and GitHub
adac016e33
cli: support dict format for graph specification in langgraph.json ( #4164 )
...
Allow the CLI to work with dict format for the graph specification.
```json
{
"dependencies": ["./my_agent"],
"graphs": {
"agent": {
"path": "./my_agent/agent.py:graph",
"description": "this is my agent description"
}
},
"env": ".env"
}
```
And backwards compatible with:
```json
{
"dependencies": ["./my_agent"],
"graphs": {
"agent": "./my_agent/agent.py:graph",
},
"env": ".env"
}
```
2025-04-04 10:16:20 -04:00
Nuno Campos
0a1dd7a01a
Do same thing for writes
2025-04-03 17:31:34 -07:00
Nuno Campos
7e08339335
mypy is dumb
2025-04-03 16:55:23 -07:00
Nuno Campos
e1d4b5552d
Add checkpoint_during arg
...
- This provides a new mode of execution where only the last checkpoint is saved
- We save the last checkpoint no matter how the agent run is terminated (success, error, interrupt, etc)
- This cuts down on cpu time spent on checkpointing, while not losing any resilience benefits, given individual task writes are still saved
- If an error occurs and the run is retried, any tasks that completed successfully before will be skipped (as currently)
- checkpoint_during=True is useful when you want to time-travel to inner steps of a run
- The default value will remain the current behavior, ie. checkpoint_during=True
2025-04-03 16:51:53 -07:00
David Duong and GitHub
2d13904abf
release(langgraph): 0.3.25 ( #4167 )
2025-04-03 22:20:03 +02:00
Tat Dat Duong
dfeb9d3b46
release(langgraph): 0.3.25
2025-04-03 22:12:16 +02:00
David Duong and GitHub
81935a73d8
feat(langgraph): Add UI messages API ( #4157 )
...
Sample usage:
```python
from typing import Annotated, Sequence, TypedDict
from langchain_core.messages import BaseMessage
from langchain_openai import ChatOpenAI
from langgraph.graph import StateGraph
from langgraph.graph.message import add_messages
from langgraph.graph.ui import AnyUIMessage, ui_message_reducer, push_ui_message
class AgentState(TypedDict): # noqa: D101
messages: Annotated[Sequence[BaseMessage], add_messages]
ui: Annotated[Sequence[AnyUIMessage], ui_message_reducer]
async def agent(state: AgentState): # noqa: D103
message = await ChatOpenAI(model="gpt-4o-mini", temperature=0).ainvoke(
state["messages"]
)
# Also directly writes the message to `ui`
push_ui_message("simple", {"hello": "123"}, message=message, state_key="ui")
return {"messages": [message]}
```
2025-04-03 22:10:18 +02:00
Tat Dat Duong
615fc8b4ae
Update naming
2025-04-03 21:58:16 +02:00
William FH and GitHub
13e6f6cbde
Add algolia site verification ( #4165 )
2025-04-03 12:53:40 -07:00
Vadym Barda and GitHub
e89633f30b
prebuilt: release 0.1.8 ( #4161 )
2025-04-03 12:01:18 -04:00
Vadym Barda and GitHub
0bbf5829e8
docs: add a how-to guide for managing message history in create_react_agent ( #4149 )
2025-04-03 16:00:11 +00:00
David Duong and GitHub
7ed5288f8f
release(cli): 0.1.84 ( #4158 )
2025-04-03 15:25:12 +02:00
Tat Dat Duong
cba240e70e
release(cli): 0.1.84
2025-04-03 15:15:52 +02:00
Tat Dat Duong
e9b5046076
Update docs to include Python API
2025-04-03 14:39:45 +02:00
Tat Dat Duong
af6552a17e
Move to langgraph/graph
2025-04-03 14:13:26 +02:00
Tat Dat Duong
e38c30a434
Other docstring changes
2025-04-03 14:13:26 +02:00
Tat Dat Duong
e41dea4cf9
Remove unnecessary return value
2025-04-03 14:13:26 +02:00
Tat Dat Duong
f9f8c19ec4
Update docstrings
2025-04-03 14:13:26 +02:00
Tat Dat Duong
64ab3217f6
Add UI messages API
2025-04-03 14:13:26 +02:00
David Duong and GitHub
9af243d138
feat(cli): pass ui and ui config to inmem server, handle Docker setup for UI ( #4100 )
2025-04-03 14:11:30 +02:00
David Duong and GitHub
3f1d440aee
fix(sdk-js): send accepts any input ( #4099 )
2025-04-03 14:00:31 +02:00
Tat Dat Duong
78901599e6
Add test for UI config
2025-04-03 13:48:14 +02:00
Tat Dat Duong
958c0df2d7
Install Node.js runtime and run the build process to get the UI
2025-04-03 13:48:14 +02:00
Tat Dat Duong
6919de8b3e
feat(cli): pass ui and ui config to inmem server
2025-04-03 13:48:14 +02:00
Nuno Campos and GitHub
e9a66cef46
Update jinja2 dev dep ( #4150 )
2025-04-02 16:02:25 -07:00
Nuno Campos and GitHub
728679e48e
Bump langchain-core from 0.3.0 to 0.3.15 in /libs/checkpoint-sqlite ( #3978 )
...
Bumps [langchain-core](https://github.com/langchain-ai/langchain ) from
0.3.0 to 0.3.15.
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/langchain-ai/langchain/commit/25a103187137077d4331e7153fe119e1c0c3ffb6 "><code>25a1031</code></a>
community: Fix a validation error for MoonshotChat (<a
href="https://redirect.github.com/langchain-ai/langchain/issues/27801 ">#27801</a>)</li>
<li><a
href="https://github.com/langchain-ai/langchain/commit/e4e2aa0b78e6662bb5cebb06b15c19ddbe96ae43 "><code>e4e2aa0</code></a>
core[patch]: update image util err msg (<a
href="https://redirect.github.com/langchain-ai/langchain/issues/27803 ">#27803</a>)</li>
<li><a
href="https://github.com/langchain-ai/langchain/commit/181bcd05778ff08688ea22f8dab81a6bd27501fd "><code>181bcd0</code></a>
core[patch]: Release 0.3.15 (<a
href="https://redirect.github.com/langchain-ai/langchain/issues/27802 ">#27802</a>)</li>
<li><a
href="https://github.com/langchain-ai/langchain/commit/c1e742347f9701aadba8920e4d1f79a636e50b68 "><code>c1e7423</code></a>
core[patch]: rm image loading (<a
href="https://redirect.github.com/langchain-ai/langchain/issues/27797 ">#27797</a>)</li>
<li><a
href="https://github.com/langchain-ai/langchain/commit/ad0387ac97e0c8feee4272f4ed98f0d65bd616ba "><code>ad0387a</code></a>
Improvement [docs] Improve api docs (<a
href="https://redirect.github.com/langchain-ai/langchain/issues/27787 ">#27787</a>)</li>
<li><a
href="https://github.com/langchain-ai/langchain/commit/d9163e7afa0e5e975d36b7482c6a101e5c5dc375 "><code>d9163e7</code></a>
community[docs]: Add content for the Lora adapter in the VLLM page. (<a
href="https://redirect.github.com/langchain-ai/langchain/issues/27788 ">#27788</a>)</li>
<li><a
href="https://github.com/langchain-ai/langchain/commit/0172d938b4bf1e9da9f3b796dbfce64c565ce565 "><code>0172d93</code></a>
community: add AzureOpenAIWhisperParser (<a
href="https://redirect.github.com/langchain-ai/langchain/issues/27796 ">#27796</a>)</li>
<li><a
href="https://github.com/langchain-ai/langchain/commit/b631b0a5964bcdd46cf30fa0e91925d724ec7ae8 "><code>b631b0a</code></a>
community[patch]: cap SQLAlchemy and update deps (<a
href="https://redirect.github.com/langchain-ai/langchain/issues/27792 ">#27792</a>)</li>
<li><a
href="https://github.com/langchain-ai/langchain/commit/8ad7adad8784d01ad1cbbb8b4c5f8102dbf11a63 "><code>8ad7ada</code></a>
infra: build api docs from package listing (<a
href="https://redirect.github.com/langchain-ai/langchain/issues/27774 ">#27774</a>)</li>
<li><a
href="https://github.com/langchain-ai/langchain/commit/3952ee31b8fc95b1ed74b83429002a7b5da630a3 "><code>3952ee3</code></a>
ollama: add pydocstyle linting for ollama (<a
href="https://redirect.github.com/langchain-ai/langchain/issues/27686 ">#27686</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/langchain-ai/langchain/compare/langchain-core==0.3.0...langchain-core==0.3.15 ">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-02 15:57:14 -07:00
Nuno Campos and GitHub
f90c81f280
Bump langchain-core from 0.2.38 to 0.2.43 in /libs/checkpoint ( #3979 )
...
Bumps [langchain-core](https://github.com/langchain-ai/langchain ) from
0.2.38 to 0.2.43.
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/langchain-ai/langchain/commit/9fdeb74d9965258ad077d535681d9bae84b58e08 "><code>9fdeb74</code></a>
core[patch]: Release 0.2.43 (<a
href="https://redirect.github.com/langchain-ai/langchain/issues/27808 ">#27808</a>)</li>
<li><a
href="https://github.com/langchain-ai/langchain/commit/7d481f10102f43559cc57bcad7eba291067939ee "><code>7d481f1</code></a>
core[patch]: remove prompt img loading (<a
href="https://redirect.github.com/langchain-ai/langchain/issues/27807 ">#27807</a>)</li>
<li><a
href="https://github.com/langchain-ai/langchain/commit/33a53970e1eb9a515d0d38809dd0d7f2e556c4ae "><code>33a5397</code></a>
infra: turn off release attestations (<a
href="https://redirect.github.com/langchain-ai/langchain/issues/27766 ">#27766</a>)</li>
<li><a
href="https://github.com/langchain-ai/langchain/commit/283cb50ea69d03d082db5607b68f6d13aa4e65a1 "><code>283cb50</code></a>
core[patch]: Release 0.2.42 (<a
href="https://redirect.github.com/langchain-ai/langchain/issues/27763 ">#27763</a>)</li>
<li><a
href="https://github.com/langchain-ai/langchain/commit/5e3cee6c98a55d5303847c6f22256e0671caa83f "><code>5e3cee6</code></a>
core[patch]: make get_all_basemodel_annotations public (<a
href="https://redirect.github.com/langchain-ai/langchain/issues/27762 ">#27762</a>)</li>
<li><a
href="https://github.com/langchain-ai/langchain/commit/807314661dbd8933d18a0289df05bd381ffbbc4f "><code>8073146</code></a>
Added mapping to fix CI for #langchain-aws:227. (<a
href="https://redirect.github.com/langchain-ai/langchain/issues/27114 ">#27114</a>)</li>
<li><a
href="https://github.com/langchain-ai/langchain/commit/6cfd1e846a3f7369d33a77c3fb60314e3e60e202 "><code>6cfd1e8</code></a>
core[patch]: Release 0.2.41 (<a
href="https://redirect.github.com/langchain-ai/langchain/issues/26687 ">#26687</a>)</li>
<li><a
href="https://github.com/langchain-ai/langchain/commit/c5eca37262132b7b88d0f68835af5fea49d13494 "><code>c5eca37</code></a>
core[patch]: Fixed bedrock chat model load. (<a
href="https://redirect.github.com/langchain-ai/langchain/issues/26643 ">#26643</a>)</li>
<li><a
href="https://github.com/langchain-ai/langchain/commit/70c992bd61c48ebb4f60bde0ff9bfd7b54393678 "><code>70c992b</code></a>
community: poetry lock for cffi dep (<a
href="https://redirect.github.com/langchain-ai/langchain/issues/26674 ">#26674</a>)</li>
<li><a
href="https://github.com/langchain-ai/langchain/commit/51fd70be63afeaecf0eff78c2a6f6d3f34330203 "><code>51fd70b</code></a>
infra: 0.2 release checkout ref for release note (<a
href="https://redirect.github.com/langchain-ai/langchain/issues/26604 ">#26604</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/langchain-ai/langchain/compare/langchain-core==0.2.38...langchain-core==0.2.43 ">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-02 15:56:20 -07:00
Nuno Campos
f118a61101
Update jinja2 dev dep
2025-04-02 15:56:00 -07:00
dependabot[bot] and Nuno Campos
8963bb2b68
Bump langchain-core from 0.3.0 to 0.3.15 in /libs/checkpoint-sqlite
...
Bumps [langchain-core](https://github.com/langchain-ai/langchain ) from 0.3.0 to 0.3.15.
- [Release notes](https://github.com/langchain-ai/langchain/releases )
- [Commits](https://github.com/langchain-ai/langchain/compare/langchain-core==0.3.0...langchain-core==0.3.15 )
---
updated-dependencies:
- dependency-name: langchain-core
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-04-02 15:50:49 -07:00
dependabot[bot] and Nuno Campos
499a1812e8
Bump langchain-core from 0.2.38 to 0.2.43 in /libs/checkpoint
...
Bumps [langchain-core](https://github.com/langchain-ai/langchain ) from 0.2.38 to 0.2.43.
- [Release notes](https://github.com/langchain-ai/langchain/releases )
- [Commits](https://github.com/langchain-ai/langchain/compare/langchain-core==0.2.38...langchain-core==0.2.43 )
---
updated-dependencies:
- dependency-name: langchain-core
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-04-02 15:49:49 -07:00
Nuno Campos
2cb81201b2
0.3.24
2025-04-02 15:45:06 -07:00
Nuno Campos
494cd4f6ad
checkpoint 2.0.24
2025-04-02 15:44:58 -07:00
Nuno Campos and GitHub
9226b42150
Add checkpoint migrations for state graph internal channels ( #4125 )
2025-04-02 15:42:28 -07:00
Eugene Yurtsev and GitHub
5e0a843423
sdk-py: release 0.1.61 ( #4148 )
2025-04-02 15:34:36 -07:00
6e54f74fa9
sdk-py: Add option to set description via client sdk ( #4147 )
...
Co-authored-by: William FH <13333726+hinthornw@users.noreply.github.com >
2025-04-02 21:26:14 +00:00
Nuno Campos
ffb8400b19
Disable tests in 3.9
2025-04-02 14:05:15 -07:00
Nuno Campos
b6b40149a9
Fix
2025-04-02 13:56:29 -07:00
Nuno Campos
5eecd2ac3a
Update
2025-04-02 13:31:36 -07:00
Nuno Campos
c38f7be89c
Migrate quadratic channels too
2025-04-02 13:24:20 -07:00
Nuno Campos
2d406f03a2
Lint
2025-04-02 12:56:09 -07:00
Nuno Campos
1c48ec0aba
Lint
2025-04-02 12:48:10 -07:00
Nuno Campos
4dda404da3
Implement checkpoint migration
...
- Migrate start:{node} channels to branch:to:{node}
- Migrate {node} channels to branch:to:{node}
2025-04-02 12:44:59 -07:00
Mahmut CAVDAR and GitHub
cce9801a8b
docs: fixed indentation ( #4078 )
...
"Copy the clipboard" doesn't return valid Python code.
2025-04-02 13:44:45 -04:00
Vadym Barda and GitHub
67e8f8fc11
prebuilt: add optional pre-model hook that runs before calling LLM in create_react_agent ( #4059 )
...
Example:
```python
from typing import Any
from langchain_openai import ChatOpenAI
from langchain_community.tools.tavily_search import TavilySearchResults
from langchain_core.messages import AnyMessage
from langchain_core.messages.utils import count_tokens_approximately
from langgraph.graph import MessagesState
from langgraph.prebuilt.chat_agent_executor import create_react_agent, AgentState
from langgraph.checkpoint.memory import InMemorySaver
from langmem.short_term import SummarizationNode, RunningSummary
class State(MessagesState):
context: dict[str, Any]
search = TavilySearchResults(max_results=3)
tools = [search]
model = ChatOpenAI(model="gpt-4o")
summarization_model = model.bind(max_tokens=256)
summarization_node = SummarizationNode(
token_counter=count_tokens_approximately,
model=summarization_model,
max_tokens=2048,
max_summary_tokens=256,
output_messages_key="messages"
# output_messages_key="llm_input_messages"
)
checkpointer = InMemorySaver()
class State(AgentState):
user_language: str
# summarization-related keys
context: dict[str, Any]
def prompt(state):
language = state["user_language"]
system_msg = f"Always respond in {language}"
return [{"role": "system", "content": system_msg}] + state["messages"]
graph = create_react_agent(
model,
tools,
prompt=prompt,
pre_model_hook=summarization_node,
state_schema=State,
checkpointer=checkpointer
)
```
2025-04-02 15:41:31 +00:00
Rohit and GitHub
3a9247728b
Fix missing colon in function definition in langchain-ai.github docum… ( #4142 )
...
…entation.
This commit fixes a syntax error in the "langchain-ai.github"
documentation. The function called "some_node_inside_alice" was missing
a colon (:) after the function, which is required for valid Python
syntax.
2025-04-02 08:04:22 -07:00
33766eb2ff
docs: add missing MemorySaver import for unexpanded example ( #4133 )
...
Import `MemorySaver` for the code to run without expanding the example
---------
Co-authored-by: Eugene Yurtsev <eugene@langchain.dev >
2025-04-02 14:37:51 +00:00
Nuno Campos and Nuno Campos
6fe319ed1b
WIP: Add migrate_checkpoint
2025-04-02 07:24:55 -07:00
Andrew Nguonly and GitHub
3878addbe0
docs: Refactor content for new LangGraph Platform deployment options ( #4118 )
...
### Summary
This is a large refactor of the content for the LangGraph Platform
deployment options. Although there are a lot of changes, I do feel
fairly confident that this is safe to merge and won't have any negative
impact related to confusion around deployment options. However, please
review thoroughly (i.e. run the docs locally).
### Goals and Non-Goals
Just wanted to explicitly state goals and non-goals so that we're clear
about what needs to be done now versus what can be done in a smaller
follow-up PR.
Goals
1. Add new content for the new deployment options (Self-Hosted Data
Plane, Self-Hosted Control Plane).
1. Hide old content for deprecated deployment options (BYOC).
1. Create a pair of "conceptual" and "how-to" pages for each deployment
option. As much as possible, the pages should have consistent headings.
1. Introduce the terms "control plane" and "data plane" and define them
plainly without hiding/abstracting information.
Non-Goals
1. Do not change the navigation of the existing deployment options. As
much as possible, update content in-place or add new pages. Changing the
navigation is a bigger task that can be done later.
1. Do not remove old content for deprecated deployment options. We may
need to refer to this later. There are only ~2 pages (I think).
### Next Steps
1. Update the architecture diagrams for each deployment option. Commit
Excalidraw file to source control.
1. Create a "how-to" page for the Control Plane UI. This page pertains
to 3/4 deployment options. Most of the content lives in the "how-to"
page for Cloud SaaS deployment.
1. Document required RBAC permissions for K8s for Self-Hosted Data Plane
and Self-Hosted Control Plane (and update links).
1. Figure out how to consolidate plan information.
1. Figure out where to document licensing, telemetry, custom
Postgres/Redis.
1. Update autoscaling content.
2025-04-02 06:51:14 -07:00
Vadym Barda and GitHub
55f922cf2f
langgraph: release 0.3.23 ( #4141 )
2025-04-02 09:50:18 -04:00
William FH and GitHub
9a5dc5d8f2
Update link ( #4131 )
2025-04-01 23:18:54 -07:00
William FH and GitHub
90b3da5959
TTL How-to ( #4129 )
...
Signed-off-by: William Fu-Hinthorn <13333726+hinthornw@users.noreply.github.com >
2025-04-01 22:54:31 -07:00
William FH and GitHub
d2275a6727
Update cli.md to mention ttl ( #4128 )
...
Signed-off-by: William Fu-Hinthorn <13333726+hinthornw@users.noreply.github.com >
2025-04-01 22:21:55 -07:00
Nuno Campos and GitHub
0c590afb27
Maintain checkpoint LATEST_VERSION constant in langgraph lib ( #4126 )
...
- This should be controlled by the langgraph version, not the version of
langgraph-checkpoint installed
2025-04-01 21:53:12 -07:00
Nuno Campos
6efeefe424
Maintain checkpoint LATEST_VERSION constant in langgraph lib
...
- This should be controlled by the langgraph version, not the version of langgraph-checkpoint installed
2025-04-01 21:46:38 -07:00
William FH and GitHub
da8b8c606a
Release CLI ( #4124 )
...
Signed-off-by: William Fu-Hinthorn <13333726+hinthornw@users.noreply.github.com >
2025-04-01 21:28:58 -07:00
William FH and GitHub
dcda8c24d6
Add checkpointer configuration support in langgraph.json ( #4122 )
...
Signed-off-by: William Fu-Hinthorn <13333726+hinthornw@users.noreply.github.com >
2025-04-01 21:16:12 -07:00
Vadym Barda and GitHub
e3d697620b
langgraph: support removing all messages with RemoveMessage ( #4117 )
2025-04-01 17:51:54 -04:00
Nuno Campos
30883729f0
0.3.22
2025-04-01 07:54:24 -07:00
William FH and GitHub
1c403f34c8
Allow blocking in dev ( #4109 )
2025-04-01 05:52:25 -07:00
William Fu-Hinthorn
9bd78ed483
Allow blocking in dev
...
Signed-off-by: William Fu-Hinthorn <13333726+hinthornw@users.noreply.github.com >
2025-04-01 05:45:47 -07:00
Nuno Campos and GitHub
a77db7d73d
Avoid creating checkpoint unless we're saving it ( #4106 )
...
- When checkpointing is disabled don't call create_checkpoint in
PregelLoop
- In local_read apply writes directly to copies of updated channels
- Add BaseChannel.copy() method to create channel copies with less
overhead
2025-03-31 19:13:36 -07:00
Nuno Campos
e85b7e6cd9
Lint
2025-03-31 18:46:51 -07:00
Nuno Campos
94fa46f9fa
Avoid creating checkpoint unless we're saving it
...
- When checkpointing is disabled don't call create_checkpoint in PregelLoop
- In local_read apply writes directly to copies of updated channels
- Add BaseChannel.copy() method to create channel copies with less overhead
2025-03-31 18:37:13 -07:00
Nuno Campos and GitHub
e50110ba91
Avoid raise-catch strategy in BaseChannel.checkpoint() ( #4105 )
...
- This mirrors the work done earlier on BaseChannel.get()
- Comparing to a sentinel value is significantly faster than raising and
catching an exception
2025-03-31 18:10:15 -07:00
Nuno Campos
fd64ada9de
Avoid raise-catch strategy in BaseChannel.checkpoint()
...
- This mirrors the work done earlier on BaseChannel.get()
- Comparing to a sentinel value is significantly faster than raising and catching an exception
2025-03-31 17:48:19 -07:00
Nuno Campos and GitHub
b15ec09c3b
Add fast path to serialize None values ( #4103 )
...
- If the value to serialize is None we can use encode it in the string
type, and skip msgpack encoding
- Use None value for edge/branch channels in StateGraph
2025-03-31 17:42:26 -07:00
Nuno Campos
5e9e7b79fe
Lint
2025-03-31 17:36:00 -07:00
Nuno Campos
c49a077789
Lint
2025-03-31 17:24:26 -07:00
Nuno Campos
881b07cf7f
Lint
2025-03-31 16:36:16 -07:00
Nuno Campos
0425d4e65d
Update
2025-03-31 16:29:07 -07:00
Nuno Campos
118016a21c
Add fast path to serialize None values
2025-03-31 16:15:56 -07:00
Nuno Campos and GitHub
bda3c3add9
Lazily create atomic counters in pregel scratchpad ( #4101 )
...
- many times these aren't actually used, so makes sense to delay
creation until needed
2025-03-31 15:44:00 -07:00
Nuno Campos
067b99c789
Lazily create atomic counters in pregel scratchpad
...
- many times these aren't actually used, so makes sense to delay creation until needed
2025-03-31 15:19:53 -07:00
Tat Dat Duong
aef463c633
fix(sdk-js): send accepts any input
2025-04-01 00:15:32 +02:00
Nuno Campos and GitHub
673cc5ad1a
Reduce perf impact of pregel scratchpad creation ( #4098 )
...
- make scratchpad class frozen now that its members are never reassigned
- replace next(gen expr) with for-loop to avoid allocating generator
objects
2025-03-31 15:13:38 -07:00
Nuno Campos
e9e9a96a0d
Reduce perf impact of pregel scratchpad creation
...
- make scratchpad class frozen now that its members are never reassigned
- replace next(gen expr) with for-loop to avoid allocating generator objects
2025-03-31 14:50:10 -07:00
Andrew Nguonly and GitHub
cf7136297e
docs: Add docs for more environment variables ( #4080 )
2025-03-28 15:40:16 -07:00
David Duong and GitHub
e5aae80e3a
feat(cli): add support for gen ui config ( #4079 )
2025-03-28 23:14:56 +01:00
Tat Dat Duong
f629f68ec3
feat(cli): add support for gen ui config
2025-03-28 23:05:04 +01:00
Andrew Nguonly and GitHub
575de221fe
docs: Update Cloud SaaS and CLI documentation pages ( #4077 )
...
### Summary
1. Update API spec.
2. Clarify how to specify `requirements.txt` in `dependencies` list.
3. Clarify deletion policy for database.
4. Clarify resource allocation for `Production` type deployments.
5. Update supported Python versions.
2025-03-28 14:21:24 -07:00
David Duong and GitHub
d2fc5f0a0f
feat(sdk-js): run optimistic values mutator before any network request ( #4070 )
2025-03-28 21:57:33 +01:00
Tat Dat Duong
8e4b8b11ff
Add docs about optimistic updates
2025-03-28 21:52:37 +01:00
Tat Dat Duong
2808a7859a
Bump to 0.0.62
2025-03-28 21:39:44 +01:00
Tat Dat Duong
fb3c61ea4f
feat(sdk-js): run optimistic values mutator before any network request
2025-03-28 21:39:35 +01:00
David Duong and GitHub
69cecd872c
release(sdk-js): 0.0.61 ( #4069 )
2025-03-28 15:24:38 +01:00
Tat Dat Duong
9abc1c8174
release(sdk-js): 0.0.61
2025-03-28 15:23:25 +01:00
David Duong and GitHub
de90ced29d
fix(sdk-js): do not await for client.runs.stream, as it is already async generator ( #4068 )
2025-03-28 15:22:20 +01:00
Tat Dat Duong
b8b973fc0c
fix(sdk-js): do not await for client.runs.stream, as it is already async generator
2025-03-28 15:15:54 +01:00
David Duong and GitHub
89e3709a2a
feat(docs): cloning traces locally ( #4057 )
2025-03-28 14:41:00 +01:00
Arjun Natarajan
a7f012a19c
fix link
2025-03-28 09:37:05 -04:00
Arjun Natarajan
9b05ab6453
mkdocs yaml
2025-03-28 09:27:30 -04:00
David Duong and GitHub
5401d2ea81
feat(sdk-js): add option to manually provide implementation for shared modules ( #4042 )
2025-03-28 14:04:09 +01:00
Nuno Campos and GitHub
4401612aa6
Reduce the number of channels created for each node by 50% ( #4064 )
...
- Used to be 2 channels per node, it is now one per node, which is the
minimum
- Now both hard edges, conditional edges, entrypoint and conditional
entrypoint all use the same channel to trigger a node
2025-03-27 18:05:04 -07:00
Nuno Campos
49bb08a3f9
Update prebuilt test
2025-03-27 17:58:29 -07:00
Nuno Campos
4f2e9b838f
Reduce the number of channels created for each node by 50%
...
- Used to be 2 channels per node, it is now one per node, which is the minimum
- Now both hard edges, conditional edges, entrypoint and conditional entrypoint all use the same channel to trigger a node
2025-03-27 17:47:34 -07:00
Nuno Campos
d30da72f6e
Reduce the number of channels created for each node by 50%
...
- Used to be 2 channels per node, it is now one per node, which is the minimum
- Now both hard edges, conditional edges, entrypoint and conditional entrypoint all use the same channel to trigger a node
2025-03-27 17:47:11 -07:00
William FH and GitHub
7f079adfee
Update auth user type ( #4062 )
2025-03-27 16:09:54 -07:00
William Fu-Hinthorn
4c74af606f
Update auth user type
2025-03-27 16:03:11 -07:00
Eugene Yurtsev and GitHub
900824089b
docs: disable link checking on push and workflow dispatch ( #4061 )
2025-03-27 17:33:36 -04:00
Nuno Campos and GitHub
522caa643f
In Python 3.12 or above, use asyncio eager task factory ( #4055 )
...
- This is a performance improvement when calling async functions that do
not use await, as they are run immediately and never scheduled in the
loop
2025-03-27 13:36:04 -07:00
Nuno Campos
ef71656f05
Fix
2025-03-27 13:14:39 -07:00
Tat Dat Duong
3ba7c7fbed
Do not throw error if window is undefined due to Next
2025-03-27 21:03:54 +01:00
Tat Dat Duong
5cdab86d48
Fix object assignment
2025-03-27 20:58:39 +01:00
Nuno Campos and GitHub
f5fe7e5195
Remove internal frames from stack traces ( #4054 )
...
- For exceptions raised in user code (ie. nodes or edges) remove
internal frames from the stack trace
2025-03-27 12:41:54 -07:00
Arjun Natarajan
2b728410e9
spell check
2025-03-27 14:47:27 -04:00
Arjun Natarajan
30221da4a8
docs for cloning traces locally
2025-03-27 14:38:20 -04:00
Nuno Campos
1c5a354a7d
In Python 3.12 or above, use asyncio eager task factory
...
- This is a performance improvement when calling async functions that do not use await, as they are run immediately and never scheduled in the loop
2025-03-27 11:00:37 -07:00
Nuno Campos
bfd271e00e
Remove internal frames from stack traces
...
- For exceptions raised in user code (ie. nodes or edges) remove internal frames from the stack trace
2025-03-27 10:58:13 -07:00
Vadym Barda and GitHub
9647b1e55f
langgraph: use correct type for node destination annotations ( #4053 )
...
Fixes https://github.com/langchain-ai/langgraph/issues/4051
2025-03-27 16:57:39 +00:00
Eugene Yurtsev and GitHub
e4aa204110
docs: add langchain llms.txt to the overview ( #4047 )
2025-03-27 12:33:42 -04:00
Vadym Barda and GitHub
2c29edadec
langgraph: release 0.3.21 ( #4050 )
2025-03-27 11:38:37 -04:00
Vadym Barda and GitHub
96847e644b
langgraph: add tests for remote graph interrupts ( #4048 )
2025-03-27 15:17:29 +00:00
Tat Dat Duong
4b102638c2
feat(sdk-js): add option to manually provide implementation for shared modules
2025-03-26 22:46:59 +01:00
7021ce3742
patch: fix return type of Topic.update ( #4029 )
...
This PR fixes the return type annotation of the `update` method from
`None` to `bool`, as the method returns a boolean value indicating
whether self.values has changed
Co-authored-by: kakaogames <kakaogames@Justin-MacBook-Pro.local >
2025-03-26 16:57:35 -04:00
Nuno Campos and GitHub
d0c0aa9697
benchmark: remove some benchmarks ( #4039 )
...
Remove some benchmarks temporarily so we can fit more stuff into the
annotation
2025-03-26 13:50:53 -07:00
Vadym Barda and GitHub
520de30350
langgraph: fix interrupt deserialization in RemoteGraph ( #4040 )
2025-03-26 16:42:21 -04:00
Eugene Yurtsev
81c0d47363
x
2025-03-26 15:16:44 -04:00
87603d8a00
docs: add version admonitions for Interrupt and RetryPolicy ( #3988 )
...
This pull request includes changes to add version admonitions to the
documentation and update the styling for these admonitions. The most
important changes include the addition of version information to the
documentation, updates to the CSS for version admonitions, and
modifications to the `mkdocs.yml` configuration file to include the new
stylesheets.
this should solve this #3991
---------
Co-authored-by: Eugene Yurtsev <eugene@langchain.dev >
2025-03-26 13:48:54 -04:00
Vadym Barda and GitHub
7ad7329c7d
docs: add codeact prebuilt ( #4036 )
2025-03-26 17:25:17 +00:00
Vadym Barda and GitHub
e981d27f84
prebuilt: release 0.1.7 ( #4034 )
2025-03-26 09:22:09 -04:00
Vadym Barda and GitHub
71db4f2ad5
prebuilt: ignore updates when combining parent commands with Send ( #4033 )
2025-03-26 09:20:37 -04:00
Nuno Campos and GitHub
4ced277e2d
Update adopters.md ( #4025 )
2025-03-25 18:40:02 -07:00
jessicaou and GitHub
34738fa566
Update adopters.md
2025-03-25 17:27:53 -07:00
Nuno Campos and GitHub
0286c38784
fix(sdk-js): mark schema as nullable to match python ( #3928 )
2025-03-25 16:11:35 -07:00
David Duong and GitHub
fb5a1c4028
feat(cli): add packageManager and devEngines detection ( #4024 )
2025-03-25 23:43:36 +01:00
Tat Dat Duong
39d85466f8
Bump to 0.1.80
2025-03-25 23:36:33 +01:00
Tat Dat Duong
3c797529bb
Avoid frozen lockfile
2025-03-25 23:32:40 +01:00
Tat Dat Duong
0d185d43ed
feat(cli): add packageManager and devEngines detection
2025-03-25 23:26:04 +01:00
Eugene Yurtsev and GitHub
70b8391a89
ci: use fast benchmark ( #4017 )
2025-03-25 17:59:18 -04:00
Eugene Yurtsev and GitHub
1a37f2d5a2
sdk-py: release 0.1.59 ( #4018 )
2025-03-25 17:58:51 -04:00
Really Him and GitHub
949af8abe5
docs(pregel): One-line markdown formatting quick-fix ( #4023 )
...
## Description
I noticed a very minor issue in the formatting of the Concepts > Pregel
doc:
(https://langchain-ai.github.io/langgraph/concepts/pregel/#high-level-api )
(https://github.com/langchain-ai/langgraph/blob/main/docs/docs/concepts/pregel.md )
You can see in the image below that there is a python codeblock, then a
pycon block, and inside that block there is an extra
triple-backtick/code fence, and then text at the bottom, which it
appears like it is supposed to be a separate python block, like the one
above it. I.e., clearly:
```
```python
print(graph.channels)
```
is intended to be:
```python
print(graph.channels)
```
I'm pretty sure this is due to an extra whitespace character before the preceding closing code fence, which is throwing off the formatting.

My VS-Code/extensions can't really render the Markdown the way it appears on the Website, I think because of the tabs (Graph API vs. Functional API), but I noticed that if I remove the extra whitespace, the highlighting on the python codeblock is corrected:
BEFORE:
<img width="605" alt="Screenshot 2025-03-25 at 5 02 41 PM" src="https://github.com/user-attachments/assets/8474f103-c5ab-4c02-b22f-3d54b3363331 " />
AFTER:
<img width="277" alt="Screenshot 2025-03-25 at 5 02 50 PM" src="https://github.com/user-attachments/assets/a311b87b-859c-4aba-a4d8-6b063a155d90 " />
## Fix
* Remove one whitespace character that was throwing off markdown rendering
2025-03-25 17:58:37 -04:00
Eugene Yurtsev and GitHub
094255c3fe
docs: remove langmanus temporarily ( #4022 )
...
there's no pypi package
2025-03-25 16:46:07 -04:00
Nuno Campos and GitHub
b6055ff3fe
Warn when get_graph tries to draw edge that doesn't exist ( #4021 )
2025-03-25 12:57:31 -07:00
Nuno Campos
e082ba4f85
Warn when get_graph tries to draw edge that doesn't exist
2025-03-25 12:50:47 -07:00
Vadym Barda and GitHub
f36b7f61fb
prebuilt: release 0.1.6 ( #4020 )
2025-03-25 15:49:02 -04:00
Vadym Barda and GitHub
4095f0a927
prebuilt: only combine Command.PARENT for Send gotos in ToolNode ( #4019 )
2025-03-25 15:47:46 -04:00
8af09714ff
docs: remove unused imports from guide ( #4014 )
...
Not included in index page, and currently re-directs:
https://github.com/langchain-ai/langgraph/blob/01fed0fae27a8d71490a7f94a74942af5626da97/docs/_scripts/notebook_hooks.py#L24
---------
Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com >
2025-03-25 15:35:54 -04:00
Eugene Yurtsev and GitHub
5d7e818882
sdk: Add headers to sync client ( #4012 )
...
Add ability to pass run time headers to the sync client.
2025-03-25 14:58:33 -04:00
Eugene Yurtsev and GitHub
37429ff73b
docs: remove old code from workflow ( #4016 )
2025-03-25 14:20:04 -04:00
Vadym Barda and GitHub
af7515c37a
prebuilt: release 0.1.5 ( #4015 )
2025-03-25 13:52:35 -04:00
Vadym Barda and GitHub
b97cda4290
prebuilt: add support for multiple Command(graph=Command.PARENT) returned by tools ( #4003 )
2025-03-25 13:51:05 -04:00
Ykoh and GitHub
01fed0fae2
Docs fix example docs ( #3971 )
2025-03-25 11:02:20 -04:00
Nuno Campos
2ac22f8246
0.3.20
2025-03-24 18:09:56 -07:00
William FH and GitHub
ae2e8d7e5e
Use 128bit hash for task ids ( #4005 )
2025-03-24 18:09:25 -07:00
Nuno Campos
5526486a0b
Use 128bit hash for task ids
2025-03-24 18:04:26 -07:00
William FH and GitHub
0f8fc4fe68
Handle Sends ( #4004 )
...
In the json-mode deserializer
2025-03-24 17:17:52 -07:00
William Fu-Hinthorn
10859da99a
Handle sneds
2025-03-24 17:12:50 -07:00
Nuno Campos and GitHub
b285a118a7
Log and continue for subgraph schema issues ( #3997 )
2025-03-24 16:31:42 -07:00
William FH and GitHub
6853d045b6
Add HTTP deserialization option ( #4002 )
2025-03-24 16:28:53 -07:00
William Fu-Hinthorn
d8cc9c9680
merge with ormsgpack
2025-03-24 16:21:59 -07:00
William Fu-Hinthorn
723d6f8a84
Add json mode msgpack unpacker
2025-03-24 16:15:48 -07:00
Nuno Campos and GitHub
696a922241
Switch serialization lib to ormsgpack ( #3953 )
...
- faster for large states
- supports tuples as dict keys
2025-03-24 16:08:57 -07:00
Eugene Yurtsev and GitHub
c598fee7d6
sdk-py: Propagate headers in the async client ( #4001 )
...
Propagate headers in the async client
2025-03-24 16:30:40 -04:00
William FH and GitHub
6da6c4443a
Merge branch 'main' into wfh/log_and_continue
2025-03-24 12:25:47 -07:00
Eugene Yurtsev and GitHub
addb491cfd
sdk: allow specifying run time headers in http client ( #4000 )
...
This PR only allows this in the HTTP client.
I can follow up with a PR to allow throughout the entire API.
The use case is to allow instantiating the client once (w/ a single connection pool), but allowing changing api keys and any other headers at run time
2025-03-24 14:47:35 -04:00
Eugene Yurtsev and GitHub
c84f35eff5
add langmanus to prebuilt ( #3999 )
2025-03-24 13:26:53 -04:00
Eugene Yurtsev and GitHub
f178e4205f
docs: add xxhash explicitly to docs pyproject.toml ( #3998 )
...
It's not getting picked up from the dev requirements for some reason.
2025-03-24 12:58:33 -04:00
Nuno Campos
3f4d1c66c2
0.3.19
2025-03-24 09:45:54 -07:00
Nuno Campos
2ee5b8e9d1
Bump
2025-03-24 09:03:23 -07:00
Nuno Campos
aadbcb443a
Bump
2025-03-24 09:03:23 -07:00
Nuno Campos
a88794b74e
Update ormsgpack
2025-03-24 09:03:23 -07:00
Nuno Campos
556733c77c
Bump
2025-03-24 09:01:55 -07:00
Nuno Campos
3d16acf3f5
Switch serialization lib to ormsgpack
...
- faster for large states
- supports tuples as dict keys
2025-03-24 09:01:55 -07:00
Nuno Campos and GitHub
87cbc4942d
Switch task ids to use xxhash3 ( #3954 )
...
- much faster / less memory allocations
- backwards compat by applying only to checkpoint versions 2 or above
2025-03-24 08:42:50 -07:00
Nuno Campos and GitHub
6d63300c9a
benchmarks: Add 1st event latency ( #3909 )
2025-03-24 07:58:47 -07:00
Nuno Campos
a5dd181138
Update
2025-03-24 07:57:02 -07:00
William Fu-Hinthorn
ad63b730b3
Log and continue for subgraph schema issues
2025-03-24 07:50:25 -07:00
Nuno Campos
528d3946c6
Lock
2025-03-24 07:49:24 -07:00
Nuno Campos
037d9d1402
Lock
2025-03-24 07:49:24 -07:00
Nuno Campos
6aee213f3c
Switch task ids to use xxhash3
...
- much faster / less memory allocations
- backwards compat by applying only to checkpoint versions 2 or above
2025-03-24 07:49:24 -07:00
Lance Martin and GitHub
f690f4244e
Remove failing links ( #3994 )
...
Anthropic links for blog post and docs are failing CI --
https://github.com/langchain-ai/langgraph/actions/runs/14024926642/job/39261981682
Remove to unblock docs build; we may add back to ignore later.
2025-03-23 19:53:11 -07:00
Lance Martin and GitHub
d6856131b6
Fix broken links in ntbks ( #3993 )
...
A number of Anthropic links recently changed
2025-03-23 17:59:14 -07:00
Lance Martin and GitHub
7d90440035
Update llms.txt for langgraph ( #3987 )
2025-03-23 15:39:09 -07:00
alxdr3k and GitHub
fed785eabd
docs: fix typo in low_level.md ( #3968 )
...
- Fix typo
2025-03-21 16:40:41 -04:00
Ykoh and GitHub
765b04adfd
Docs: fix example ( #3972 )
2025-03-21 16:39:39 -04:00
7085b149e5
fix(docs): Update deprecated methods and add validator ( #3920 )
...
- Added a validator to sanitize 'name' fields and prevent
string_pattern_mismatch errors.
- Replaced deprecated `dict` method with `model_dump` in line with
Pydantic v2.0 migration guidelines.
- Updated gen_perspectives_chain and gen_queries_chain to ensure
compatibility with structured output and include raw data where needed.
This allows use of fast_llm across the notebook.
---------
Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com >
2025-03-21 15:51:13 -04:00
11c71fef89
chore(docs): Improve documentation for AsyncSqliteSaver ( #3858 )
...
**Description:**
Make AsyncSqliteSaver examples workable.
**Issue:**
For "Usage within StateGraph" example,
SyntaxError: 'async with' outside async function
For "Raw usage" example
KeyError: 'checkpoint_ns' and KeyError: 'id'
**Dependencies:**
N/A
Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com >
2025-03-21 15:50:51 -04:00
Eugene Yurtsev
8be0fb675a
x
2025-03-21 15:25:28 -04:00
William FH and GitHub
1b4f335ffe
Add studio URL flag ( #3980 )
2025-03-21 11:23:05 -07:00
William Fu-Hinthorn
9c36a7de85
Add studio URL flag
2025-03-21 11:20:29 -07:00
Eugene Yurtsev
d166dea4f0
Merge branch 'main' into eugene/add_latency
2025-03-21 12:55:37 -04:00
Vadym Barda and GitHub
8e922b859c
prebuilt: release 0.1.4 ( #3977 )
2025-03-21 12:05:15 -04:00
Vadym Barda and GitHub
9a4c30135f
prebuilt: pass last message to structured response model in create_react_agent ( #3976 )
2025-03-21 11:58:27 -04:00
William FH and GitHub
bc6651f34c
Studio cli command ( #3962 )
2025-03-20 17:57:56 -07:00
William Fu-Hinthorn
23bb5369b9
Studio cli command
2025-03-20 17:51:08 -07:00
Nuno Campos and GitHub
85b81371f7
Use incremental storage in memory checkpointer ( #3960 )
...
- This makes our checkpoint benchmarks more closely resemble the
behavior of our prod checkpointers
- Also found and fixed a bug w multiple subgraphs in same node
accidentally sharing checkpoints
2025-03-20 16:33:47 -07:00
Nuno Campos
54ab833b74
Lint
2025-03-20 16:26:52 -07:00
Nuno Campos
4ea936eaf4
Lint
2025-03-20 16:24:57 -07:00
Nuno Campos
9d81ec9ffd
Lint
2025-03-20 16:22:24 -07:00
Nuno Campos
46b652a74c
Use incremental storage in memory checkpointer
...
- This makes our checkpoint benchmarks more closely resemble the behavior of our prod checkpointers
- Also found and fixed a bug w multiple subgraphs in same node accidentally sharing checkpoints
2025-03-20 16:11:36 -07:00
Vadym Barda and GitHub
7013ca9a3f
docs: use hosted logo ( #3959 )
2025-03-20 18:17:22 -04:00
William FH and GitHub
0c04aec664
Include enum in check for pydantic state ( #3955 )
2025-03-20 12:03:22 -07:00
Eugene Yurtsev and GitHub
1650c8508e
benchmark: Add compilation only ( #3932 )
...
Add compilation benchmark alone
2025-03-20 14:51:31 -04:00
Eugene Yurtsev and GitHub
e176b98fe7
Add llms-txt resources ( #3935 )
2025-03-20 14:44:21 -04:00
William Fu-Hinthorn
eb1e1aa010
Include enum in check for pydantic state
2025-03-20 10:29:16 -07:00
Nuno Campos and GitHub
77c833e1e5
Use fast path for prepare_next_tasks on input ( #3931 )
...
- When there are no values in checkpoint no need to run through all the
PULL candidates
- When there are input writes save updated_channels to use on the next
call to prepare_next_tasks
2025-03-20 08:46:48 -07:00
Nuno Campos
0ac29434a7
Lint
2025-03-20 08:40:05 -07:00
Nuno Campos
43f5a17416
Lint
2025-03-20 08:24:51 -07:00
Nuno Campos
7d0857f263
Lint
2025-03-20 08:24:31 -07:00
Nuno Campos
b82d70a66a
Lint
2025-03-20 08:22:16 -07:00
Nuno Campos and GitHub
5fb037171d
Small perf improvements ( #3949 )
...
- RunnableCallable: Skip signature checks for internal callables where
we know the signatures ahead of time
- PregelNode: Avoid redoing subgraphs serarch when copying it
- CompiledStateGraph: Avoid copying PregelNode when attaching writers
2025-03-20 08:19:02 -07:00
Nuno Campos
d3bb2b9aa0
Lint
2025-03-20 08:18:17 -07:00
Nuno Campos
ea765b4134
More small perf improvements
...
- RunnableCallable: Skip signature checks for internal callables where we know the signatures ahead of time
- PregelNode: Avoid redoing subgraphs serarch when copying it
- CompiledStateGraph: Avoid copying PregelNode when attaching writers
2025-03-20 08:11:28 -07:00
William FH and GitHub
66ff83dca9
Lock ( #3947 )
2025-03-20 08:04:53 -07:00
William FH and GitHub
254e398345
Merge branch 'main' into wfh/reloack
2025-03-20 08:04:38 -07:00
Vadym Barda and GitHub
c7567ea219
docs: improve search ( #3948 )
2025-03-20 11:02:59 -04:00
William Fu-Hinthorn
8c0306c3f4
Lock
2025-03-20 07:59:30 -07:00
William FH and GitHub
992b05a196
langgraph-checkpoint-postgres 2.0.19 ( #3945 )
2025-03-20 07:25:41 -07:00
William Fu-Hinthorn
893a9646d3
langgraph-checkpoint-postgres 2.0.19
2025-03-20 07:25:14 -07:00
William FH and GitHub
eaa37a2ce9
Increase pg->checkpoint minbound ( #3944 )
2025-03-20 07:24:43 -07:00
William Fu-Hinthorn
daee8d88bb
Increase pg->checkpoint minbound
2025-03-20 07:24:15 -07:00
Nuno Campos
eaa18cc2dd
Use fast path for prepare_next_tasks on input
...
- When there are no values in checkpoint no need to run through all the PULL candidates
- When there are input writes save updated_channels to use on the next call to prepare_next_tasks
2025-03-19 18:14:04 -07:00
Nuno Campos and GitHub
b2d9a36308
langgraph: incorporate information about previously updated channels to identify which tasks to execute next ( #3916 )
...
Leverage information about which channels were updated in the previous
step to determine which tasks should be triggered. This can result in
significant speed up in prepare_next_tasks in some situations.
2025-03-19 16:22:12 -07:00
Tat Dat Duong
dd733a3389
fix(sdk-js): mark schema as nullable to match python
2025-03-19 22:40:55 +01:00
William FH and GitHub
03fc695d60
Add refcount test ( #3910 )
2025-03-19 14:33:43 -07:00
William Fu-Hinthorn
9994b09304
merge
2025-03-19 14:27:19 -07:00
William FH and GitHub
53f8558914
Release 0.3.18 ( #3925 )
...
Includes:
- Explicit unsetting of runnable context var
- Weakref for PregelExecutableTask
both to reduce the chance of keeping a reference to an internal object
and preventing garbage collection
2025-03-19 14:11:46 -07:00
William Fu-Hinthorn
4bfcd84cee
Cleanup ref count check
2025-03-19 14:10:01 -07:00
David Duong and GitHub
cd1d7be05f
feat(sdk): add bulk_update_state in SDK ( #3923 )
2025-03-19 22:09:53 +01:00
Really Him and GitHub
939a426a2e
DOCS: Update state-model.ipynb to use "AnyMessage" ( #3926 )
...
## Description
The documentation for working with Pydantic and graph State recommends
to use `AnyMessage` when working with LangChain types, but the code
example uses `BaseMessage`.
2025-03-19 21:08:14 +00:00
William Fu-Hinthorn
94c815f226
Release 0.3.18
...
Includes:
- Explicit unsetting of runnable context var
- Weakref for PregelExecutableTask
both to reduce the chance of keeping a reference to an internal object and preventing
garbage collection
2025-03-19 14:04:01 -07:00
Tat Dat Duong
ef345aac5f
Fix typo
2025-03-19 22:02:55 +01:00
William FH and GitHub
e306258525
Reference to PregelExecutableTask ( #3924 )
2025-03-19 14:00:43 -07:00
William Fu-Hinthorn
05cd317486
Update snapshots more
2025-03-19 13:54:10 -07:00
Tat Dat Duong
6dfed31a5e
Update parameters
2025-03-19 21:39:35 +01:00
Thapar and GitHub
ee8374c4c0
docs: Update bad link in libs/cli README.md ( #3919 )
...
Fixed reference hyperlink
2025-03-19 16:27:37 -04:00
William Fu-Hinthorn
2066894b5f
Update snapshots
2025-03-19 13:25:02 -07:00
William Fu-Hinthorn
6a2d20fd5b
Reference to PregelExecutableTask
2025-03-19 13:19:02 -07:00
Eugene Yurtsev
5b8b9f1067
Update doc-string
2025-03-19 16:10:50 -04:00
Eugene Yurtsev
c9cb8165d4
x
2025-03-19 16:08:25 -04:00
Tat Dat Duong
1f0348a5ca
Fix docstring
2025-03-19 21:07:07 +01:00
Tat Dat Duong
442ef0788e
Add graph_id back
2025-03-19 21:05:43 +01:00
Eugene Yurtsev
73f9ef0ef8
add type
2025-03-19 16:00:49 -04:00
Tat Dat Duong
1f7a380548
Fix typo
2025-03-19 20:54:15 +01:00
Eugene Yurtsev
8959f2aec5
lint
2025-03-19 15:54:07 -04:00
Eugene Yurtsev
0e7869eba4
Merge branch 'main' into ey/optimize_triggers
2025-03-19 15:52:29 -04:00
William FH and GitHub
d3f8478054
Unset config context after function end ( #3922 )
2025-03-19 12:51:39 -07:00
Tat Dat Duong
0cb1893475
Update for JS as well
2025-03-19 20:46:22 +01:00
Tat Dat Duong
e779c8e0b1
Merge into create
2025-03-19 20:42:48 +01:00
Eugene Yurtsev
18b82cb8e2
x
2025-03-19 15:29:50 -04:00
Tat Dat Duong
972ab1a935
Revert docstring for update_state
2025-03-19 20:22:05 +01:00
William Fu-Hinthorn
9cc2f37cca
Unset config context after function end
2025-03-19 12:14:29 -07:00
Tat Dat Duong
a2d7631f47
Fix in async client
2025-03-19 20:10:42 +01:00
Tat Dat Duong
1e767c0653
feat(sdk): add bulk_update_state in SDK
2025-03-19 20:05:08 +01:00
David Duong and GitHub
d4c569cb7c
feat(sdk-js): add bulkUpdateState method ( #3878 )
2025-03-19 19:25:37 +01:00
David Duong and GitHub
a146df7f6a
release(langgraph): 0.3.17 ( #3918 )
2025-03-19 19:10:01 +01:00
Tat Dat Duong
c52cc03e4b
release(langgraph): 0.3.17
2025-03-19 19:02:51 +01:00
Nuno Campos and GitHub
f206cfad8f
Store all triggers in task ( #3912 )
...
- These are used to update seen version
2025-03-19 09:47:06 -07:00
Nuno Campos
d4c8b219c4
Update tests
2025-03-19 09:40:34 -07:00
Tat Dat Duong
00855999d2
Bump to 0.0.59
2025-03-19 17:02:19 +01:00
Tat Dat Duong
24bd0e1c1f
Fix formatting
2025-03-19 16:59:53 +01:00
David Duong and GitHub
3b59055192
feat(pregel): add bulk update state method ( #3737 )
...
This method is useful for recreating a thread from a list of checkpoint
writes. A new method is needed to clone a checkpoint that has been
created from multiple writes (functional API, map-reduce)
Port of https://github.com/langchain-ai/langgraphjs/pull/969 and
https://github.com/langchain-ai/langgraphjs/pull/1007
2025-03-19 16:59:07 +01:00
Eugene Yurtsev
67a16bec53
more typos
2025-03-19 11:48:31 -04:00
Eugene Yurtsev
f97802eed5
x
2025-03-19 11:44:42 -04:00
Eugene Yurtsev
bccb796ccc
x
2025-03-19 11:38:46 -04:00
Eugene Yurtsev
4068e9d135
x
2025-03-19 11:27:56 -04:00
Eugene Yurtsev
a951334f7f
qxqx
2025-03-19 11:18:00 -04:00
lc-arjun and GitHub
75a727877f
feat: add docs for prompt engineering ( #3846 )
2025-03-19 10:51:54 -04:00
Tat Dat Duong
1cece3228c
Fix indent bug
2025-03-19 15:37:43 +01:00
Tat Dat Duong
7ba48d75c9
Another merge issue
2025-03-19 15:05:22 +01:00
Tat Dat Duong
7fb0628957
Remove duplicated test
2025-03-19 14:44:07 +01:00
Tat Dat Duong
6edf29f043
Fix rebase artifacts
2025-03-19 14:39:59 +01:00
Tat Dat Duong
c8a605cbc8
Update PregelProtocol
2025-03-19 14:29:11 +01:00
Tat Dat Duong
fbec207446
Apply formatting
2025-03-19 14:29:09 +01:00
Tat Dat Duong
2223c82606
Update to match JS
2025-03-19 14:28:55 +01:00
Tat Dat Duong
06f2eef74c
Fix bug with stale task_id
2025-03-19 14:22:25 +01:00
Tat Dat Duong
62aa66cd4b
Add better docstrings
2025-03-19 14:22:25 +01:00
Tat Dat Duong
8ffe9634b7
Clearer breakdown
2025-03-19 14:22:25 +01:00
Tat Dat Duong
4b1d6d2aeb
Rename to StateUpdate
2025-03-19 14:22:25 +01:00
Tat Dat Duong
199ab46429
Avoid using checkpointer.list in async
2025-03-19 14:22:25 +01:00
Tat Dat Duong
c758954519
Use awith_checkpointer instead
2025-03-19 14:22:25 +01:00
Tat Dat Duong
5bfb3bb882
Avoid running with shallow checkpointer
2025-03-19 14:22:24 +01:00
Tat Dat Duong
68a5c3f4c7
Implement batch events for RemotePregel
2025-03-19 14:22:04 +01:00
Tat Dat Duong
b7fb8e6afb
Fix types
2025-03-19 14:22:04 +01:00
Tat Dat Duong
c34c798763
Add tests
2025-03-19 14:22:04 +01:00
Tat Dat Duong
792cd805a7
Fix tests
2025-03-19 14:21:44 +01:00
Tat Dat Duong
764929afd9
Fix lint issues
2025-03-19 14:21:43 +01:00
Tat Dat Duong
1e751a2256
Fix typo
2025-03-19 14:21:43 +01:00
Tat Dat Duong
e6726802f7
feat(pregel): add bulk update state method
...
This method is useful for recreating a thread from a list of checkpoint writes. A new method is needed to clone a checkpoint that has been created from multiple writes (functional API, map-reduce)
Port of https://github.com/langchain-ai/langgraphjs/pull/969
2025-03-19 14:21:43 +01:00
Nuno Campos
a541376d10
Store all triggers in task
...
- These are used to update seen version
2025-03-18 21:17:26 -07:00
William Fu-Hinthorn
f9780330a6
Add refcount test
2025-03-18 20:13:40 -07:00
Eugene Yurtsev
347ab0165e
x
2025-03-18 22:23:39 -04:00
Eugene Yurtsev
cb95821eb0
x
2025-03-18 22:20:18 -04:00
Eugene Yurtsev
4b9cdb4107
add compilation benchmark
2025-03-18 22:16:10 -04:00
Eugene Yurtsev
b440b14fa7
x
2025-03-18 21:53:56 -04:00
Nuno Campos and GitHub
24f7d7c439
Add pydantic state benchmark case ( #3872 )
2025-03-18 18:10:50 -07:00
William FH and GitHub
9533d35a84
0.3.16 ( #3908 )
2025-03-18 17:37:16 -07:00
William FH and GitHub
48de4a7234
Fix reference cycle btwn PregelLoop and PregelRunner ( #3907 )
2025-03-18 17:37:01 -07:00
William Fu-Hinthorn
67ac35c5bc
0.3.16
2025-03-18 17:35:53 -07:00
William Fu-Hinthorn
12c7ddf3a3
Update kafka
2025-03-18 17:30:21 -07:00
William Fu-Hinthorn
d6caa3b00a
lint
2025-03-18 17:18:07 -07:00
William Fu-Hinthorn
3d48526c16
Methods are weak
2025-03-18 17:17:04 -07:00
Nuno Campos
2f3bd69bf5
Add pydantic benchmark
2025-03-18 16:12:34 -07:00
Nuno Campos
f10a0c6f32
Simpler runner
2025-03-18 15:15:26 -07:00
2eba27b01f
docs: fix typo in hil how to doc ( #3850 )
...
Current text in the doc is incorrect:
```
Use the search tool to ask the user where they are, then look up the weather there
```
The search tool is not the one to use. Instead should just tell the
model to ask the user.
In addition, an important step is missing and makes the code seem less
impactful:
```python
location = interrupt("Please provide your location:")
```
The question to ask the human is actually coming from the LLM, there is
no need to hardcode it:
```python
...
location = interrupt(ask.question)
```
Before merging, someone who validates this should push an update to cell
outputs. I cleared it out from my branch because it made too many
updates to the file and would make it harder to review.
Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com >
2025-03-18 18:00:49 -04:00
c0245a6ee9
docs: fix typo ( #3854 )
...
probably > properly
Co-authored-by: Vadym Barda <vadym@langchain.dev >
2025-03-18 18:00:39 -04:00
9e82d23252
docs: fix typos ( #3823 )
...
This pull request corrects a couple of typographical errors in the
documentation.
---------
Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com >
Co-authored-by: Vadym Barda <vadym@langchain.dev >
2025-03-18 17:58:47 -04:00
460c522902
docs: fix typo ( #3856 )
...
Added "a" to make paragraph correct.
Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com >
2025-03-18 17:58:30 -04:00
298a19b573
docs: add missing word 'in' in the docs related to passing runtime args to tools ( #3900 )
...
- Adds missing word 'in'
- Sentence should read -> "The core technique **in** the examples below
is"
Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com >
2025-03-18 21:56:33 +00:00
d2ec46b927
add ai-data-science-team to third party packages ( #3719 )
...
I'd like to add my AI Data Science Team to the LangGraph Prebuilt 3rd
Party Packages.
Repo: https://github.com/business-science/ai-data-science-team
Prebuilt Agent Guidelines:
https://langchain-ai.github.io/langgraph/prebuilt/
Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com >
2025-03-18 17:55:31 -04:00
Rafayet Habib and GitHub
22e4bf74fc
Update importing HumanMessage in add-summary-conversation-history.ipynb ( #3751 )
2025-03-18 21:30:32 +00:00
khneal and GitHub
96a0536ec4
doc: remove Python max version limit from example pyproject.toml ( #3843 )
...
LangGraph officially supported Python 3.13 back in October 2024:
https://changelog.langchain.com/announcements/langgraph-is-now-compatible-with-python-3-13
But why suggest restricting the version of Python at all? The app/agent
owner will be in control of the runtime version anyway, so don't add
unnecessary restrictions.
Note this example from Poetry:
https://python-poetry.org/docs/pyproject/#requires-python
I did not refactor pyproject.toml to the newer Poetry 2 / uv format, but
I can do that in a future PR if it will help... please don't let that
block approval+merging this PR.
2025-03-18 21:30:06 +00:00
8d33938173
Improve documentation string for SqliteSaver ( #3857 )
...
* Document that `check_same_thread` as an option when creating sqlite
connection.
* Document why it's OK to do that.
---------
Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com >
2025-03-18 21:29:05 +00:00
William FH and GitHub
1c73b1e45a
Schema coercer should never throw ( #3871 )
...
- pydantic will do that for us if needed
2025-03-18 14:17:08 -07:00
William FH and GitHub
465d5d648b
libs: pregel: find_subgraph_pregel: Do not cache introspection ( #3894 )
...
When searching for subgraphs stop caching inspection for the graph drawing & subgraph inference.
Fixes #3842
2025-03-18 14:09:55 -07:00
William Fu-Hinthorn
b751e8bcee
_evaluate() forward ref
2025-03-18 14:07:23 -07:00
Nuno Campos and GitHub
8ec3982056
Enable larger cases of sequential bench graph ( #3905 )
...
- Now that we're a lot faster on this case, we can enable some larger
test cases
2025-03-18 14:05:27 -07:00
William FH and GitHub
f17f264a7a
Merge branch 'main' into fix_subgraph_tools
2025-03-18 13:49:30 -07:00
William Fu-Hinthorn
086443472f
Drop cache
2025-03-18 13:46:41 -07:00
William Fu-Hinthorn
936e69404e
Revert "libs: pregel: find_subgraph_pregel: Do not search via introspection"
...
This reverts commit 2458f2d2e0 .
2025-03-18 13:43:08 -07:00
Tat Dat Duong
b1a25abc73
Add command
2025-03-18 21:22:40 +01:00
Nuno Campos
0e70b8d94f
Enable larger cases of sequential bench graph
...
- Now that we're a lot faster on this case, we can enable some larger test cases
2025-03-18 13:13:20 -07:00
Nuno Campos and GitHub
e1aa1a4510
0.3.15
2025-03-18 13:11:37 -07:00
Hamza Kyamanywa and GitHub
ae7dbd1fa5
docs: correct the word "every" ( #3902 )
...
- PR fix the word "every" in the sentence "It will be called every time
the LLM is called"
2025-03-18 19:58:28 +00:00
Vadym Barda and GitHub
3ec95153ce
ci: don't use real secrets in notebook runner ( #3572 )
2025-03-18 15:57:40 -04:00
Nuno Campos and GitHub
4836f8b18b
Speed up prepare_single_task ( #3893 )
...
- sequential(2000) goes from 8.4s to 4.1s
- replace UUID(str).bytes with faster binascii.unhexlify, and do it only
once per step
- find only the first active trigger, instead of the full list
- use a dedicated function for checking active trigger
2025-03-18 10:15:17 -07:00
Vadym Barda and GitHub
e7fbdeeb13
docs: fix formatting ( #3901 )
2025-03-18 13:00:36 -04:00
William Fu-Hinthorn
ee650ab85f
Only throw if in union
2025-03-18 09:58:07 -07:00
Nuno Campos
7a959f62cc
Fix assertion
2025-03-18 09:54:20 -07:00
Yassin Nouh and GitHub
82905297fd
docs: Add Pydantic usage examples and runtime coercion documentation ( #3588 )
...
## Description
This PR enhances the state-model documentation by adding comprehensive
examples for advanced Pydantic usage in LangGraph. It addresses issue
#2745 regarding the need for better documentation of Pydantic schema
behavior.
### Changes
- Added new section on Advanced Pydantic Model Usage
- Added examples for serialization behavior with nested models
- Added section on runtime type coercion with examples
- Added documentation for proper message type handling (BaseMessage vs
AnyMessage)
- Updated Pydantic error URLs to latest version
### Related Issues
Closes #2745
### Testing
- All notebook cells have been executed and outputs verified
- Examples demonstrate proper usage patterns
- Error cases are properly documented
### Documentation
The changes are documentation-focused and include:
- New examples for complex Pydantic models
- Runtime coercion behavior examples
- Message type handling best practices
### Reviewers
@eyurtsev
2025-03-18 09:47:17 -07:00
Nuno Campos
9b5549f759
Fix flaky assertion
2025-03-18 09:43:56 -07:00
Nuno Campos
fa96c0ac76
One more
2025-03-18 09:34:52 -07:00
Nuno Campos
98b8ff904c
Update test assertions for triggers
2025-03-18 09:30:29 -07:00
Nuno Campos
951131c8ec
Lint
2025-03-18 09:15:43 -07:00
Nuno Campos and Nuno Campos
8bcdba822e
Reduce to 4.1s
2025-03-18 09:15:28 -07:00
Nuno Campos and Nuno Campos
60fc49b448
Speed up prepare_single_task
...
- sequential(2000) goes from 8.4s to 4.7s
- replace UUID(str).bytes with simpler str.encode()
- find only the first active trigger, instead of the full list
- use a dedicated function for checking active trigger
2025-03-18 09:15:11 -07:00
Nuno Campos and GitHub
1d21b4ba08
Improve prepare_single_task trigger checks to linear complexity ( #3891 )
...
- Was O(n^2) due to individual channels created for every conditional
edge, including the default cond edge created for Command
- Now using a single channel per node for all conditional edge / command
triggers, reducing to linear complexity
- Improves run time on sequential(200) from 1.8s to 0.14s
2025-03-18 09:13:54 -07:00
Nuno Campos and GitHub
55ec0d3d2a
Speed up task triggers check ( #3890 )
...
- Using a sentinel value is faster than raising-catching an exception
2025-03-18 09:10:38 -07:00
Nuno Campos and GitHub
c7dd7be030
benchmarks: add sequential graph of a few hundred nodes ( #3882 )
...
Performance is poor due to state graph utilizing n^2 entries right now
to accommodate Command. Adding benchmark prior to updating
implementation.
2025-03-18 08:19:52 -07:00
Nuno Campos
47d38a3022
Replace get_catch w is_available
2025-03-18 08:19:22 -07:00
Nuno Campos
8e829f38af
Smaller sizes until we merge the fixes
2025-03-18 08:05:25 -07:00
Nuno Campos
3f241d00a3
Fix bench
2025-03-18 06:45:41 -07:00
Hamza Kyamanywa and GitHub
f0abf582dd
docs: make sentence relating to how to navigate between sub graphs clearer in the docs ( #3896 )
...
- fix typo / add missing word
- make sentence relating to how to navigate between sub graphs clearer
in the docs
2025-03-18 09:25:32 -04:00
blafab-hg
2458f2d2e0
libs: pregel: find_subgraph_pregel: Do not search via introspection
...
When searching for subgraphs do not attempt to search function non
locals for RunnableCallables as this captures unwanted reference to
surrounding variables.
2025-03-18 11:19:09 +01:00
Nuno Campos and GitHub
477a43dae0
Update pyproject.toml
2025-03-17 21:58:49 -07:00
Nuno Campos and GitHub
fc8e6ec64f
When using global resume value, ensure subgraphs consume it ( #3889 )
...
- Previously the global resume value was passed to subgraphs without
being consumed
- This would result in two parallel subgraph calls being able to use the
same resume value
- Note this behavior can't be implemented over the wire, that will be
fixed in future PR
Closes #3398
2025-03-17 21:26:33 -07:00
Nuno Campos
d6a457ef1d
Improve prepare_single_task trigger checks to linear complexity
...
- Was O(n^2) due to individual channels created for every conditional edge, including the default cond edge created for Command
- Now using a single channel per node for all conditional edge / command triggers, reducing to linear complexity
- Improves run time on sequential(200) from 1.8s to 0.14s
2025-03-17 21:26:26 -07:00
Nuno Campos
ce1077da40
Speed up task triggers check
...
- Using a sentinel value is faster than raising-catching an exception
2025-03-17 21:04:05 -07:00
Nuno Campos
969958695a
Add time when running directly
2025-03-17 20:59:10 -07:00
Nuno Campos
dd16ae4ba5
When using global resume value, ensure subgraphs consume it
...
- Previously the global resume value was passed to subgraphs without being consumed
- This would result in two parallel subgraph calls being able to use the same resume value
- Note this behavior can't be implemented over the wire, that will be fixed in future PR
2025-03-17 20:31:54 -07:00
Nuno Campos and GitHub
e24e141253
Fix concurrency issue in PregelScratchpad.consume_null_resume ( #3888 )
...
- Need to use a single operation to check if present and remove item
from list
- This doesn't fix the separate issue that parallel tasks claiming a
single interrupt value have somewhat undefined behavior (in the sense
that they will race to be the first to take it). That will be fixed in a
future PR
Closes #3875
2025-03-17 20:22:20 -07:00
Nuno Campos
eae1faa656
Fix
2025-03-17 20:12:33 -07:00
Nuno Campos
1976d6584c
Lint
2025-03-17 20:00:33 -07:00
Nuno Campos
54e18445fc
Fix concurrency issue in PregelScratchpad.consume_null_resume
...
- Need to use a single operation to check if present and remove item from list
- This doesn't fix the separate issue that parallel tasks claiming a single interrupt value have somewhat undefined behavior (in the sense that they will race to be the first to take it). That will be fixed in a future PR
2025-03-17 19:53:03 -07:00
Nuno Campos
69dc29aaf9
0.3.13
2025-03-17 18:52:09 -07:00
Nuno Campos and GitHub
aa5ff74845
Fix missing interrupts in stream ( #3886 )
...
- When multiple parallel tasks and/or subgraphs emit interrupts some
were missing from stream output
2025-03-17 18:51:42 -07:00
Nuno Campos and GitHub
6049aaa842
Enable xray for remote graphs ( #3879 )
2025-03-17 18:49:51 -07:00
Nuno Campos
576aa1ca02
Order
2025-03-17 18:41:36 -07:00
Nuno Campos
e28e97d5e0
Lint
2025-03-17 18:39:13 -07:00
Nuno Campos
59e7c63c93
Lint
2025-03-17 18:38:37 -07:00
Nuno Campos
be7dee1c3b
Fix
2025-03-17 18:35:53 -07:00
Nuno Campos
0aafa04bac
WIP Fix missing interrupts in stream
...
- When multiple parallel tasks and/or subgraphs emit interrupts some were missing from stream output
2025-03-17 18:31:15 -07:00
Nuno Campos and GitHub
2e1adaa867
0.3.12
2025-03-17 16:56:34 -07:00
Nuno Campos and GitHub
3f8b165592
Update state.py
2025-03-17 16:56:09 -07:00
William FH and GitHub
9ed0fa196c
langgraph-checkpoint 2.0.21 ( #3883 )
2025-03-17 15:25:26 -07:00
William Fu-Hinthorn
0b9adc28c3
langgraph-checkpoint 2.0.21
2025-03-17 15:15:29 -07:00
William FH and GitHub
3b0255d1ef
Check that migrations are idempotent ( #3881 )
2025-03-17 15:13:59 -07:00
Eugene Yurtsev
80c3ccba7b
add benchmark
2025-03-17 16:45:02 -04:00
William FH and GitHub
d4255a0645
Merge branch 'main' into wfh/idempotency_test_
2025-03-17 13:27:12 -07:00
William Fu-Hinthorn
2a71180c1d
Add tests for idempotency in migraionts
2025-03-17 12:43:21 -07:00
William Fu-Hinthorn
697f878e36
Make expires_at idempotent
2025-03-17 12:38:43 -07:00
William Fu-Hinthorn
987b9da4ab
Merge branch 'main' into nc/16mar/schema-coercer-no-throw
2025-03-17 11:58:20 -07:00
Tat Dat Duong
4bff1df4b0
Bump to 0.0.58
2025-03-17 18:14:51 +01:00
Tat Dat Duong
5104e31e35
feat(sdk-js): add bulkUpdateState method
2025-03-17 18:14:33 +01:00
Tat Dat Duong
7ae4739630
Make options optional
2025-03-17 18:07:14 +01:00
Nuno Campos
5db1949ae3
Fix
2025-03-17 09:55:21 -07:00
Nuno Campos
ddb29df667
Fix
2025-03-17 09:39:23 -07:00
Nuno Campos
fa467573d7
Enable xray for remote graphs
2025-03-17 09:36:33 -07:00
Tat Dat Duong
1a728a93c6
feat(sdk-js): add bulkUpdateState method
2025-03-17 17:22:03 +01:00
Nuno Campos
aaa0cd6b51
Fix
2025-03-16 11:53:29 -07:00
Nuno Campos
a9c831c11b
Schema coercer should never throw
...
- pydantic will do that for us if needed
2025-03-16 11:46:34 -07:00