Commit Graph

2785 Commits

Author SHA1 Message Date
Andrew Nguonly 099fafa32a Update Pregel files to match Python implementation: debug.ts, io.ts, read.ts, types.ts, write.ts (#120) 2024-04-30 05:37:30 -07:00
Andrew Nguonly c27db2717e Implement serde, getTuple(), and list() in BaseCheckpointSaver (#119)
* Update BaseCheckpointSaver class  with getTuple() and list() functions.

* Fix bug when selecting max ts (string).

* Remove console.log().

* Fix bug in put(). Add unit tests.

* Fix format errors.

* Fix lint errors.

* Fix prettier format issues.

* Create NoopSerializer for MemorySaver checkpointer.

* Implement SqliteSaver.

* Implement put() and list() for SqliteSaver and add unit tests.

* Change default checkpoint configuration to END_OF_STEP.

* Refactor type casting for Row type and remove isSetup field.

* Add unit test for verifying parentTs in sqlite db.

* Change Sqlite schema to snake_case to match Python implementation.

* Fix race condition bug with SqliteSaver constructor.

* Implement generics for checkpoint saver and serde protocol.

* Fix type error in Graph classes.

* Require input type of serializer for checkpointers to be Checkpoint type.
2024-04-23 09:11:18 -07:00
Andrew Nguonly 79345a0678 Rename empty() to fromCheckpoint() to match LangGraph Python (#118)
* Rename empty() to fromCheckpoint(). Update update() implementations to exactly match Python implementations.

* Format tests.

* Deep copy Checkpoint data when creating new Checkpoint.

* Remove initialValueFactory from BaseChannel.

* Update createCheckpoint() to exclude values carried over from previous checkpoint.
2024-04-18 08:32:46 -07:00
Brace Sproul d86ce20de4 examples[patch]: Fix typing (#117) 2024-04-16 15:47:32 -07:00
Janvi Kalra 06fc50ff01 [Python Parity] Adds Waiting Edges Along with Additional Changes Needed to Make that Work (#97)
* add basic

* update

* update

* update

* this kinda works

* format everything

* update

* update

* Update state.ts

* Rename var

---------

Co-authored-by: Nuno Campos <nuno@boringbits.io>
Co-authored-by: Nuno Campos <nuno@langchain.dev>
2024-04-16 10:37:47 -07:00
William Berglund 9443333c51 Ensure Channel.subscribeTo(["input"], { key: "key" }) which throws at runtime is a type-error (#109) 2024-04-16 10:27:26 -07:00
Dmitry Til 11f7464544 fix: state graph new node validation (#114) 2024-04-16 10:25:30 -07:00
William Berglund 8628790bed Include Pragel PDF link in CONTRIBUTING.md (#110) 2024-04-10 17:59:43 -07:00
William Berglund 90fa8680b8 add vscode devcontainer (#108) 2024-04-10 17:59:32 -07:00
Jacob Lee d55f457182 Update customer support notebook (#106) 2024-03-27 15:03:06 -07:00
Jacob Lee 3996c22b97 Adds tool calling chatbot notebook (#105)
* Adds tool calling chatbot notebook

* Add customer support chatbot example
2024-03-27 14:55:14 -07:00
Jacob Lee 4bf1b05314 Merge pull request #103 from langchain-ai/release
Release 0.0.12
2024-03-26 20:44:48 -07:00
jacoblee93 162ce035f4 Release 0.0.12 0.0.12 2024-03-26 20:44:21 -07:00
Richard Moss 70b7c92296 Add diagram for agent executor example (#101) 2024-03-26 20:41:11 -07:00
Jacob Lee 7084da0611 Adds async edge support (#102) 2024-03-26 20:38:01 -07:00
Jacob Lee dec58af04a Merge pull request #100 from langchain-ai/release
Release 0.0.11
2024-03-24 21:51:57 -07:00
jacoblee93 c1ab067669 Release 0.0.11 0.0.11 2024-03-24 21:49:17 -07:00
moyinzi ed5beaf96e fix: default INVALID_TOOL_MSG_TEMPLATE (#92) 2024-03-24 21:46:50 -07:00
Jacob Lee 8c9262d578 Update trace links (#99) 2024-03-24 21:46:44 -07:00
Jacob Lee 321de74d4c Bump versions, fix typo (#98)
* Bump versions, fix typo

* README update
2024-03-24 21:37:43 -07:00
Janvi Kalra ee7c33181b Adds Documentation about Channels, Checkpoints, and Pregel Graphs to CONTRIBUTING.md (#96)
* added docs

* added some formatting

* fix some typos
2024-03-23 13:02:42 -07:00
Janvi Kalra 394c89dcbe Add MemorySaverAssertImmutable Class For Parity with Python Repo (#94)
* added test back in and fixed two bugs

* update

* update

* formatting
2024-03-21 18:51:12 -07:00
Janvi Kalra 45b7b636bb Added "should handle checkpoints correctly" Unit Tests + Fix 2 Bugs That Were Preventing Them From Passing (#93)
* added test back in and fixed two bugs

* ran formatter

* update

* update

* update
2024-03-21 16:37:03 -07:00
Jacob Lee 0976f5c20e Update README (#91) 2024-03-19 16:59:12 -07:00
Jacob Lee 8e993efef6 Update README (#89) 2024-03-19 09:04:37 -07:00
Jacob Lee 56d3d28f45 Fix README typos (#87) 2024-03-18 21:31:53 -07:00
Jacob Lee 09064fd8ec Update README.md (#86) 2024-03-18 18:27:55 -07:00
Jacob Lee 8406e0652f Update quickstart with simpler MessageGraph example (#85)
* Update quickstart with simpler MessageGraph example

* Lint
2024-03-18 17:21:59 -07:00
Nuno Campos 68fec280c8 Remove subscribeToEach (#84)
- can be replaced with call to .map()
2024-03-14 16:40:42 -07:00
abin e1de33cde8 The retrieve method adds the missing parameter config (#83)
Co-authored-by: Brace Sproul <braceasproul@gmail.com>
2024-03-11 11:25:21 -07:00
tspecht 8575c8d180 Update index.ts (#80) 2024-03-11 11:20:50 -07:00
Jacob Lee 004c324d58 Update Deno deps (#76) 2024-02-27 13:11:14 -08:00
Jacob Lee 6ac398237a Merge pull request #75 from langchain-ai/release
Release 0.0.10
2024-02-27 13:09:04 -08:00
jacoblee93 e6fd645aac Release 0.0.10 0.0.10 2024-02-27 13:08:38 -08:00
Jacob Lee 09a748fe4f Fix nested tracing, update notebooks (#74)
* Fix nested tracing, update notebooks

* Format
2024-02-27 13:06:18 -08:00
Jacob Lee cb8d78fd76 Merge pull request #72 from langchain-ai/release
Release 0.0.9
2024-02-23 18:32:37 -08:00
jacoblee93 020e7f63d4 Release 0.0.9 0.0.9 2024-02-23 18:32:10 -08:00
Jacob Lee 33a4724686 Automatically trace nested runnable calls in nodes (#71)
* Automatically trace nested runnable calls in nodes

* Rename
2024-02-23 18:29:53 -08:00
Brace Sproul 9829380b76 Reflection notebook (#70) 2024-02-22 13:58:47 -08:00
Brace Sproul b086e14c2a fix readme links (#68) 2024-02-19 17:22:18 -08:00
Brace Sproul 17dca81430 Rewoooooooooo (#66)
* Rewoooooooooo

* still broken bruh moment

* I DID ITTTT

* cr
2024-02-16 18:17:25 -08:00
Brace Sproul 6ba39db01d Release 0.0.8 (#67) 0.0.8 2024-02-16 11:39:03 -08:00
Brace Sproul d5626d440d [patch]:Update conditional edges (#65)
* Update conditional edges

* cer

* cr
2024-02-16 11:19:47 -08:00
Brace Sproul 4d032736bd Rag examples (#55)
* Rag examples

* cr

* cr

* cr

* cr

* crag

* cr

* Kinda working?

* agentic rag!

* crag mistral

* rm py notebook

* cr
2024-02-16 08:32:30 -08:00
Brace Sproul e5f4d5629a Release 0.0.7 (#64) 0.0.7 2024-02-14 13:26:05 -08:00
Brace Sproul 7f1fa96786 patch: Update exports (#63) 2024-02-14 13:24:56 -08:00
Brace Sproul 46ffcca5cd [WIP]Plan and execute agent (#60)
* cr

* finished! Yippie

* cr

* cr

* cr
2024-02-12 16:32:48 -08:00
Brace Sproul 553713cac5 Release 0.0.6 (#62) 0.0.6 2024-02-12 13:46:57 -08:00
Brace Sproul 566abba567 Fix returned values of prebuilt plan and execute agent (#61)
* Fix returned values of prebuilt plan and execute agent

* cr

* format

* cr

* fix tests
2024-02-12 13:45:05 -08:00
Brace Sproul 8aedb00f81 Warn if graph is mutated after being compiled (#59)
* Warn if graph is mutated after being compiled

* format
2024-02-11 18:02:08 -08:00