Commit Graph

2771 Commits

Author SHA1 Message Date
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
Nuno Campos 3ea5202ac2 Export Annotation etc from root (#299)
* Export Annotation etc from root

* Fix
2024-08-06 12:56:02 -07:00
Jacob Lee d3080bd276 Release 0.0.32 (#298) 2024-08-06 12:09:11 -07:00
Nuno Campos a1888dc8c3 Merge pull request #1232 from langchain-ai/dqbd/js-output-schema
feat(sdk-js): add output schema to match API, expose copy method for thread
2024-08-06 08:18:00 -07:00
Tat Dat Duong fe2ca20afa Reformat 2024-08-06 16:24:12 +02:00
Tat Dat Duong 09c1c41ef7 Bump to 0.0.4 2024-08-06 15:34:28 +02:00
Tat Dat Duong 5e9eba0ef6 Expose copy method for thread 2024-08-06 14:15:04 +02:00
Tat Dat Duong fd262c2e9e feat(sdk-js): Add output schema typedef 2024-08-06 14:06:47 +02:00
dependabot[bot] b6fd99fd39 Bump fast-xml-parser in the npm_and_yarn group across 1 directory (#296)
Bumps the npm_and_yarn group with 1 update in the / directory: [fast-xml-parser](https://github.com/NaturalIntelligence/fast-xml-parser).


Updates `fast-xml-parser` from 4.4.0 to 4.4.1
- [Release notes](https://github.com/NaturalIntelligence/fast-xml-parser/releases)
- [Changelog](https://github.com/NaturalIntelligence/fast-xml-parser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/NaturalIntelligence/fast-xml-parser/compare/v4.4.0...v4.4.1)

---
updated-dependencies:
- dependency-name: fast-xml-parser
  dependency-type: indirect
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-05 11:32:59 -07:00
Jacob Lee 3500df4d22 Adds signal test, fix bug (#297)
* Adds signal test, fix bug

* Lint

* Fix
2024-08-05 11:32:46 -07:00
Nuno Campos e0801a0f01 Use config.signal to control cancellation (#294)
* Use config.signal to control cancellation

* Lint
2024-08-05 11:09:34 -07:00
Nuno Campos c323f35935 Update dev dependencies with security vulnerabilities (#295) 2024-08-05 10:51:01 -07:00
dependabot[bot] 320250f885 Bump semver from 7.5.1 to 7.6.2 (#197)
Bumps [semver](https://github.com/npm/node-semver) from 7.5.1 to 7.6.2.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/main/CHANGELOG.md)
- [Commits](https://github.com/npm/node-semver/compare/v7.5.1...v7.6.2)

---
updated-dependencies:
- dependency-name: semver
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-05 17:37:41 +00:00
Nuno Campos 2f390c0a67 Define StateGraph State in a single delcaration, from which both reducers and state and update interfaces are inferred (#289)
* Define StateGraph State in a single delcaration, from which both reducers and state and update interfaces are inferred

This more closely matches python, where a single declaration gives you all three

* Use type guard instead of instanceof

* Fix build by bumping core dep

---------

Co-authored-by: jacoblee93 <jacoblee93@gmail.com>
2024-08-02 17:46:45 -07:00
Tat Dat Duong 30aa67f1ac Bump to 0.0.3 2024-08-01 14:14:40 -07:00
Tat Dat Duong 4e2f6e76a7 Improve types for updateState 2024-08-01 14:14:12 -07:00
Nuno Campos 4844537cf1 Merge pull request #1188 from langchain-ai/nc/1aug/update-sdks
Nc/1aug/update sdks
2024-08-01 09:54:47 -07:00
Nuno Campos 5dddcc803a Mark all schemas as optional in js and py sdk typings 2024-08-01 09:43:46 -07:00
Nuno Campos 85e8c7094a Fix create entrypoints script 2024-08-01 09:43:30 -07:00
Bagatur 8268d62e99 docs: rm discord (#284)
* docs: rm discord

* sync readme

---------

Co-authored-by: bracesproul <braceasproul@gmail.com>
2024-07-31 13:38:16 -07:00
Jacob Lee a8c4f81a7c Add quickstart to tutorials (#288) 2024-07-31 13:38:00 -07:00
Brace Sproul baf0155938 docs[minor]: Port concepts pages from PY docs (#286)
* docs[minor]: Port concepts pages from PY docs

* update docs

* fix broken links
2024-07-29 13:13:59 -07:00
Justin Levi Winter be165c77d0 tslab instructions - Update README.md (#280)
* tslab instructions - Update README.md

I was very familiar with Jupyter notebooks but hadn't used tslab before. Took me a minute to figure out how to run the examples. This may not be the best approach, but got me up and running and thought it might help someone else.

* Update README.md

* Sync readmes

---------

Co-authored-by: Jacob Lee <jacoblee93@gmail.com>
2024-07-25 11:10:56 -07:00