Skip to content

Commit 052878f

Browse files
authored
Implements a comprehensive agent memory system for support LLM agents (#78)
1 parent 20c4990 commit 052878f

18 files changed

Lines changed: 4864 additions & 169 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
run: cargo fmt --all -- --check
2222

2323
- name: build
24-
run: cargo build --verbose
24+
run: cargo build --all --verbose
2525

2626
- name: test
2727
run: cargo test --verbose
@@ -30,7 +30,7 @@ jobs:
3030
run: cargo test --benches --no-run --verbose
3131

3232
- name: clippy
33-
run: cargo clippy
33+
run: cargo clippy --all
3434

3535
- name: docs
3636
run: cargo doc --document-private-items --no-deps

Cargo.toml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ gluesql-core = { version = "0.15", optional = true }
3838
async-trait = { version = "0.1", optional = true }
3939
uuid = { version = "1.0", optional = true }
4040
futures = { version = "0.3", optional = true }
41-
tokio = { version = "1.0", features = ["rt-multi-thread", "macros"], optional = true }
41+
tokio = { version = "1.0", features = ["rt-multi-thread", "macros", "sync"], optional = true }
42+
rig-core = { version = "0.2.1", optional = true }
4243
pyo3 = { version = "0.22", features = ["extension-module"], optional = true }
4344
rocksdb = { version = "0.22", optional = true }
4445

@@ -58,6 +59,7 @@ prolly_balance_max_nodes = []
5859
prolly_balance_rolling_hash = []
5960
git = ["dep:gix", "dep:clap", "dep:lru", "dep:hex", "dep:chrono"]
6061
sql = ["dep:gluesql-core", "dep:async-trait", "dep:uuid", "dep:futures", "dep:tokio"]
62+
rig = ["dep:rig-core", "dep:tokio", "dep:async-trait"]
6163
python = ["dep:pyo3"]
6264
rocksdb_storage = ["dep:rocksdb", "dep:lru"]
6365

@@ -104,9 +106,14 @@ path = "examples/merge.rs"
104106
required-features = ["git"]
105107

106108
[[example]]
107-
name = "torage"
109+
name = "storage"
108110
path = "examples/storage.rs"
109111
required-features = ["rocksdb_storage"]
110112

113+
[[example]]
114+
name = "agent_rig_demo"
115+
path = "examples/agent.rs"
116+
required-features = ["git", "sql", "rig"]
117+
111118
[workspace]
112119
members = ["examples/financial_advisor"]

0 commit comments

Comments
 (0)