Commit Graph

2755 Commits

Author SHA1 Message Date
Tat Dat Duong 77a2457774 feat(cli): pass LANGGRAPH_UI env vars 2025-03-31 11:54:54 +02:00
Ben Burns 1b865a16ca Add tests (w claude) for pregel/messages, pregel/runner, pregel/validate (#968) 2025-03-31 15:59:14 +13:00
Nuno Campos 9388fd2bb3 Add tests (w claude) for pregel/messages, pregel/runner, pregel/validate 2025-03-31 15:56:25 +13:00
Ben Burns 7c19cdd464 Add tests for pregel/config, pregel/subgraph, pregel/debug, pregel/io (#967) 2025-03-31 15:48:27 +13:00
Ben Burns c62cbe4c21 Merge branch 'main' into nc/6mar/claude-tests 2025-03-31 14:51:31 +13:00
Ben Burns 26964ad1ef release(langgraph): 0.2.62 (#1063) 2025-03-31 14:15:38 +13:00
Ben Burns 2f54bfcec7 release(langgraph): 0.2.62 0.2.62 2025-03-31 14:13:00 +13:00
Ben Burns d03c22d080 fix(langgraph): compose & propagate AbortSignal correctly, trigger on more early termination cases (#1022)
The `AbortSignal` passed to each node via the `signal` field on the node's `config` argument now aborts when:

- The `AbortSignal` passed into `Pregel.invoke`, `Pregel.stream`, or `Pregel.streamEvents` via `config.signal` is aborted.
- The currently executing graph super-step times out.
- Any other node executing concurrently within the same superstep throws an `Error`.
  - Note: "bubble-up" errors (e.g. `NodeInterrupt` and `CommandParent`) will _not_ trigger an abort.
- The `cancel` method is called on the stream returned by `Pregel.stream` or `Pregel.streamEvents`.

Importantly, `AbortSignal` are also now composed intelligently throughout the graph execution, allowing for a node in a parent graph to call a subgraph with an `AbortSignal` that originates in the node, and the signal received by the subgraph nodes will abort when `abort()` is called on the associated `AbortController`, as well as in any of the cases mentioned above, including when the parent graph's external `AbortSignal` is aborted.

fixes #319
2025-03-31 14:04:39 +13:00
Ben Burns 46d95d25f9 fix(langgraph): propagate AbortSignals correctly to subgraphs 2025-03-31 13:51:56 +13:00
Ben Burns adeeb2ebc6 fix(langgraph): propagate abort signal when stream.cancel called 2025-03-31 13:51:56 +13:00
Ben Burns fb346dfe46 fix(langgraph): plumb augmented AbortSignal through to node config 2025-03-31 13:51:56 +13:00
David Duong 260c25cf7a release(langgraph): 0.2.61 (#1061) 2025-03-28 22:32:07 +01:00
Tat Dat Duong 529eed35a0 release(langgraph): 0.2.61 0.2.61 2025-03-28 22:29:50 +01:00
David Duong c048bec03e feat(sdk-js): run optimistic values mutator before any network request (#4070) 2025-03-28 21:57:33 +01:00
Brace Sproul a6cb505402 release(cua): 0.0.4 (#1060) 2025-03-28 13:49:09 -07:00
Tat Dat Duong 5d972b9ff8 Bump to 0.0.62 2025-03-28 21:39:44 +01:00
Tat Dat Duong 2d00df0c5c feat(sdk-js): run optimistic values mutator before any network request 2025-03-28 21:39:35 +01:00
Tat Dat Duong 5c85f64253 Bump to 0.0.19 2025-03-28 21:27:30 +01:00
Brace Sproul 72192495c6 fix(cua): Bump min version for OpenAI peer dep (#1059) 2025-03-28 20:19:41 +00:00
David Duong 95f4fbdbb8 fix(state): fix types for overlapping schemas (#1057) 2025-03-28 18:49:27 +01:00
David Duong 61c1b95499 fix(prebuilt): make sure the AIMessage mutation occurs within lc_kwargs as well (#1058) 2025-03-28 18:49:04 +01:00
Tat Dat Duong ca62878ec6 fix(prebuilt): make sure the AIMessage mutation occurs within lc_kwargs as well
Fixes https://github.com/langchain-ai/langgraphjs/issues/993
2025-03-28 18:12:38 +01:00
Tat Dat Duong 6e438d3fc0 fix(state): fix types for overlapping schemas 2025-03-28 16:18:39 +01:00
David Duong e3d39bacba release(sdk-js): 0.0.61 (#4069) 2025-03-28 15:24:38 +01:00
Tat Dat Duong 7456004b5f release(sdk-js): 0.0.61 2025-03-28 15:23:25 +01:00
David Duong f527e9c69c 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 3af194d317 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 bd1f4c03e9 Merge pull request #37 from langchain-ai/dqbd/store-flakiness-remove
chore: remove check for Date.now()
2025-03-28 15:08:26 +01:00
Tat Dat Duong c0e3663caf chore: remove check for Date.now()
Unsure why Date.now() within api.test.ts would be different from Date.now() from API code only on Windows?
2025-03-28 15:02:57 +01:00
David Duong fdf5b7c329 Merge pull request #36 from langchain-ai/dqbd/ui-shared-deps
feat(api): add configurable shared modules
2025-03-28 14:49:32 +01:00
Tat Dat Duong dbf6495b44 Do not throw error if window is undefined due to Next 2025-03-27 21:03:54 +01:00
Tat Dat Duong 8261f0aeb4 Fix object assignment 2025-03-27 20:58:39 +01:00
David Duong aad7735675 Merge pull request #35 from langchain-ai/dqbd/runnable-config-dynamic-graphs
feat(api): add support for dynamically created graphs via runnable config
2025-03-27 17:51:22 +01:00
Eugene Yurtsev 4a21a74226 docs: update llms overview (#1055) 2025-03-27 12:48:20 -04:00
Tat Dat Duong 7aac7244a9 Add tests for dynamically generated graphs 2025-03-27 17:36:09 +01:00
Jacob Lee 4961f8299f docs: Fix structured output docs sidebar + links (#1056) 2025-03-27 09:35:13 -07:00
Eugene Yurtsev 0f7aef2162 x 2025-03-27 12:34:25 -04:00
Eugene Yurtsev f26a99693e x 2025-03-27 10:45:53 -04:00
Eugene Yurtsev 541aa64f20 x 2025-03-27 10:31:21 -04:00
Vadym Barda 05e21f01e5 fix(langgraph): use full message history for structured responses in createReactAgent (#1050) 2025-03-27 15:10:45 +13:00
David Duong 2b603f8ad5 fix(langgraph): do not show side-effect warning for zod entrypoint (#1047) 2025-03-27 01:01:37 +01:00
Brace Sproul 5fe8f265a8 feat(cua): Implement passing blocked domains (#1048) 2025-03-26 15:53:08 -07:00
Ben Burns 985cda6a39 release(langgraph): 0.2.60 (#1049) 2025-03-27 11:52:35 +13:00
Ben Burns 59eff502ca Release 0.2.60 0.2.60 2025-03-27 11:46:21 +13:00
Tat Dat Duong ce50097d23 fix(langgraph): do not show side-effect warning for zod entrypoint 2025-03-26 23:44:57 +01:00
Ben Burns e3c0d71816 fix(langgraph): better Command/Send deserialization & type gaurds (#1046) 2025-03-27 11:32:17 +13:00
Tat Dat Duong cf5772dda6 feat(sdk-js): add option to manually provide implementation for shared modules 2025-03-26 22:46:59 +01:00
Tat Dat Duong 2eead7b039 feat(api): add configurable shared modules 2025-03-26 22:43:25 +01:00
Tat Dat Duong 6acc91b4c2 feat(api): add support for dynamically created graphs via runnable config 2025-03-26 22:12:47 +01:00
Brace Sproul 3406c96132 release(cua): 0.0.3 (#1045) 2025-03-26 18:45:03 +00:00