Nuno Campos and GitHub
6727277f8f
Merge pull request #1610 from langchain-ai/an/04sept/metadata-interrupts
...
Return `before,after` for `__interrupt` metadata if both interrupts are configured for a node
2024-09-04 17:29:07 -07:00
Andrew Nguonly
d89fb9eef0
Add before and after values to __interrupt metadata.
2024-09-04 15:36:05 -07:00
Nuno Campos
f66493f6db
Lint
2024-09-04 14:37:31 -07:00
Nuno Campos
eb88dfefa3
Speed improvements to local_read, emit output
2024-09-04 14:31:42 -07:00
Nuno Campos
b8d8a879d8
Fix ids in debug task events
2024-09-04 14:31:20 -07:00
Nuno Campos
dc10b3aa8e
Add test to confirm only one root run is produced
2024-09-04 12:56:32 -07:00
Nuno Campos
3a1b90c882
Fix
2024-09-04 12:34:42 -07:00
Nuno Campos
b9361d69b4
Try to fix test
2024-09-04 12:30:27 -07:00
Nuno Campos
26b4d9139e
Avoid using json encoding when generating task ids
2024-09-04 12:19:14 -07:00
Nuno Campos
67a164ca2d
Run loop tick in bg thread
...
- prepare_next_tasks, apply_writes do some cpu-heavy work
2024-09-04 12:18:42 -07:00
Nuno Campos
b68f9211c2
Run branch.reader in bg thread
2024-09-04 12:13:38 -07:00
Nuno Campos
4efab93e2f
Use pseudo rng for uuid6 generation
2024-09-04 12:07:19 -07:00
Nuno Campos
cf345ef716
Store loop in async bg exec init
2024-09-04 12:07:02 -07:00
Nuno Campos
535dbd5b06
Reduce from 9s to 4s on benchmark graph
...
- Use a simpler version of RunnableSequence without tracing serialization
- Remove accepts_run_manager check in RunnableCallable
- Remove creation of ChannelWrite dynamically every time conditional edge runs
2024-09-04 11:02:33 -07:00
Nuno Campos
f2e0dc1042
Reduce cpu time spent on langchain-core utilities
...
- shaves off 2s of 11s runtime of a simple graph with 1,000 subgraphs
2024-09-04 11:02:33 -07:00
Nuno Campos
e42e1a9f6b
Fix test
2024-09-04 10:56:41 -07:00
Nuno Campos
0d51c8614d
Move runner code to standalone class, use in Pregel.stream/astream
2024-09-04 10:50:46 -07:00
Nuno Campos
b99a101b2c
Add large parallel graph test
2024-09-04 10:50:05 -07:00
Nuno Campos
e150193491
Avoid deepcopy
2024-09-04 10:50:05 -07:00
isaac hershenson
ec51760f57
x
2024-09-03 13:45:22 -07:00
Isaac Francisco and GitHub
32d07df7a4
Merge branch 'main' into isaac/nodelogging
2024-09-03 13:39:05 -07:00
Isaac Francisco and GitHub
1ae60dccc5
test ( #1592 )
2024-09-03 10:12:36 -07:00
Nuno Campos
5d1ab66535
sqlite 1.0.3
2024-09-03 09:41:04 -07:00
Nuno Campos
4ddb4ae5a0
Update
2024-09-03 09:26:45 -07:00
Nuno Campos
a99b66ae3f
Update
2024-09-03 09:20:17 -07:00
Nuno Campos and Nuno Campos
4793b3f5e1
Use a lock for all operations on sqlite checkpointer
...
- Otherwise when used in multiple subgraphs in parallel separate queries can interfere w each other
2024-09-03 09:20:17 -07:00
Nuno Campos and Nuno Campos
3c5913aa29
Remove pydantic base class from Pregel/PregelNode
2024-09-03 09:20:17 -07:00
Nuno Campos and GitHub
974b6c7bf3
Merge pull request #1549 from langchain-ai/wfh/optional_types
...
Support optional types from typeddict
2024-09-03 09:11:14 -07:00
Vadym Barda and GitHub
d492475c61
checkpoint-sqlite: close connection in from_conn_string ( #1589 )
2024-09-03 11:00:37 -04:00
Nuno Campos
af666a87fb
sqlite 1.0.2
2024-09-02 17:58:01 -07:00
Nuno Campos
6e9f54e5ae
postgres 1.0.6
2024-09-02 17:57:55 -07:00
Nuno Campos
dd4a15b569
Require latest version of langgraph-checkpoint
2024-09-02 17:57:33 -07:00
Nuno Campos
3b2a237deb
Lint
2024-09-02 17:45:57 -07:00
Nuno Campos
0cc3799298
checkpoint: Implement sync methods in async checkpointers
...
- These are needed when subgraphs are invoked synchronously in nodes
2024-09-02 17:43:34 -07:00
Nuno Campos
ddeb9d7314
Disable test in old versions of py
2024-09-02 17:42:37 -07:00
Nuno Campos
d65d0ec665
test: Ensure that async checkpointers in tests are setup in same event loop as they are used in
...
- This more closely remembers the environment they're used in, so it's what we should be testing
- Remove unnecessary pytest-asyncio dependency, use anyio pytest plugin instead
- Convert remaining async tests using only memory checkpointer to use all existing ones
2024-09-02 17:24:54 -07:00
Nuno Campos and GitHub
a937754132
lib 0.2.16
2024-09-01 12:15:20 -07:00
William Fu-Hinthorn
1191dc1b48
Handle py3.9
2024-08-30 23:52:41 -07:00
isaac hershenson
ee5801511b
fmt
2024-08-30 18:25:02 -07:00
isaac hershenson
d14477c891
x
2024-08-30 18:22:22 -07:00
isaac hershenson
01765fbda4
x
2024-08-30 17:39:45 -07:00
Isaac Francisco and GitHub
54bcd490ef
Merge branch 'main' into isaac/nodelogging
2024-08-30 16:58:31 -07:00
William Fu-Hinthorn
85e827ae85
Merge branch 'main' into wfh/optional_types
2024-08-30 16:40:56 -07:00
William Fu-Hinthorn
55263c640f
Return a default value instead
2024-08-30 16:28:01 -07:00
William Fu-Hinthorn
51f58279ba
Update snapshot
2024-08-30 16:20:22 -07:00
Nuno Campos
eca419008c
checkpoint 1.0.8
2024-08-30 16:10:57 -07:00
Nuno Campos and GitHub
76994f3c9a
Merge pull request #1521 from langchain-ai/nc/28aug/pydantic-serialization
...
checkpoint: Avoid changes to pydantic models breaking deserialization while still relying on pydantic's type coercion
2024-08-30 15:56:43 -07:00
Nuno Campos
ca4ebe1031
Update tests
2024-08-30 15:51:57 -07:00
Nuno Campos
487fc8a8ca
Detect subgraphs called inside function nodes
2024-08-30 15:13:56 -07:00
Vadym Barda and GitHub
cf4de9a1a5
cli: remove jupyter from examples pyproject ( #1554 )
2024-08-30 21:45:35 +00:00