Commit Graph

2755 Commits

Author SHA1 Message Date
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
Jacob Lee 773414fcfc Update README code (#283) 2024-07-24 18:32:34 -07:00
Brace Sproul 7d9c9847c9 infra[patch]: Use non rc of langchain/scripts 0.0.19 (#282) 2024-07-24 12:51:40 -07:00
Brace Sproul d5c8a517c3 infra[patch]: Use latest turbo repo and build setup (#271)
* infra[patch]: Use latest turbo repo and build setup

* bruh

* fix script

* try this

* cr

* cr

* cr

* cr

* cr

* cr

* cr

* new unit test

* cr

* drop ubuntu test env

* try sum new for cache

* bruh

* fast fail false

* cr

* cr

* cr

* bump turbo version

* tmp try canary

* cr

* cr

* cr

* cr

* cr

* upgrade langchain/scripts

* cr

* cr

* cr

* cr
2024-07-24 12:41:11 -07:00
Brace Sproul 653887d0d9 docs[minor]: Add wait user input doc (#272) 2024-07-24 12:24:19 -07:00
Brace Sproul c5bdd0a9b2 docs[minor]: Edit graph state how to guide (#269)
* docs[minor]: Edit graph state how to guide

* lets gooo

* cr

* update min/max core version

* cr

* update ci yarn install command
2024-07-24 12:24:13 -07:00
William FH 4a7345affb Update typedoc build (#1087) 2024-07-23 21:27:40 -07:00
Jacob Lee 8f1e8e29b7 Release 0.0.31 (#279) 2024-07-23 01:32:41 +00:00
Jacob Lee f692b617c8 Fix bundlers dropping AsyncLocalStorage initialization in entrypoint (#278)
* Fix bundlers dropping AsyncLocalStorage initialization in entrypoint

* Update lock
2024-07-22 18:30:17 -07:00
Jacob Lee 8768872d37 Adds guide on streaming without LangChain models (#274)
* Adds guide on streaming without LangChain models

* Fix notebook
2024-07-21 23:08:01 -07:00
Jacob Lee 14306ea09d Release 0.0.30 (#276) 2024-07-21 23:07:10 -07:00
Jacob Lee a46d8da50b Update conditional edge tracing for new core version (#275) 2024-07-21 23:01:40 -07:00
Jacob Lee 42c9d068c0 Adds example of how to stream a structured final response from an agent (#273)
* Adds example of how to stream a structured final response from an agent

* Fix CI by downgrading to 22.4.1
2024-07-19 17:05:29 -07:00
Brace Sproul 139c64b4f1 docs[minor]: Add human in the loop breakpoints doc (#268) 2024-07-18 10:12:45 -07:00
Jacob Lee 134d24f4d5 Release 0.0.29 (#270) 2024-07-18 01:19:21 -07:00
Jacob Lee 80645ae120 Adds automatic error handling for ToolNode, RemoveMessage support (#266)
* Adds automatic error handling for ToolNode

* Adds support for RemoveMessage, add tool calling error guide

* Fix typos
0.0.29
2024-07-18 01:17:09 -07:00
Brace Sproul a5457badb7 docs[minor]: Manage conversation history doc (#262)
* docs[minor]: Manage conversation history doc

* finish doc
2024-07-16 16:44:06 -07:00