Commit 1645e1c
authored
Feat/ext langgraph checkpoint (#868)
* feat: align put, put_writes and get_tuple to redis checkpoint saver for consistincy
Signed-off-by: Casper Nielsen <[email protected]>
* chore: include new import of python-ulid for langgraph checkpoint support
Signed-off-by: Casper Nielsen <[email protected]>
* chore: ruff formatting
Signed-off-by: Casper Nielsen <[email protected]>
* fix: include missing import of msgpack
Signed-off-by: Casper Nielsen <[email protected]>
* fix: ensure handing of empty checkpoint_id passed in config to put_writes
Signed-off-by: Casper Nielsen <[email protected]>
* chore: align extract of config between put and put_writes
Signed-off-by: Casper Nielsen <[email protected]>
* fix: handle str retrieval for get_tuple with extra type checking
Signed-off-by: Casper Nielsen <[email protected]>
* chore: add example for ext-langgraph
Signed-off-by: Casper Nielsen <[email protected]>
* fix: rename to redis-memory
Signed-off-by: Casper Nielsen <[email protected]>
* feat: add sqlite component
Signed-off-by: Casper Nielsen <[email protected]>
* fix: remove refs to redis
Signed-off-by: Casper Nielsen <[email protected]>
* chore: update readme with details on dual state component setup
Signed-off-by: Casper Nielsen <[email protected]>
* fix: add guard for None metadata
Signed-off-by: Casper Nielsen <[email protected]>
* test: update test case to handle new output format
Signed-off-by: Casper Nielsen <[email protected]>
* chore: remove redundant graph .compile() call
Signed-off-by: Casper Nielsen <[email protected]>
* fix: remove statestores and rely on existing metadata created
Signed-off-by: Casper Nielsen <[email protected]>
* fix: delete files not needed to align with ci testing
Signed-off-by: Casper Nielsen <[email protected]>
* fix: rename to agent.py & simplify
Signed-off-by: Casper Nielsen <[email protected]>
* chore: align deps
Signed-off-by: Casper Nielsen <[email protected]>
* fix: correct readme to align with other examples
Signed-off-by: Casper Nielsen <[email protected]>
* chore: add extra validation lines
Signed-off-by: Casper Nielsen <[email protected]>
* feat: add langgraph-checkpointer to test
Signed-off-by: Casper Nielsen <[email protected]>
* chore: ruff formatting
Signed-off-by: Casper Nielsen <[email protected]>
* fix: add instruction for the OPENAI_API_KEY export
Signed-off-by: Casper Nielsen <[email protected]>
* feat: attempt using smaller llama model for examples testing
Signed-off-by: Casper Nielsen <[email protected]>
* fix: correct deps for ci install
Signed-off-by: Casper Nielsen <[email protected]>
* feat: ensure ci installs required dependencies
Signed-off-by: Casper Nielsen <[email protected]>
* chore: formatting
Signed-off-by: Casper Nielsen <[email protected]>
* fix: ensure ollama runs as a bg process
Signed-off-by: Casper Nielsen <[email protected]>
* fix: be more concise in the multiply ask
Signed-off-by: Casper Nielsen <[email protected]>
* fix: the small model isn't consistent enough for CI to depend on it. Add sleep to ensure ollama us serving before pulling model
Signed-off-by: Casper Nielsen <[email protected]>
* fix: simplify verification strings to handle non determinism in response
Signed-off-by: Casper Nielsen <[email protected]>
---------
Signed-off-by: Casper Nielsen <[email protected]>1 parent 126825d commit 1645e1c
File tree
9 files changed
+499
-71
lines changed- .github/workflows
- examples/langgraph-checkpointer
- components
- ext/dapr-ext-langgraph
- dapr/ext/langgraph
- tests
9 files changed
+499
-71
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
91 | 97 | | |
92 | 98 | | |
93 | 99 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
0 commit comments