Nuno Campos
5c2afc9418
Fix behaviour of interrupt_before
...
- checkpoints are now copied before being mutated
- compiled graph and compiled state graph no longer need to override get_state/update_state
- pregel class now natively supports interrupt before/after
2024-02-24 19:43:30 -08:00
Nuno Campos and Nuno Campos
fdb273b0f4
Add get_state() and update_state() methods to get and update checkpoint in between runs
2024-02-24 16:58:18 -08:00
Nuno Campos
debd9a8d9c
Add support for conditional entry points in Graph, StateGraph, MessageGraph
2024-02-22 15:19:03 -08:00
Nuno Campos and GitHub
50b1a455bd
Merge pull request #41 from langchain-ai/nc/fan-out
...
StateGraph/MessageGraph: Add support for multiple incoming edges
2024-02-19 13:06:14 -08:00
Nuno Campos
e4bfa8603d
Support multiple tool calls, Lint
2024-02-19 09:12:08 -08:00
midas8181919
794cc71254
fixed
2024-02-13 22:42:37 +00:00
midas8181919
41ff4c8c43
fix some errors
2024-02-13 15:41:27 +00:00
midas8181919
b4269f6453
finish test
2024-02-11 02:04:09 +00:00
Nuno Campos
979b735256
Allow fan-in in stategraph
2024-02-10 12:01:52 -08:00
Nuno Campos
c4f87cdccd
Close the connection
2024-02-07 20:02:36 -08:00
Nuno Campos
f2ad930cd4
Add AsyncSqliteSaver
2024-02-07 19:31:24 -08:00
Nuno Campos
afa9592f6a
Only execute tasks leftover from previous checkpoint when resuming with no new input
2024-02-04 14:12:10 -08:00
Nuno Campos
150583bd40
py3.9 compat
2024-01-21 09:12:18 -08:00
Nuno Campos
07f0eca65f
Add MessageGraph
2024-01-20 17:17:01 -08:00
Nuno Campos
b328a46f73
Change chat executor back
2024-01-20 17:05:47 -08:00
Nuno Campos
ee66e11eae
Add support for single key state, eg just list of messages
2024-01-20 15:04:35 -08:00
Nuno Campos
e245b1d2ff
Lint
2024-01-17 13:55:26 -08:00
Nuno Campos
b535b5caa0
Add tests
2024-01-16 16:23:41 -08:00
Nuno Campos
2e537320c3
Rename saver to checkpointer, expose in graph, state graph, prebuilt agent exec
2024-01-15 13:45:54 -08:00
Nuno Campos
23f84c9ac9
Fix tests to run in py 3.9
2024-01-15 13:18:32 -08:00
Nuno Campos
f6894fb5dd
Add input_keys, rename output_keys, add interrupt
2024-01-15 09:14:30 -08:00
Nuno Campos
d68faa6d06
Update tracing name
2024-01-13 10:55:18 -08:00
Nuno Campos
3d58aff93e
Add async test
2024-01-13 10:44:42 -08:00
Nuno Campos
8c65b30ca7
Adjust stream output of Graph
...
Now output of stream() are dicts where keys are node names and values are the output of that node on that step
2024-01-08 14:48:26 -08:00
Nuno Campos
5799b80261
.stream() defaults to yielding output from all channels
2024-01-07 19:53:28 -08:00
Nuno Campos
e441990f92
Rename
2024-01-07 19:39:10 -08:00
Nuno Campos
6875401cc9
Lint
2024-01-07 09:55:43 -08:00
Nuno Campos
49aad8f320
Stream output of each process when running with astream_log()
2024-01-06 14:21:48 -08:00
Nuno Campos
73e4f8953b
Add tests for conditional edges
2024-01-06 13:51:00 -08:00
Nuno Campos
4ab9ff05ad
Add graph async tests
2024-01-06 13:15:49 -08:00
Nuno Campos
d293f5156d
Add output kwarg
2024-01-06 13:13:32 -08:00
Nuno Campos
de599be8a1
Rename chains to nodes
2024-01-06 12:43:15 -08:00
Nuno Campos
17cd659533
...
2024-01-05 18:22:46 -08:00
Nuno Campos
58b9502872
Update to langchain core
2023-12-28 15:23:13 -08:00
Nuno Campos
82741a6dcc
Implement .step() and .astep()
2023-12-27 19:57:54 -08:00
Nuno Campos
d1572afd49
Update _atransform
2023-12-26 20:04:00 -08:00
Nuno Campos
b1b68cde94
WIP
2023-12-26 19:05:21 -08:00
Nuno Campos
dd5b100f3c
Update langchain
2023-11-29 09:59:47 +00:00
Nuno Campos
eef4c015d6
Allow passing values directly to Channel.write_toi
2023-11-15 16:21:09 +00:00
Nuno Campos
b90a62a00d
Add concept of reserved channels (ie. channels updated by Pregel), Add a reserved channel for is_last_step
2023-11-15 15:16:18 +00:00
Nuno Campos
682e7d175d
Add tests for checkpointing
2023-11-14 12:54:23 +00:00
Nuno Campos
7f76fbb699
Create a Topic channel, Make LastValue the default channel if not specified, Add default input and output keys
...
- Topic channel combines the features of Inbox, Archive, UniqueInbox, UniqueArchive, which have been removed.
2023-11-04 17:40:12 +00:00
Nuno Campos
124722c0c8
Rename Channel classes
2023-11-04 14:29:48 +00:00
Nuno Campos
dbe8c1362f
Move subscribe/write cls methods to Channel
2023-10-23 15:42:51 +01:00
Nuno Campos
577bf5205a
Rename Context channel
2023-10-23 15:26:41 +01:00
Nuno Campos
49ff5e2eab
Implement reduce chain
2023-10-23 12:01:35 +01:00
Nuno Campos
8284a6b6ea
Rename send_to to write_to
2023-10-23 10:29:46 +01:00
Nuno Campos
274600436b
Remove "main" chain, Improve debug logging, Remove max_steps from send_to, Add retries to recursive web loader
2023-10-23 10:26:10 +01:00
Nuno Campos
9dfffe5fc0
Add an optional "main" chain which has implicit input and output channels
2023-10-22 21:12:30 +01:00
Nuno Campos
8adfa69405
Implement dict input, add more tests
2023-10-19 12:57:26 +01:00