Commit Graph
1473 Commits
Author SHA1 Message Date
Nuno Campos 683fac83dc don't clear pending packets when just viewing 2024-05-30 17:00:35 -07:00
Nuno Campos dc9c7254e7 Passthrough additional keys from node to cond edge
- this can be used to eg inform what gets sent in packets, without needing to write them to state first
2024-05-30 16:59:08 -07:00
Nuno Campos b19c426a33 In state graph validate that all nodes either return None or write to one of the state keys 2024-05-30 16:41:14 -07:00
Nuno Campos fb9fdcd345 Lint 2024-05-30 16:09:29 -07:00
Nuno Campos 75f14cc06d Finish tests 2024-05-30 16:08:30 -07:00
Nuno Campos 7a1feb466b Implement map-reduce api for StateGraph/Pregel
- current Pregel primitive is pull-based, ie. nodes write to channels, and it's up to other nodes to subscribe to those channels to "pull" updates
- this adds a "push" primitive where a node can directly schedule a node (more than once if desired) for execution in the next step, with additional kwargs to be passed in. Nodes scheduled in this way get called with both the current state and any kwargs passed to Packet
2024-05-30 15:36:32 -07:00
Nuno Campos 7a2de5e369 WIP 2024-05-30 11:45:21 -07:00
Nuno Campos 02326d74bf WIP 2024-05-30 11:45:21 -07:00
Nuno Campos 423ab4fe8b 0.0.59 2024-05-30 11:28:37 -07:00
Nuno CamposandGitHub ff67b99b19 Merge pull request #556 from langchain-ai/nc/30may/rm-uuid6-dep
Bundle in uuid6 func due to install issues with uuid6 library
2024-05-30 11:20:02 -07:00
Nuno Campos d08182c2e0 Fix 2024-05-30 10:47:49 -07:00
Nuno Campos dd0c3102c8 Fix 2024-05-30 10:45:51 -07:00
Nuno Campos 2faf2ff9ec Bundle in uuid6 func due to install issues with uuid6 library 2024-05-30 10:42:44 -07:00
Nuno Campos 75a9c0a1ee 0.0.58 2024-05-30 08:45:37 -07:00
Nuno CamposandGitHub 306f5a75e5 Merge pull request #555 from langchain-ai/nc/30may/return-state-model
Support returning non-dict objects as state updates from nodes
2024-05-30 08:43:36 -07:00
Nuno Campos d713f849f4 Lint 2024-05-30 08:42:07 -07:00
Nuno Campos e4c32248aa Support returning non-dict objects as state updates from nodes 2024-05-30 08:38:40 -07:00
Nuno CamposandGitHub 978d7aa539 Merge pull request #554 from langchain-ai/nfcampos-patch-1
Update ci rules
2024-05-30 08:10:39 -07:00
Nuno Campos c820c75caa Update test.yml 2024-05-30 08:08:46 -07:00
Nuno Campos cd7c8d4bdd Update ci rules 2024-05-30 08:08:46 -07:00
Nuno Campos 86bc774b3d Lint 2024-05-30 08:08:21 -07:00
Nuno Campos 6e74415ec8 Add test for node decorated with traceable decorator 2024-05-30 08:04:48 -07:00
Nuno Campos 199b0b2d88 0.0.57 2024-05-29 18:23:29 -07:00
Nuno CamposandGitHub 27b98581a6 Merge pull request #550 from langchain-ai/nc/29may/allow-more-annotations
Use the last annotation as the reducer
2024-05-29 18:22:11 -07:00
Nuno Campos e47a7adb3c Fix 2024-05-29 16:53:58 -07:00
Nuno Campos c3f68a6d7e Use the last annotation as the reducer 2024-05-29 16:47:39 -07:00
Nuno Campos 4893a24756 0.0.56 2024-05-29 07:15:11 -07:00
Nuno Campos 1ce8a16e1c Change pydantic detection 2024-05-29 07:14:07 -07:00
Nuno CamposandGitHub 53e7fab49f Merge pull request #548 from langchain-ai/wfh/better_error
More Descriptive TypeError
2024-05-29 06:42:17 -07:00
William Fu-Hinthorn dfeff082bb nit: Better TypeError 2024-05-29 06:21:31 -07:00
William FHandGitHub 7fdc849fa8 [Docs] Add analytics (#546) 2024-05-29 05:07:33 -07:00
4c4839ca65 docs: specify that configurables are added to LangSmith as metadata (#534)
* docs: specify that configurables are added to LangSmith as metadata

* docs: add link to concepts in README

---------

Co-authored-by: William FH <13333726+hinthornw@users.noreply.github.com>
2024-05-29 02:33:10 -07:00
William FHandGitHub 5c8fe206d3 [Conceptual docs] Fixup block (#545) 2024-05-29 02:16:02 -07:00
William FHandGitHub 7cc172e4d4 🪄 (#541) 2024-05-28 08:31:01 -07:00
Lance Martin c4279c7706 Clean 2024-05-28 07:26:12 -07:00
Lance MartinandGitHub 5e5acb2e3f Merge pull request #536 from langchain-ai/rlm/check-self-rag
Minor change to upgrade libs
2024-05-26 15:26:32 -07:00
Lance Martin 5435ff6f7f Minor change to upgrade libs 2024-05-26 15:14:04 -07:00
Lance Martin 765e35f24a Update code-gen ntbk 2024-05-26 15:09:30 -07:00
Lance Martin 149ebd0896 Testing code generation 2024-05-23 15:46:14 -07:00
Nuno Campos 9dd7f9d7f2 0.0.55 2024-05-22 13:19:16 -07:00
Nuno CamposandGitHub 070b7965ca Merge pull request #526 from langchain-ai/nc/22may/multi-stream-mode
Add support for requesting multiple stream modes in same stream/astream call
2024-05-22 13:17:54 -07:00
Nuno Campos 51186ba66f Sort 2024-05-22 12:30:07 -07:00
Nuno Campos 24d130d407 Add support for requesting multiple stream modes in same stream/astream call 2024-05-22 12:25:28 -07:00
Deepankar MahapatroandGitHub 3493e66490 fix: getpass module call (#523) 2024-05-22 11:24:36 -07:00
William FHandGitHub 76981dfb39 Explicitly use config (#524) 2024-05-22 11:23:45 -07:00
Nuno CamposandGitHub c32b2c0bb7 Merge pull request #519 from langchain-ai/nc/21may/extend-root-state
Add support and tests for using messagegraph checkpoints on a stategraph with 1 __root__ key other keys
2024-05-22 09:15:54 -07:00
Nuno Campos 8b946af20f Add support and tests for using messagegraph checkpoints on a stategraph with 1 __root__ key other keys 2024-05-21 14:01:23 -07:00
Nuno Campos a65aa73d79 0.0.54 2024-05-21 12:54:48 -07:00
Andrew NguonlyandGitHub 08b505e017 Merge configurable fields with previous checkpoint config before each run (#510)
* Merge configurable fields with previous checkpoint config.

* Update update_state() and aupdate_state() to merge configurable fields with previous checkpoint config.

* Update tests to verify that all checkpoint metadata contain the expected configurable field keys. This assertion is needed because a run can have an arbitrary number of steps based on the construction of the graph.
2024-05-21 11:03:25 -07:00
William FHandGitHub d3cce1e245 [Docs] tool_selection (#515) 2024-05-21 09:05:28 -07:00