Commit Graph
6682 Commits
Author SHA1 Message Date
Nuno Campos 5ae9db83c7 Update ids in tests 2024-05-31 13:58:35 -07:00
Nuno CamposandNuno Campos 81a5720dd0 Add missing metadata 2024-05-31 13:30:05 -07:00
Nuno Campos 0409d70d0c For stream_mode=updates (the default) stream the output of each node as soon as that node finishes
- currently output of all nodes is streamed only when all nodes in that step finish
- checkpoint/values stream chunks still yielded only at the end of the step, as they require applying all updates
2024-05-31 13:30:05 -07:00
Nuno CamposandGitHub 48f75699b0 Merge pull request #559 from langchain-ai/nc/30may/debug-checkpoint-metadata
Add metadata to debug/checkpoint stream events
2024-05-31 13:25:09 -07:00
Nuno CamposandGitHub 1462b5e6b0 Merge pull request #557 from langchain-ai/nc/30may/map-reduce
Implement map-reduce api for StateGraph/Pregel
2024-05-31 13:24:36 -07:00
Nuno Campos 9c513ee7e6 Lint 2024-05-31 13:23:04 -07:00
Nuno Campos 9fd459c7fc Update to use a single arg like other nodes 2024-05-31 13:19:29 -07:00
Nuno Campos 87de8df888 Add metadata to debug/checkpoint stream events
- reorganize checkpointing code to share code between input and step checkpoints
- do not emit debug/checkpoint events when there is no checkpointer attached
- emit debug/checkpoint event for input checkpoint as well
2024-05-30 17:39:28 -07:00
Nuno Campos ae9c5639f0 Lint 2024-05-30 17:01:21 -07:00
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