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
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