Nuno Campos
4b0fd834d8
Make it possible to implement a cipher that handles multiple protocols
2025-03-14 16:04:28 -07:00
Nuno Campos
0fd2748530
Accept custom serde implementations
2025-03-14 15:43:07 -07:00
Nuno Campos
bc0a3419ed
Lint
2025-03-14 15:38:22 -07:00
Nuno Campos
5cd47bac49
Add optional encryption of checkpointer payloads
...
- no dependency on any particular encryption lib (there is no py stdlib encryption lib)
- works with any modern checkpointer, ie. those which use dumps_typed and loads_typed methods to serialize data
- backwards compatible with unencrypted data in same storage (will just be read unencrypted)
- providing easy constructor to use AES encryption through pycriptodome library, one single line of code to add it in
- other encryption libraries or algorithms (even assymetric ones) can be used by implementing the two-method CipherProtocol interface
- cipher name (eg. aes) is stored with encrypted payload for forwards compatibility
2025-03-14 15:32:50 -07:00
William Fu-Hinthorn
18ed044c27
Bump patch version
2025-03-14 14:03:30 -07:00
William Fu-Hinthorn
9741d9bdf0
Add tests for sweeper (sync)
2025-03-14 13:43:53 -07:00
William Fu-Hinthorn
f1162ac898
Bump
2025-03-11 20:22:58 -07:00
William Fu-Hinthorn
4de8443c5c
Add default TTL in store & CLI
2025-03-11 20:15:38 -07:00
William Fu-Hinthorn
852a129881
Default store ttl config
2025-03-11 15:58:58 -07:00
37344124e1
Fix updated_at timestamp loading ( #3767 )
...
Co-authored-by: Mohammad Mohtashim <45242107+keenborder786@users.noreply.github.com >
2025-03-10 22:20:12 +00:00
William FH and GitHub
c3df8bd500
Ensure key is string ( #3739 )
...
Mainly relevenat for the in memory store.
2025-03-07 11:21:32 -08:00
William FH and GitHub
cbf26a5d98
Fix indentation in docstring ( #3727 )
2025-03-06 13:35:20 -08:00
William FH and GitHub
09bd5990d4
Add TTL option for store items ( #3704 )
2025-03-06 13:20:32 -08:00
Nuno Campos
5da6971a95
When rehydrating a pydantic module, fallback to returning the kwargs dict
...
- when the class can't be found, or can't be constructed, fallback to returning the kwargs dict, instead of returning nothing
2025-03-04 14:10:49 -08:00
Nino Risteski and GitHub
078b335448
chore(checkpoint): fix typos in README ( #3553 )
2025-02-22 11:10:09 +00:00
Nuno Campos
f3a0cbf294
Format
2025-02-18 11:46:48 -08:00
Nuno Campos
f4fec76257
checkpoint: Fix memory leak in checkpoint serializer
...
- Packer instances can't be kept in memory as they retain memory after used
2025-02-18 11:44:26 -08:00
Nuno Campos
62f004fd28
Lint
2025-02-14 18:42:40 -08:00
Nuno Campos
d4b22ac1d4
Fix postgres tests
2025-02-14 18:40:30 -08:00
Nuno Campos
e8665f84e7
Update
2025-02-14 18:31:03 -08:00
Nuno Campos
8ff5e79e70
Lint
2025-02-14 18:27:49 -08:00
Nuno Campos
7f4822931e
Update tests
2025-02-14 18:24:48 -08:00
Nuno Campos
9706211aca
Exclude complex values from checkpoint metadata
2025-02-14 17:35:14 -08:00
Nuno Campos
bf7252cadc
checkpoint 2.0.14
2025-02-14 12:28:04 -08:00
Nuno Campos
da97d2e1ba
Fix
2025-02-14 12:03:03 -08:00
Nuno Campos
6baf320d8e
Fix
2025-02-14 10:43:03 -08:00
Nuno Campos
a064ccdca1
Lint
2025-02-14 10:40:09 -08:00
Nuno Campos
b5479b48bf
Lint
2025-02-14 10:39:34 -08:00
Nuno Campos
9dbcb03185
Fix busy loop in AsyncBatchedBaseStore
...
- while loop w asyncio.sleep(0) takes up cpu
2025-02-14 10:36:02 -08:00
Vadym Barda and GitHub
d45253cee8
checkpoint: release libraries ( #3412 )
2025-02-12 22:44:44 -05:00
Vadym Barda and GitHub
1377e3b6ba
checkpoint: combine metadata when writing checkpoints ( #3404 )
2025-02-13 03:24:41 +00:00
William FH and GitHub
e81979827f
Support index embed specification via string ( #3317 )
...
So you can do
```
from langgraph.store.memory|posgres|etc. import InMemoryStore
InMemoryStore(index={"embed": "openai:text-embedding-3-small"})
```
2025-02-09 02:09:10 +00:00
William FH and GitHub
3daa4ae466
Update name to InMemorySaver ( #2044 )
...
(Keep MemorySaver around for backwards compatibility)
"MemorySaver" is ambiguous: is it saving memories? Where is it saving
memories to?
InMemorySaver aligns naming InMemoryStore as well as similar LangChain
objects (InMemoryVectorStore, etc.)
2025-02-05 22:04:25 -08:00
Nuno Campos
2c984dfe4e
checkpoint 2.0.10
2025-01-15 11:14:03 -08:00
Nuno Campos
14b500d8a8
Fix
2025-01-15 10:47:09 -08:00
Nuno Campos
053a501db3
Add optional task_path arg for put_writes()
...
- Will be used for sorting pending_sends when available
2025-01-15 10:42:54 -08:00
Vadym Barda and GitHub
a200027cda
checkpoint: release 2.0.9 ( #2744 )
2024-12-12 15:06:54 -05:00
vbarda
a031f8294e
all lines
2024-12-12 11:06:45 -05:00
vbarda
7d940a4a96
lint
2024-12-12 10:58:50 -05:00
vbarda
6ae0c83c83
checkpoint: set strict_map_key=False in serde
2024-12-12 10:58:07 -05:00
Nuno Campos
7f8ec2c590
Fix
2024-12-10 13:46:45 -08:00
Nuno Campos
11e80210a2
lib: Performance improvements
...
- don't create contextvars.Context/asyncio.Task in RunnableSeq (not needed as each step creates it if necessary)
- don't run in-memory-saver methods in background threads (no point as they hold the gil)
- avoid calling should_interrupt when no interrupts set
2024-12-10 11:40:24 -08:00
William FH and GitHub
3f1bdb9ebf
Add sync support for the AsyncPostgresStore ( #2673 )
2024-12-09 07:12:52 -08:00
William FH and GitHub
0f0e31df24
Nicer item repr ( #2655 )
2024-12-05 10:52:44 -08:00
William FH and GitHub
e5e659c590
Add langgraph.json snippet to concept doc ( #2630 )
2024-12-04 17:11:13 +00:00
William FH and GitHub
830557d6b7
Clarify behavior in docstring ( #2628 )
2024-12-04 16:38:09 +00:00
William FH and GitHub
c322f7ffa6
Add Memory Store conceptual doc section ( #2624 )
...
On semantic search
2024-12-04 15:19:49 +00:00
William FH and GitHub
e6c83abecd
Fix ref doc formatting ( #2623 )
2024-12-04 06:55:15 -08:00
William FH and GitHub
5fa196ab38
Update docstrings for store classes ( #2616 )
2024-12-03 19:51:25 -08:00
William FH and GitHub
36b6cd1493
fix: Handle empty store similarity (numpy) ( #2602 )
2024-12-02 18:20:19 -08:00