Commit Graph

2743 Commits

Author SHA1 Message Date
Jacob Lee 0d0ecb772e Merge 0.1 (#342) 0.1.0 2024-08-22 11:26:15 -07:00
jacoblee93 81ebfe82b0 Merge 2024-08-22 11:10:40 -07:00
Jacob Lee 8c8d0a9f21 Rename (#343) 2024-08-22 11:09:36 -07:00
Brace Sproul a196347838 langgraph[minor]: Expose MessagesState annotation (#333)
* langgraph[minor]: Expose MessagesState annotation

* fix issues

* format

* side effects

* add new entrypoint file

* message to messages

* message_state -> messages_state

* bump

* add to entrypoint

* format n lint

* Fix

---------

Co-authored-by: jacoblee93 <jacoblee93@gmail.com>
2024-08-22 10:59:47 -07:00
jacoblee93 9e53262cb5 Fix API ref build 2024-08-22 10:32:01 -07:00
jacoblee93 8a1e416c6f Fix API refs 2024-08-22 10:16:57 -07:00
jacoblee93 22e0e33e99 Fix export tests 2024-08-22 10:03:57 -07:00
Jacob Lee dc33895b84 Split checkpointers into libraries (#341)
* Split checkpointers into libraries

* Update readme

* Fix CI

* Update release scripts

* Update README

* Update rc

* Preserve peer deps for now
2024-08-22 09:43:15 -07:00
jacoblee93 65996bef8f Adds test for callbacks and returning empty objects in nodes 2024-08-22 01:36:01 -07:00
jacoblee93 5f2c8b953a Merge branch 'main' of https://github.com/langchain-ai/langgraphjs into 0.2 2024-08-22 01:20:38 -07:00
Jacob Lee ae29f741b8 Refactor task execution, fix pending writes and resuming from error state (#340) 2024-08-22 01:11:50 -07:00
Brace Sproul d9d219f28d docs[minor]: Update graph init syntax of more docs (#335)
* docs[minor]: Update graph init syntax of more docs

* start updating hierarchial agents ntbk

* updated hierarchical agent doc

* fix type errors

* updated multi agent colab doc

* fixed plan and execute doc

* reflection and rewoo

* remove dep
2024-08-21 17:12:44 -07:00
Brace Sproul 788ed5fc45 infra[patch]: Bump langchain scripts version (#334) 2024-08-21 14:14:20 -07:00
Jacob Lee a226918956 Add pending writes to debug state, fix forking state bug (#338)
* Add pending writes to debug state

* Fix checkpoint forking bug

* Fix test
2024-08-21 11:17:54 -07:00
jacoblee93 3598cc115f Rc 2024-08-21 09:52:32 -07:00
David Duong 74442113c1 feat(debug): add checkpoint debug events (#323)
* feat(debug): add checkpoint debug events

* fix(algo): only return channels which actually triggered the task (#324)

* Match checkpoint events with Python

* Revert triggers PR
2024-08-21 09:50:56 -07:00
David Duong 1009d61a72 feat(js-sdk): add config and parent_config to thread state schema (#1411)
* feat(js-sdk): add config and parent_config to thread state schema

* Bump to 0.0.5
2024-08-21 17:00:10 +02:00
jacoblee93 aaed10c6e3 Merge branch 'main' of https://github.com/langchain-ai/langgraphjs into 0.2 2024-08-20 17:33:03 -07:00
Jacob Lee d7a9232cab Update channel base class, fix checkpointer error handling in loop (#337)
* Update channel base class, fix checkpointer error handling in loop

* Fix
2024-08-20 17:32:44 -07:00
Brace Sproul 8ad1c7ca36 docs[minor]: Add missing items to sidebar, add new tools doc (#332) 2024-08-20 12:14:33 -07:00
Brace Sproul bcefdd0cfa docs[patch]: Update init syntax in readmes (#331) 2024-08-20 11:14:38 -07:00
Jacob Lee 1b701f2946 Refactor to use PregelLoop (#330)
* Refactor checkpoint

* Fix lint and format

* Fix tests, fix UUIDv5 issue

* Fix build

* Refactor _applyWrites

* Finish initial loop implementation

* Fix build

* Continued refactor

* Fix test
2024-08-20 09:57:57 -07:00
jacoblee93 fe3e93654f Merge branch 'main' of https://github.com/langchain-ai/langgraphjs into 0.2 2024-08-19 22:22:13 -07:00
Brace Sproul b4ccbe2919 docs[minor]: Update init syntax docs (#328)
* docs[minor]: Update init syntax docs

* start porting chat agent executor w func calling doc

* finished porting

* validated

* agent executor refactor

* nits

* update branching how to

* updated breakpoints doc

* updated configuration doc

* updated dynamically returning directly ntbk

* updated edit graph state doc

* update force calling a tool doc

* updated human in the loop doc

* Updated manage conversation history doc

* Updated managing agent steps doc

* update postgres notebook

* update persistence notebook

* updated stream tokens doc

* updated stream updates doc

* updated stream values doc

* updated streaming tokens without langchain doc

* updated subgraph docs

* updated time travel guide

* updated dealing with tool calling errors doc

* updated use in web env guide

* fix wait user input guide
2024-08-19 18:11:22 -07:00
Brace Sproul fd6233e010 ci[minor]: Add script & GH action to validate deno and node deps in sync (#327)
* ci[minor]: Add script & GH action to validate deno and node deps in sync

* cr

* cr
2024-08-16 15:20:37 -07:00
Brace Sproul 3ba0a662cc ci[minor]: Add validate notebooks GH action (#321)
* ci[minor]: Add validate notebooks GH action

* update cmd to look inside examples too

* cr

* add examples package.json

* cr
2024-08-16 09:20:39 -07:00
Jacob Lee a89219ce30 Support checkpoint_ns, refactor (#313)
* Refactor checkpoint

* Fix lint and format

* Fix tests, fix UUIDv5 issue

* Fix build
2024-08-14 15:16:12 -07:00
Jacob Lee 35669d8729 Refactor pregel into algo (#317) 2024-08-14 08:45:50 -07:00
David Duong 0fbe9bd9cb feat(pregel): add debug stream mode (#316)
* feat(pregel): add support for multiple stream modes

* Fix lint

* feat(pregel): add debug stream mode

---------

Co-authored-by: jacoblee93 <jacoblee93@gmail.com>
2024-08-14 08:16:07 -07:00
David Duong 12532172b0 feat(pregel): add support for multiple stream modes (#315)
* feat(pregel): add support for multiple stream modes

* Fix lint

* Rename
2024-08-14 07:57:56 -07:00
Tat Dat Duong 5c270646c7 Pass the memory saver from the main thread 2024-08-14 16:57:07 +02:00
Tat Dat Duong 209559aedd Run the JS from Python, use new thread 2024-08-14 16:48:15 +02:00
Isaac Francisco 0524597b40 remove messagegraph (#314) 2024-08-14 07:36:40 -07:00
Tat Dat Duong b7c006b3f2 Cleanup server 2024-08-13 21:04:02 +02:00
Tat Dat Duong 05698f5048 Use unix sockets 2024-08-13 20:41:25 +02:00
David Duong 28263d6e25 feat(types): export CompiledGraph (#312) 2024-08-13 18:19:15 +02:00
Tat Dat Duong ea2d88e032 Code cleanup 2024-08-13 17:41:08 +02:00
Tat Dat Duong 2c6789ce3e Handle serialization 2024-08-13 17:32:08 +02:00
Tat Dat Duong 42f1c08480 Add IPC PoC 2024-08-13 17:23:12 +02:00
Tat Dat Duong 6ddabcf278 Add type extraction util method 2024-08-13 10:29:37 +02:00
David Duong 9fa84b8944 feat(types): expose node type, run input and run output in compiled graph (#311)
* feat(types): expose node type, run input and run output in compiled graph

* Use declare
2024-08-13 01:06:21 -07:00
Tat Dat Duong 3be0f9567c Initial commit 2024-08-12 19:17:25 +02:00
Jacob Lee a8a9d119df Release 0.0.34 (#309) 2024-08-12 13:05:49 +00:00
Jacob Lee a0f86425cd Adds docstring for Send API (#308) 2024-08-12 06:02:06 -07:00
Nuno Campos ffef128828 Add Annotation.Root to make it easier to access State, Update and Node types (#307)
* Add Annotation.Root to make it easier to access State, Update and Node types

* Use declare to prevent overwriting, add test

* Lint

* Update test

---------

Co-authored-by: jacoblee93 <jacoblee93@gmail.com>
2024-08-12 05:45:31 -07:00
Jacob Lee 1e66bc22af Implement send API (#305)
* Allow multiple writes to the same node at a given step

* Implement send

* Fix

* Fix build

* Fix test

* Adds map reduce test

* Fix streaming and test

* Fix

* Update test

* Fix display of next tasks in graph state
2024-08-12 05:07:52 -07:00
Jacob Lee 802111dd34 Remove core deps from export tests to resolve conflicts (#306) 2024-08-09 09:42:37 -07:00
William FH 3be3af2ea2 Spelling (#304)
* Spelling

* Relax core dep

* Fix resolution

---------

Co-authored-by: jacoblee93 <jacoblee93@gmail.com>
2024-08-08 18:03:36 -07:00
Nuno Campos 3b9fbdc41c Various small changes (#1268) 2024-08-07 20:17:47 -04:00
Jacob Lee b557673637 Release 0.0.33 (#300) 2024-08-06 12:58:20 -07:00