Commit Graph
6716 Commits
Author SHA1 Message Date
William FHandGitHub 30e99289c1 [Doc]Add ToolMessage (#594) 2024-06-04 17:31:30 -07:00
William FHandGitHub 67b565329f Update info seeking (#592) 2024-06-04 14:51:26 -07:00
William FHandGitHub 90958ab973 [Docs] Add explanation for error handling when branching (#591) 2024-06-04 13:22:28 -07:00
William FHandGitHub 5fd52a486e [Docs] Stream Anything (#590) 2024-06-04 10:30:34 -07:00
William FHandGitHub 52945478ef [Docs] Update stream_tokens to clarify how in older versions of python (#587) 2024-06-04 10:02:14 -07:00
William FHandGitHub 5a3fbfe82d [Docs] Fixup stream mode values (#589) 2024-06-04 10:02:00 -07:00
William FHandGitHub dacb018b32 Update quickstart (#588) 2024-06-04 10:01:51 -07:00
Nuno CamposandGitHub e1d98a00d0 Update graph.py 2024-06-04 08:24:03 -07:00
William FHandGitHub 220bdb7fc4 [Docs] Add map reduce to index (#582) 2024-06-03 22:01:52 -07:00
Nuno Campos 2b5d503906 Add sqlite test with emoji 2024-06-03 16:38:44 -07:00
Nuno Campos d418261996 0.0.62 2024-06-03 16:33:15 -07:00
Nuno CamposandGitHub cdc3c43e36 Merge pull request #580 from langchain-ai/nc/3jun/serde-handle-unicode-issues
serde: Handle unicode issues when encoding
2024-06-03 16:32:14 -07:00
Nuno Campos d22fe60d4c serde: Handle unicode issues when encoding
- any invalid utf-8 chars now removed on dumps
- fix serialization of Send
- remove serialization of NamedTuple, which doesn't work
- add test for custom serde passed to memory saver
- add test using Send and JsonPlus serde
2024-06-03 16:28:32 -07:00
ccurmeandGitHub 8d54b09371 examples: update HITL notebook (#543)
* update notebook

* update

* verify via ToolMessage

* update

* revert change to legacy notebook

* clean up
2024-06-03 15:43:59 -07:00
Harrison ChaseandGitHub 5b3b485a14 update notebook with branching (#578) 2024-06-03 12:58:42 -07:00
Lance MartinandGitHub 9c9d7d4061 Merge pull request #577 from langchain-ai/rlm/code-gen-check
Update name for base-case chain on code-assistant ntbk
2024-06-03 09:37:29 -07:00
Lance Martin 688717aa1a Fix ntbk 2024-06-03 08:22:48 -07:00
Nuno Campos e1e502acfd 0.0.61 2024-06-02 14:13:53 -07:00
Nuno Campos a5d413063e Fix missing attr 2024-06-02 14:11:17 -07:00
William FHandGitHub 0003c74657 [Docs] Update mkdocs (#568) 2024-06-01 04:38:51 -07:00
William FHandGitHub a870e87e7f [Docs] Update edit links (#567) 2024-06-01 04:28:35 -07:00
Joe MartyandGitHub 1b354ab2bf Update introduction.ipynb (#553)
Replace old references to an "action" node with a "tools" node (since that is the name of the note in the first section of the tutorial)
2024-06-01 04:03:17 -07:00
Nuno CamposandGitHub 515f724876 Merge pull request #566 from langchain-ai/harrison/map-reduce-docs
add map reduce docs
2024-05-31 16:50:36 -07:00
Harrison Chase 9eb514fb84 cr 2024-05-31 16:49:09 -07:00
Harrison Chase 4dae779a00 add map reduce docs 2024-05-31 15:42:48 -07:00
Nuno CamposandGitHub fd1faea0ce Merge pull request #565 from langchain-ai/nc/31may/send
Rename Packet to Send
2024-05-31 15:22:55 -07:00
Nuno Campos 8d038ac8ab Lint 2024-05-31 15:21:22 -07:00
Nuno Campos 823b4849a2 Fix serde 2024-05-31 15:20:16 -07:00
Nuno Campos a436e14fad Rename checkpoint var 2024-05-31 15:18:56 -07:00
Nuno Campos 5b5323b94f Rename Packet to Send 2024-05-31 15:17:22 -07:00
Nuno CamposandGitHub 5f3c61da98 Merge pull request #560 from langchain-ai/nc/30may/stream-updates-asap
For stream_mode=updates (the default) stream the output of each node as soon as that node finishes
2024-05-31 15:14:53 -07:00
Nuno Campos 30e456be91 One more test, handle negative timeout 2024-05-31 15:13:07 -07:00
Nuno Campos 1fa327cb28 Lint 2024-05-31 14:48:35 -07:00
Nuno Campos ef3332ff74 Remove nested output for packet tasks 2024-05-31 14:46:56 -07:00
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