Commit Graph

2743 Commits

Author SHA1 Message Date
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
Tat Dat Duong 4bf750557f deps(langgraph): upgrade to TypeScript 5.8.x
Turns out that `moduleResolution: node10` will achieve the same result as setting `src/package.json` to `{}` (verified via git worktrees).

Also switching `moduleResolution: bundler` for ESM build, after which I've compared the build output of `libs/checkpoint` via `diff -r -q`.
2025-05-24 16:24:42 +02:00
Tat Dat Duong 68c6514551 feat(langgraph): deferred nodes 2025-05-24 02:25:45 +02:00
David Duong 7ed5e87951 feat(langgraph): reduce number of branches (#1215) 2025-05-24 01:53:58 +02:00
Tat Dat Duong 24e6d94d98 feat(langgraph): reduce number of branches
Port of https://github.com/langchain-ai/langgraph/pull/4064
2025-05-24 01:47:31 +02:00
David Duong c01cd33fee feat(langgraph): consolidate channels for conditional edges (#1214) 2025-05-24 01:18:19 +02:00
Tat Dat Duong ad8789faf7 Lint 2025-05-24 01:09:51 +02:00
Tat Dat Duong 3c28d141ac feat(langgraph): consolidate channels for conditional edges
Port of https://github.com/langchain-ai/langgraph/pull/3891
2025-05-24 01:07:04 +02:00
David Duong d020adcf73 feat(langgraph): add support for then in addConditionalEdge (#1213) 2025-05-24 00:58:24 +02:00
Tat Dat Duong 234c753c56 chore(langgraph): branch refactor 2025-05-24 00:56:11 +02:00
David Duong 1eed035eff feat(langgraph): support removing all messsages with RemoveMessage (#1211) 2025-05-23 23:30:20 +02:00
Tat Dat Duong 8676ada543 feat(langgraph): support removing all messsages with RemoveMessage
Port of https://github.com/langchain-ai/langgraph/pull/4117
2025-05-23 18:15:13 +02:00
David Duong 57d7cfeb73 feat: MessagesZodSchema (#1203) 2025-05-23 00:38:03 +02:00
Hunter Lovell f66bbef9ec fix(langgraph): fix zod state jsdoc imports 2025-05-22 15:35:47 -07:00
Hunter Lovell cb4145306e chore(langgraph): add missing zod plugin import 2025-05-22 15:23:13 -07:00
David Duong 9e344b71b9 feat(langgraph): allow zod schemas in node input opts (#1204) 2025-05-23 00:20:01 +02:00
Tat Dat Duong 118e8fe52c Add query to return type 2025-05-23 00:17:42 +02:00
Hunter Lovell c216eaf897 chore(langgraph): remove unused import 2025-05-22 13:56:46 -07:00
Hunter Lovell 0cd985e839 fix(langgraph): make tests explicitly test node input channel 2025-05-22 13:51:13 -07:00
Hunter Lovell a5451ef7ee chore(langgraph): fix test imports 2025-05-22 13:51:13 -07:00
Hunter Lovell fea8b7697a fix(langgraph): zod state input format & lints 2025-05-22 13:51:13 -07:00
Hunter Lovell 359bc622b2 feat(langgraph): allow zod schemas in node input opts 2025-05-22 13:51:13 -07:00
Hunter Lovell ccf8394329 chore(langgraph): simplify zod state schema reducer signature 2025-05-22 13:44:39 -07:00
Hunter Lovell e847a5d701 chore(langgraph): add note about failing test 2025-05-22 13:41:08 -07:00
David Duong bb3f644ca9 build(deps): bump vite from 6.2.1 to 6.3.5 in the npm_and_yarn group across 1 directory (#1205) 2025-05-22 20:44:16 +02:00
David Duong 4f7479b3f0 feat(langgraph): add pushMessage method (#1208) 2025-05-22 20:40:03 +02:00
Tat Dat Duong a3dea4dfdd feat(langgraph): add pushMessage method
This method is especially useful when yielding a manual AI message to bind Gen UI elements and for allowing other libraries to use `messages` / `messages-tuple` stream
2025-05-22 20:29:42 +02:00
Hunter Lovell 38f52927d8 feat(langgraph): add MessagesZodState tests 2025-05-22 11:12:43 -07:00
Hunter Lovell 6e8cf36386 chore(langgraph): walk back docs on zod intersections 2025-05-22 11:12:43 -07:00
Hunter Lovell 4909b61b18 fix(docs): wrong backlink for zod state callout 2025-05-22 11:12:43 -07:00
Hunter Lovell 48faa271d8 fix(langgraph): use non-prototype reducer for zod messages prebuilt 2025-05-22 11:12:43 -07:00
Hunter Lovell 34c89f6678 chore(langgraph): zod messages lint & format 2025-05-22 11:12:43 -07:00
Hunter Lovell 45213cb30f chore(docs): add zod messages state callout 2025-05-22 11:12:43 -07:00
Hunter Lovell 7f6562ab4e feat(langgraph): add zod messages state utility 2025-05-22 11:12:43 -07:00
Tat Dat Duong 557d397646 Bump to 0.0.78 2025-05-22 19:08:39 +02:00
Tat Dat Duong 7e956424a4 Add joinStream method 2025-05-22 19:07:01 +02:00