Commit Graph

2771 Commits

Author SHA1 Message Date
Tat Dat Duong 2f46ff24da Remove ts-node 2025-02-12 15:56:01 -08:00
Tat Dat Duong 148a73ba30 Cleanup 2025-02-12 15:55:10 -08:00
Tat Dat Duong b9913926c0 Cleanup 2025-02-12 15:55:10 -08:00
Tat Dat Duong dcd4ee3b8d test 2025-02-12 15:55:09 -08:00
Nuno Campos 1ce7921ad8 Speed up! 2025-02-12 15:55:07 -08:00
Nuno Campos ca1fb7a45e fix(sdk-js): improve SSE parsing performance by 10x (#3401) 2025-02-12 10:08:46 -08:00
Tat Dat Duong bd2d16fdbf Simplify types for additional kwargs 2025-02-12 09:16:07 -08:00
Tat Dat Duong 7bb383cdd7 Update deps 2025-02-12 09:13:10 -08:00
Tat Dat Duong 7642c6363f Make event listeners a callback 2025-02-12 09:11:44 -08:00
Tat Dat Duong abc2eea57d Bump to 0.0.39 2025-02-12 08:52:25 -08:00
Tat Dat Duong 6bff6a2dc7 fix(sdk-js): improve SSE parsing performance by 10x 2025-02-12 08:51:53 -08:00
Tat Dat Duong 88ebbc3cb1 Allow omitting client 2025-02-12 08:50:01 -08:00
Vadym Barda c5a7cb7b45 Release 0.2.46 (#860) 2025-02-12 00:11:37 +00:00
Vadym Barda c1d517da84 langgraph: allow passing model.bindTools() to createReactAgent (#859) 2025-02-12 00:03:47 +00:00
Vadym Barda 0bccd947c3 langgraph: use 'prompt' param for model input preprocessing in create_react_agent (#858) 2025-02-11 15:06:25 -05:00
Tat Dat Duong cf920cae39 Branching 2025-02-11 10:10:54 -08:00
Tat Dat Duong 211ae2c0ee Fix typo 2025-02-11 09:58:19 -08:00
Tat Dat Duong b45e18b45a Update peer dependencies 2025-02-11 09:09:08 -08:00
Tat Dat Duong 01202b9999 Make sure we clear when switching threads 2025-02-11 09:01:53 -08:00
Tat Dat Duong 48734e134d Add submit / stop 2025-02-11 09:01:53 -08:00
Tat Dat Duong cfebf6ad5b Prevent double Error: Error 2025-02-11 09:01:52 -08:00
Tat Dat Duong 65d1964786 Add other stream parameters 2025-02-11 09:01:52 -08:00
Tat Dat Duong d9c6a9a84e Clean up the API 2025-02-11 09:01:52 -08:00
Tat Dat Duong f854a8b463 Add debugger, that is not exported 2025-02-11 09:01:52 -08:00
Tat Dat Duong e98617c383 Allow update: null 2025-02-11 09:01:52 -08:00
Tat Dat Duong b052a948eb Update types 2025-02-11 09:01:51 -08:00
Tat Dat Duong d263451443 feat(sdk-js): add experimental useStream hook 2025-02-11 09:01:51 -08:00
David Duong cffe2d4ef2 feat(sdk-js): strongly-typed messages, state/update-type, stream mode (#3360)
StateType, UpdateType is set on the Client rather than on
`RunsClient.stream` because of lack of partial type arguments
application.

This PR also describes the message serialization format emitted by
LangGraph Server (which may change ie. converting `type` to `role`).
Avoiding direct import of `@langchain/core` for the core LangGraph SDK
client, thus these types were copied from `@langchain/core` (a script is
used to aid with keeping track with core)
2025-02-11 08:56:02 -08:00
Tat Dat Duong 7865f8e40f Add feedback stream event 2025-02-11 08:45:15 -08:00
Tat Dat Duong 2d855c6933 fix(sdk-js): non-ok response is not throwing anymore 2025-02-11 08:45:15 -08:00
Tat Dat Duong ffd7c57640 Add ErrorStreamEvent 2025-02-11 08:45:14 -08:00
Tat Dat Duong 8d8b34a617 Cleanup types 2025-02-11 08:45:14 -08:00
Tat Dat Duong a2c5eb23e9 Rename to more sane event type 2025-02-11 08:45:14 -08:00
Tat Dat Duong f421c13885 Update content 2025-02-11 08:45:14 -08:00
Tat Dat Duong da3a1a862d feat(sdk-js): strongly-typed messages, state/update-type, stream mode 2025-02-11 08:45:14 -08:00
Vadym Barda 3b77b9853b docs: add adopters (#857) 2025-02-11 02:07:32 +00:00
Brace Sproul ce80114cf9 fix(sdk-js): Export types (#3377) 2025-02-10 18:02:42 -08:00
bracesproul 5aaf07f5b6 bump dep 2025-02-10 17:47:07 -08:00
Vadym Barda 2447aefeb6 langgraph: export AnnotationRoot (#856) 2025-02-10 20:34:50 -05:00
bracesproul be64b1a937 fix(sdk-js): Export types 2025-02-10 17:30:19 -08:00
Vadym Barda 7e78d7b568 langgraph: allow setting custom names for compiled graph / compiled state graph (#852) 2025-02-10 19:01:21 -05:00
Jacob Lee fa2a1fdf46 docs: Fix human in the loop concept example (#854) 2025-02-10 21:58:57 +00:00
vbarda 7f47f2e2b8 first commit 2025-02-10 11:38:05 -08:00
David Duong e9f972ebc5 Merge pull request #9 from langchain-ai/dqbd/custom-mode
fix(api): add custom events stream mode back
2025-02-09 07:50:42 -08:00
David Duong 3a7f6cf5e1 fix(messages): reuse the first valid message ID for subsequent chunks (#798) 2025-02-09 15:45:04 +00:00
David Duong 0b9f1dbda9 fix(remote): use "messages-tuple" when requesting "messages" (#799) 2025-02-09 16:25:32 +01:00
Tat Dat Duong 1b8e74bba8 fix(api): add custom events stream mode back 2025-02-09 07:13:30 -08:00
Tat Dat Duong 3507b1ad69 fix(sdk-js): use type instead of interface to avoid TS errors
Allow assigning `threadState?.checkpoint` to the `configurable` object without TSC throwing "Index signature for type 'string' is missing in type".
2025-02-08 10:32:28 -08:00
Brace Sproul 8b84b36e20 release(sdk-js): 0.0.37 (#3354) 2025-02-07 12:44:55 -08:00
bracesproul 08d26785ad release(sdk-js): 0.0.37 2025-02-07 12:35:51 -08:00