Commit Graph

2778 Commits

Author SHA1 Message Date
Tat Dat Duong eb1bea1789 feat(langgraph): return interrupts with streamMode: "values"
Partial port of https://github.com/langchain-ai/langgraph/pull/4374, does not tackle multi-resumes for now
2025-05-31 00:41:16 +02:00
David Duong b91f75d12e feat(prebuilt): add preModelHook and postModelHook (#1212) 2025-05-30 23:06:52 +02:00
David Duong 4564c21e5b fix(langgraph): allow null input to resume graph (#1243) 2025-05-30 22:58:03 +02:00
Tat Dat Duong a2ed0ae3df Add check for interrupt 2025-05-30 22:55:11 +02:00
Tat Dat Duong d3f1062f30 fix(langgraph): allow null input to resume graph 2025-05-30 22:51:47 +02:00
Tat Dat Duong 71dee1cf0c Fix edges 2025-05-30 22:44:48 +02:00
Tat Dat Duong dd84df01e0 Lint 2025-05-30 20:10:37 +02:00
Tat Dat Duong fa6ad84ff6 Add mermaid structure tests for each possible combination 2025-05-30 20:10:26 +02:00
David Duong 43d1f326a8 fix(docs): typos (#1167) 2025-05-30 18:01:05 +02:00
David Duong 5e4336e673 build(deps): bump next from 14.2.26 to 15.2.4 in /environment_tests/test-exports-vercel in the npm_and_yarn group across 1 directory (#1240) 2025-05-30 17:59:47 +02:00
Tat Dat Duong f3631ee357 Don't create AnnotationRoot directly 2025-05-30 02:14:07 +02:00
Tat Dat Duong 38a97bfb0e Fix tests 2025-05-30 02:14:06 +02:00
Tat Dat Duong e536db6bc8 feat(prebuilt): add preModelHook and postModelHook 2025-05-30 02:14:06 +02:00
David Duong bb85051d41 fix(langgraph): apply Zod reducer when attempting to validate input (#1241) 2025-05-30 02:10:54 +02:00
Tat Dat Duong 4def33350c fix(langgraph): apply Zod reducer when attempting to validate input
Also adds additional tests for `pregel.test-d.ts`
2025-05-30 02:07:04 +02:00
David Duong a512380c4c feat(langgraph): add typedNode utility (#1235) 2025-05-30 01:02:26 +02:00
Tat Dat Duong d3a3da59e7 Remove other changes 2025-05-30 01:00:07 +02:00
Tat Dat Duong b40e877b87 Remove extra change 2025-05-30 00:59:39 +02:00
Tat Dat Duong fe8e0417eb Merge branch 'main' into dqbd/util-typed-node 2025-05-30 00:58:36 +02:00
David Duong 07a8594baa feat(langgraph): introduce strict typing for .stream() methods (#1239) 2025-05-30 00:57:43 +02:00
dependabot[bot] 824c4f04a9 build(deps): bump next
Bumps the npm_and_yarn group with 1 update in the /environment_tests/test-exports-vercel directory: [next](https://github.com/vercel/next.js).


Updates `next` from 14.2.26 to 15.2.4
- [Release notes](https://github.com/vercel/next.js/releases)
- [Changelog](https://github.com/vercel/next.js/blob/canary/release.js)
- [Commits](https://github.com/vercel/next.js/compare/v14.2.26...v15.2.4)

---
updated-dependencies:
- dependency-name: next
  dependency-version: 15.2.4
  dependency-type: direct:production
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-29 22:57:18 +00:00
David Duong 36aa2ac288 feat(langgraph): node / task cache (#1225) 2025-05-30 00:56:17 +02:00
Tat Dat Duong 56af16327f Merge branch 'main' into dqbd/node-caching 2025-05-30 00:53:29 +02:00
David Duong b65f30d303 feat(langgraph): deferred nodes (#1210) 2025-05-29 22:16:12 +02:00
David Duong a6f56a1d26 chore(langgraph): allow generic node name and arguments for Command / Send (#1234) 2025-05-29 22:14:34 +02:00
David Duong 95d43aa9b5 fix(langgraph): fix default input Zod schema not obtaining langgraph metadata (#1232) 2025-05-29 22:11:29 +02:00
Tat Dat Duong 02fa073104 Add more tests, fix awaited 2025-05-29 21:57:09 +02:00
Tat Dat Duong 9f5c16428a Enhance typing 2025-05-29 21:45:08 +02:00
Tat Dat Duong 587373d454 Another workaround for lack of @ts-ignore / @ts-expect-error in tsc build 2025-05-29 21:32:58 +02:00
Tat Dat Duong ffadb455de Fix test 2025-05-29 21:32:41 +02:00
Tat Dat Duong 1a050b1eae feat(langgraph): introduce strict typing for .stream() methods 2025-05-29 17:25:48 +02:00
Tat Dat Duong 1849e8134e feat(langgraph): add typedNode utility 2025-05-29 03:13:38 +02:00
Tat Dat Duong 2763e52846 Reorder 2025-05-29 02:23:37 +02:00
Tat Dat Duong e6664154f6 chore(langgraph): allow generic node name and arguments for Command / Send 2025-05-29 01:37:32 +02:00
David Duong e0b65cc93d fix(langgraph): improve error message when attempting to pass an invalid argument to StateGraph (#1233) 2025-05-29 01:32:34 +02:00
Tat Dat Duong 730cb8ef50 fix(langgraph): improve error message when attempting to pass an invalid argument to StateGraph
Closes #1131
2025-05-29 01:08:51 +02:00
Tat Dat Duong ac3d2707ad fix(langgraph): fix default input Zod schema not obtaining langgraph metadata
Also adds `langgraph_type: "messages`` for Studio
2025-05-29 00:46:43 +02:00
David Duong c9e96aa500 release(langgraph): 0.2.74 (#1231) 0.2.74 2025-05-28 21:30:48 +00:00
David Duong 676958a6c5 fix(langgraph): memory leak when using AbortSignal.any(...) (#1230) 2025-05-28 23:24:05 +02:00
Tat Dat Duong cf5fe928a5 fix(langgraph): memory leak when using AbortSignal.any(...)
Replacing to our polyfill does seem to avoid spurious memory leaks on v22.14. See https://github.com/nodejs/node/issues/55328 for more details
2025-05-28 22:45:17 +02:00
Tat Dat Duong 6ceb7f4d7b Fix build 2025-05-28 19:43:10 +02:00
Tat Dat Duong 5c2d128b72 Make tests faster 2025-05-28 19:21:52 +02:00
Tat Dat Duong 5d2c6b6818 Make sure that the operations are properly enqueued 2025-05-28 19:17:04 +02:00
Tat Dat Duong 2a457f8a1c Remove comments, add a test for slow cache writes 2025-05-28 18:42:46 +02:00
David Duong 57217d955b fix(langgraph): allow passing LangGraphRunnableConfig as an secondary argument to getStore(), getWriter() and getCurrentTaskInput() (#1220) 2025-05-28 18:19:05 +02:00
Tat Dat Duong 8c7797f831 feat(langgraph): node / task cache 2025-05-28 18:16:18 +02:00
David Duong 3bfb9a8e31 chore(langgraph): split call method from executeTasksWithRetry (#1226) 2025-05-28 03:39:37 +02:00
Tat Dat Duong b0ba1fc49e chore(langgraph): split call method from executeTasksWithRetry
Requirement for porting https://github.com/langchain-ai/langgraph/pull/3907
2025-05-28 03:34:34 +02:00
Tat Dat Duong 52e56c1c20 fix(langgraph): allow passing LangGraphRunnableConfig as an secondary argument to getStore(), getWriter() and getCurrentTaskInput()
Closes `getCurrentTaskInput` Error #1198
2025-05-26 15:15:29 +02:00
David Duong 6f2a391575 deps(langgraph): upgrade to TypeScript 5.8.x (#1216) 2025-05-24 23:52:20 +02:00