Nuno Campos
5494855ffa
0.2.50
2024-11-15 15:43:37 -08:00
Nuno Campos
38d93a324c
0.2.49
2024-11-15 15:02:31 -08:00
Nuno Campos
1dbdd7df2e
Lint
2024-11-15 14:54:55 -08:00
Nuno Campos
dab29ce094
lib: Restore prev behavior for update_state(None)
...
- update_state(None) copies checkpoint and keeps current (PUSH) tasks, eg for replay
- update_state(None, as_node=END) clears all tasks (PUSH or PULL)
2024-11-15 14:48:56 -08:00
Nuno Campos and GitHub
970e68edcc
Merge pull request #2417 from langchain-ai/vb/fix-debug-async
...
langgraph: add debug to AsyncPregelLoop
2024-11-14 06:53:18 -08:00
vbarda
da1a80e86d
lint
2024-11-14 09:37:39 -05:00
vbarda
c4b240e0c2
langgraph: add debug to AsyncPregelLoop
2024-11-14 09:36:33 -05:00
Nuno Campos
3a860ad537
0.2.48
2024-11-13 17:45:04 -08:00
Nuno Campos
229a9e19a8
sdk-py: Add command arg for creating runs
2024-11-13 17:06:56 -08:00
Nuno Campos
3c3a1a1f35
0.2.47
2024-11-13 14:02:25 -08:00
Nuno Campos and GitHub
f11127648e
Merge pull request #2346 from langchain-ai/nc/4nov/send-eager
...
lib: Execute Sends in the superstep that originated them (feature-flagged)
2024-11-13 13:39:50 -08:00
Nuno Campos
a94902db8a
Lint
2024-11-13 13:17:02 -08:00
Nuno Campos
9fd152ef3a
format
2024-11-13 13:14:03 -08:00
Nuno Campos
03bc9ba6e6
Make Command a dataclass
2024-11-13 13:11:28 -08:00
Nuno Campos
7fe6f88876
Add resumeable/ns properties to Interrupt
2024-11-13 12:51:55 -08:00
William FH and GitHub
7b4c29a20d
[Checkpointers] MemorySaver: refrain from overwriting writes ( #2399 )
2024-11-13 00:20:38 +00:00
Nuno Campos
16bfa80b58
Make Command accept generic arg for destinations
2024-11-12 16:18:23 -08:00
Nuno Campos
00964b18f6
Undo
2024-11-11 18:12:25 -08:00
Nuno Campos
0d5c6201d3
Disable in py 3.10 or below for async
2024-11-11 18:09:58 -08:00
Nuno Campos
b3a4eaa967
Remove print
2024-11-11 17:56:10 -08:00
Nuno Campos
87fc519ce7
Remove print
2024-11-11 17:54:56 -08:00
Nuno Campos
ef3a1ee997
Undo
2024-11-11 17:54:04 -08:00
Nuno Campos
311e16dffd
Remove prints
2024-11-11 17:52:18 -08:00
Nuno Campos
62d3a85b07
Add sync test
2024-11-11 17:46:54 -08:00
Nuno Campos
810ae0ef51
lib: Add interrupt() function
...
- This works similarly to the input() function from stdlib
- calling it in a node interrupts execution
- invoking the graph with Command(resume=...) will set ... as the return value of interrupt() so that the node can access the "answer" to the "question"
- This PR also starts the work to control the graph on invoke/stream with Command() input, to be continued in a future PR
2024-11-11 17:44:03 -08:00
Nuno Campos
d0567dc7be
Add feature flag (default off) so we can merge this before releasing
...
- Add additional ci job to test with FF on
2024-11-11 15:38:48 -08:00
Nuno Campos
090b53ccc1
Lint
2024-11-11 14:14:23 -08:00
Nuno Campos
0e872e7482
Lin t
2024-11-11 14:12:33 -08:00
Nuno Campos
3ad966e057
Update
2024-11-11 14:08:59 -08:00
Nuno Campos
89a0859928
Execute Sends in same super step that triggered them
...
- Keep old code path for compatibility with existing checkpoints
- Keep a similar order of application of updates, in some cases there will be no visible change
- Update task path for Sends to contain the path of all the parent tasks (multiple parents when a Send task creates another Send)
- That lineage path is used to ensure order of application of updates respects their logical lineage (ie updates from parents always applied before their child tasks)
- Move Interrupt writes to use negative indexes, which allow replacing/shadowing (when task is re-run it may interrupt again, or succeed)
- Runner will now attempt to schedule new Send tasks as soon as the write is received (ie while the originating node is still running)
- Update kafka scheduler to support new Send behavior
2024-11-11 14:01:16 -08:00
Nuno Campos
75c502cd93
Lint
2024-11-11 13:59:18 -08:00
Nuno Campos
0cc45f7a35
Lint
2024-11-11 13:04:23 -08:00
Nuno Campos
efb1dd6a10
lib: Rename Control to GraphCommand
2024-11-11 13:01:04 -08:00
Nuno Campos
c0513076a2
Lint
2024-11-11 11:07:36 -08:00
Nuno Campos
c043f148a6
lib: update_state(values=None) should clear all tasks
2024-11-11 10:48:34 -08:00
Nuno Campos
b4bed3329c
lib: Rename args in Control object
...
- update_state -> state
- trigger -> goto
2024-11-07 13:12:19 -08:00
Vadym Barda and GitHub
35e3276e34
langgraph: add add_sequence to StateGraph ( #2352 )
2024-11-07 13:16:34 -05:00
Nuno Campos
72d497e052
Move code
2024-11-06 09:02:06 -08:00
Nuno Campos
87d57b434a
lib: Split out _match_writes util in PregelLoop
2024-11-06 08:48:30 -08:00
Nuno Campos
c1ce3c6b5f
lib: For cached tasks, emit output events after task events
2024-11-06 08:22:54 -08:00
Nuno Campos
4dc08cd724
Fix
2024-11-06 08:07:48 -08:00
Tat Dat Duong
d7b9b3b01d
fix(graph): invalid graph representation if RunnablePassthrough is used
2024-11-06 16:34:29 +01:00
Nuno Campos
010564cbb3
lib: Make Control object serializable
2024-11-05 15:24:20 -08:00
Nuno Campos
18a3fa4a00
Ignore unknown tasks
2024-11-05 14:22:23 -08:00
Nuno Campos
de8e487ff1
Add todo
2024-11-05 10:53:42 -08:00
Nuno Campos and GitHub
e5ebdff4d8
Merge pull request #2342 from langchain-ai/nc/5nov/send-test-interrupt-before
...
Add two more test cases for Send + interrupt
2024-11-05 09:34:04 -08:00
Nuno Campos
f283dac325
Add one more test for send-react-interrupt flow with replacing tool call
2024-11-05 09:27:02 -08:00
Nuno Campos
639501809c
api: Add one more test case for send + interrupt before
...
- Testing same exact behavior as send + interrupt after
2024-11-05 09:15:46 -08:00
Nuno Campos
dec0b7f439
Lint
2024-11-04 16:43:07 -08:00
Nuno Campos
04657408f8
lib: Enforce write application order in apply_writes
...
- Previously order was enforced in prepare_next_tasks, but that's not a good fit for future features
- This changes order between PULL and PUSH tasks, updates from PUSH tasks will now be applied after updates from PULL tasks
2024-11-04 16:39:04 -08:00