Skip to content

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

fix(tree): handle empty memory tree in runtime operations

Steven Enamakelafa25bd6268c
diff --git a/src/openhuman/memory/tree/tree_runtime/ops.rs b/src/openhuman/memory/tree/tree_runtime/ops.rs
index 87b0272d89..7aa1c5e76d 100644
--- a/src/openhuman/memory/tree/tree_runtime/ops.rs
+++ b/src/openhuman/memory/tree/tree_runtime/ops.rs
@@ -129,8 +129,9 @@ pub async fn tree_summarizer_rebuild(
store::validate_namespace(namespace)?;
let (provider, _model) = create_provider(config)?;
+ let provider = crate::openhuman::memory::model_bridge::LegacyChatModelBridge::new(provider);
- let status = engine::rebuild_tree(config, provider.as_ref(), namespace.trim())
+ let status = engine::rebuild_tree(config, &provider, namespace.trim())
.await
.map_err(|e| format!("rebuild failed: {e:#}"))?;