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
3943637202
Bump them all
2024-08-30 14:18:35 -07:00
Nuno Campos
af1f218e00
Try init, then construct
2024-08-30 13:35:33 -07:00
Nuno Campos
5db13dffbe
checkpoint: Avoid changes to pydantic models breaking deserialization while still relying on pydantic's type coercion
2024-08-30 13:28:32 -07:00
Nuno Campos
ca8614f873
Implement get_state and get_state_history for nested graphs
2024-08-29 09:45:45 -07:00
Nuno Campos
e338a4ec98
Fix filtering on ns
2024-08-27 16:09:11 -07:00
Nuno Campos
499fe10ef2
Undo addition of Send.id
2024-08-27 13:34:50 -07:00
Nuno Campos
8d23929288
Remove print
2024-08-27 11:18:53 -07:00
Nuno Campos
9b6100bc4f
Avoid storing Sends twice in memory and postgres checkpointers
...
- Sends are stored through put_writes, so we don't need to also store them inside checkpoint object
- On reading checkpoint, reconstruct pending_sends from the stored writes
2024-08-27 11:10:18 -07:00
Nuno Campos
7fcc0da4e3
Reformat
2024-08-27 11:00:25 -07:00
Nuno Campos
d7eff6ab85
Remove abc
2024-08-27 10:52:26 -07:00
Nuno Campos
330c91f622
Update ruff
2024-08-27 10:50:39 -07:00
vbarda
507930e5b7
lint
2024-08-26 19:29:05 -04:00
vbarda
85e698e20b
filter on checkpoint NS
2024-08-26 19:26:35 -04:00
vbarda
bf4dc5d5f6
Merge branch 'main' into vb/update-get-state
2024-08-26 19:17:26 -04:00
Nuno Campos
1d0f3577a7
Catch any type error when reviving saved values
2024-08-26 13:17:19 -07:00
Nuno Campos
4a4dd16535
checkpoint 1.0.6
2024-08-23 18:25:56 -07:00
Nuno Campos
ef790a57c6
Lint
2024-08-23 18:17:51 -07:00
Nuno Campos
c49692d794
checkpoint 1.0.5
2024-08-23 18:15:48 -07:00
Nuno Campos
3ac4cdf3d4
Fix pydantic model deserialization
2024-08-23 18:14:40 -07:00
Vadym Barda and GitHub
4c4d7054ab
Merge branch 'main' into vb/update-get-state
2024-08-23 14:27:40 -04:00
Nuno Campos
82db383199
Don't try to serialize exceptions
...
- Store their string repr instead
2024-08-22 21:36:27 -07:00
vbarda
4162be8119
optimize subgraph state lookups
2024-08-22 20:35:08 -04:00
vbarda
acd8acf237
lint
2024-08-22 16:47:12 -04:00
Nuno Campos
8a00a0026e
checkpoint1.0.4
2024-08-22 12:45:20 -07:00
Nuno Campos and GitHub
7e32de9405
Remove current_tasks from checkpoint interface ( #1440 )
...
* Remove current_tasks from checkpoint interface
- Not used, now clear that it can be supported with put_writes(SCHEDULE)
* Add comment
2024-08-22 19:44:26 +00:00
vbarda
5654d8fc86
Merge branch 'main' into vb/update-get-state
2024-08-22 15:34:14 -04:00
Nuno Campos and GitHub
a261e1a497
Fix semantics of put_writes/list ( #1436 )
...
* Fix semantics of put_writes/list
- put_writes(error) should not prevent saving future successful if task is retried successfully
- put_writes(writes) should be a no-op if non-error writes already exist for that task (this prevents tasks executed more than once from modifying writes previously saved / acted on)
- checkpoints should not include channel default values (ie those without a version)
- list() should fetch and return writes for each checkpoint
* Lint
* Rm print
* Fix import
* Lint
2024-08-22 19:04:42 +00:00
vbarda
f51e7ea9a4
pass pending writes in checkpointers
2024-08-21 15:38:30 -04:00
vbarda
a94168af7f
Merge branch 'main' into vb/update-get-state
2024-08-21 15:07:52 -04:00
Nuno Campos
7aaeedd7ba
checkpoint-*: In put_writes clear any previously saved writes for this task_id
...
- Previously implementations were clearing only tasks if the index matched a previously saved one, which isn't enough to guarantee idempotency
2024-08-19 15:40:04 -07:00
Nuno Campos
e916cab08f
Checkpoint errors in pending_writes, expose under StateSnapshot.tasks
...
- Save errors produced by tasks, under pending_writes
- Re-work logic to cancel other tasks when one fails, ready to change for interrupt exception
- Update serializer to handle exceptions
- Update get_state/get_state_history with new return value property "tasks" which contains a richer description of the next tasks, currently with id, name and error (if already ran and errored)
2024-08-16 13:11:27 -07:00
Nuno Campos
d07cbd34ce
checkpoint1.0.3
2024-08-15 10:19:50 -07:00
Nuno Campos
728b283063
checkpoint: Ignore serialized values when constructor no longer available
2024-08-14 10:59:14 -07:00
Vadym Barda and GitHub
392891f5fc
Merge branch 'main' into vb/update-get-state
2024-08-13 18:20:32 -04:00
vbarda
58887a5a3b
checkpoints/interrupts for subgraphs triggered by sends
2024-08-13 18:15:57 -04:00
vbarda
5033044587
update checkpointer tests
2024-08-12 16:22:27 -04:00
vbarda
fb05bdc2bf
return all checkpoints from .list
2024-08-12 15:52:17 -04:00
vbarda
322cfc46d3
cleanup
2024-08-12 12:43:28 -04:00
vbarda
c9d6a41d75
Merge branch 'main' into vb/update-get-state
2024-08-12 10:26:56 -04:00
Nuno Campos
a64c0a2679
Add pathlib.Path and re.Pattern
2024-08-11 19:40:11 -07:00
Nuno Campos
fdc5aece52
Add Decimal
2024-08-11 19:34:22 -07:00
Nuno Campos
685db62029
checkpoint: Add support for serializing more python types
...
- all ip interfaces
- deque,
- ZoneInfo
- date
- time
2024-08-11 19:27:29 -07:00
Vadym Barda and GitHub
71ce07d971
checkpoint: update docstrings for checkpoint libraries ( #1277 )
2024-08-08 16:26:16 +00:00
Vadym Barda and GitHub
5cab47f751
checkpoint: move memory into a directory to fix namespace import issues ( #1249 )
2024-08-07 09:41:06 -04:00
Vadym Barda and GitHub
2b860f04ce
checkpoint: release 1.0.1 ( #1243 )
2024-08-06 22:38:13 -04:00
b37f78942d
checkpoint-postgres: new library for postgres checkpointer implementation ( #1236 )
...
* checkpoint-postgres: new library for postgres checkpointer implementation
---------
Co-authored-by: Nuno Campos <nuno@langchain.dev >
2024-08-06 22:37:06 -04:00
vbarda
55717c9bde
update memory saver + tests
2024-08-05 16:53:33 -04:00