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
426a5c1b10
Implement StateGraph
2024-01-12 17:55:19 -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
641190d84b
Remove file
2024-01-06 14:56:19 -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
9a2ddb30d7
Add test
2023-11-28 14:06:51 +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
cec6ba4963
Change binop to init value if possible
2023-11-14 12:38:17 +00:00
Nuno Campos
f96ebb3357
Implement checkpoints
2023-11-14 12:14:18 +00:00
Nuno Campos
56a38ee859
Change Channel.checkpoint() to return any python value, add checkpoint tests
2023-11-14 11:17:39 +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
d0df4103cd
Add doc strings for all channels, small update to names/semantics
2023-10-23 14:12:44 +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
Nuno Campos
b07f8d87e5
Simplify api of context mngr channel
2023-10-19 12:13:18 +01:00
Nuno Campos
bfb3b374c2
Add more channel types
2023-10-18 18:44:29 +01:00
Nuno Campos
d46a20377b
Remove leading underscore from channel methods
2023-10-18 17:11:22 +01:00
Nuno Campos
0048704af9
Update context manager interface for channels, add channel that exposes a context manager
2023-10-18 17:05:38 +01:00
Nuno Campos
c933f66a04
Implement input_schema, output_schema, add tests for channels, update api for channels to pass type as regular arg
2023-10-18 13:32:41 +01:00
Nuno Campos
285577fc77
Make channels context managers, Add async tests, Add concurrency tests
2023-10-18 12:23:30 +01:00
Nuno Campos
837c9c9af2
Add validation, finish porting tests to new api
2023-10-16 13:52:35 +01:00
Nuno Campos
25dce1ff58
Update readme
2023-10-13 14:03:42 +01:00
Nuno Campos
12c203f3a3
Add tests
2023-10-13 13:37:39 +01:00
Nuno Campos
5e416347e7
Move over more tests from nc/combined-batch branch
2023-10-05 10:26:36 +01:00
Nuno Campos
d19f4999b8
Chat listen() and iterate() to use PubSubMessage wrapper instead of raw value
2023-09-19 14:30:47 +01:00
Nuno Campos
92da3505d3
Implement new semantics for OUT topic
...
- The first message published to OUT ends the computation
- .invoke() returns a single value or None
- .stream() returns iterator of log entries, including the final OUT entry, if any
- Remove .peek() method
2023-09-19 14:09:59 +01:00
Nuno Campos
a25b4e584e
Rename keys in LogMessage
2023-09-19 11:19:18 +01:00