The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
feat(memory): register the collapsed memory tool
Steven Enamakel4ba6f6c3d1f3
diff --git a/src/openhuman/memory/tools/collapsed.rs b/src/openhuman/memory/tools/collapsed.rsindex c12dbc4ca5..e272b92b74 100644--- a/src/openhuman/memory/tools/collapsed.rs+++ b/src/openhuman/memory/tools/collapsed.rs@@ -211,7 +211,10 @@ mod tests {#[test]fn every_member_is_hidden_so_the_collapse_actually_saves_something() {- for entry in tool().actions() {+ // `all_actions`, not `actions`: capability filtering could hide a+ // still-advertised member from this check in some environments, and+ // the property being pinned holds regardless of capabilities.+ for entry in tool().all_actions() {assert_eq!(entry.tool.exposure(),ToolExposure::Hidden,@@ -280,7 +283,7 @@ mod tests {// Pinning the decision in the module docs: `memory_tree` dispatches on// its own `mode`, and folding it in would make this two-level.assert!(- !tool().actions().iter().any(|e| e.tool.name() == "memory_tree"),+ !tool().all_actions().iter().any(|e| e.tool.name() == "memory_tree"),"memory_tree stays a separate tool");}diff --git a/src/openhuman/tools/ops.rs b/src/openhuman/tools/ops.rsindex 49855a3422..74874d1779 100644--- a/src/openhuman/tools/ops.rs+++ b/src/openhuman/tools/ops.rs@@ -445,6 +445,14 @@ pub fn all_tools_with_runtime(Box::new(WalletTxReceiptTool::new()),#[cfg(feature = "web3")]Box::new(WalletLookupTxTool::new()),+ // The memory surface the model sees. The eleven per-operation tools it+ // dispatches to stay registered as `ToolExposure::Hidden` so a+ // replayed transcript or a saved skill naming `memory_*` still works —+ // see `memory::tools::collapsed`.+ Box::new(crate::openhuman::memory::tools::MemoryTool::new(+ config.clone(),+ security.clone(),+ )),Box::new(MemoryStoreTool::new(security.clone())),Box::new(MemoryRecallTool::new()),Box::new(MemoryForgetTool::new(security.clone())),