Skip to content

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

fix(memory): handle empty input in ingest and tree family guard

Steven Enamakeleec5a0d45780
diff --git a/crates/openhuman-core/src/memory/guard/families/ingest_and_tree.rs b/crates/openhuman-core/src/memory/guard/families/ingest_and_tree.rs
index 868ffe0051..7f0d0e1e58 100644
--- a/crates/openhuman-core/src/memory/guard/families/ingest_and_tree.rs
+++ b/crates/openhuman-core/src/memory/guard/families/ingest_and_tree.rs
@@ -246,7 +246,7 @@ impl MemoryTree for GuardedTree {
source_id: &str,
limit: usize,
scope: Option<&SourceScope>,
- ) -> Result<Vec<crate::memory::ExtractionMode>, MemoryError> {
+ ) -> Result<Vec<crate::memory::api::chunks::Chunk>, MemoryError> {
self.policy
.admit_read(Capability::Tree, "tree.query_source", namespace, false)?;
let ambient = self.policy.ambient_scope();