Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore: files changed crates/openhuman-core/src/memory/explore.rs,crates/openhuman-core/src/memory/op

Steven Enamakel80022c471e06
diff --git a/crates/openhuman-core/src/memory/explore.rs b/crates/openhuman-core/src/memory/explore.rs
index e19c3e7542..8496b04f15 100644
--- a/crates/openhuman-core/src/memory/explore.rs
+++ b/crates/openhuman-core/src/memory/explore.rs
@@ -60,6 +60,8 @@ pub struct ItemsGetView {
/// `memory_explore`.
pub async fn explore(config: &Config, params: ExploreParams) -> Result<ExplorePage> {
let bound = engine::resolve(config).engine()?;
+ let facet = params.facet;
+ let depth = params.path.len();
let page = super::ops::memory_ops(config)?
.explore(
bound.engine.as_ref(),
@@ -74,8 +76,8 @@ pub async fn explore(config: &Config, params: ExploreParams) -> Result<ExplorePa
.await?;
tracing::debug!(
engine = %bound.id,
- facet = params.facet.as_str(),
- depth = params.path.len(),
+ facet = facet.as_str(),
+ depth,
buckets = page.buckets.len(),
total = page.total,
truncated = page.truncated,
diff --git a/crates/openhuman-core/src/memory/ops.rs b/crates/openhuman-core/src/memory/ops.rs
index b888373217..2803249936 100644
--- a/crates/openhuman-core/src/memory/ops.rs
+++ b/crates/openhuman-core/src/memory/ops.rs
@@ -336,7 +336,7 @@ pub async fn store_item(config: &Config, item: StoreItem) -> Result<StoreReceipt
/// engine indexing the item.
pub async fn store_item_with(
config: &Config,
- mut item: StoreItem,
+ item: StoreItem,
options: WriteOptions,
) -> Result<StoreReceipt> {
let item = memory_ops(config)?.store_item(item)?;
diff --git a/crates/openhuman-core/src/memory/sources/mod.rs b/crates/openhuman-core/src/memory/sources/mod.rs
index 69bb684c23..f2e4ffe566 100644
--- a/crates/openhuman-core/src/memory/sources/mod.rs
+++ b/crates/openhuman-core/src/memory/sources/mod.rs
@@ -166,7 +166,7 @@ pub async fn forget_items(config: &Config, id: &str) -> Result<usize> {
Err(Error::Off(_)) => None,
Err(error) => return Err(error),
};
- let ops = match bound {
+ let ops = match &bound {
Some(_) => super::ops::memory_ops(config)?,
None => MemoryOps::unconfined(),
};