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): expose unified memory tool
Steven Enamakel0a83f04fe475
diff --git a/src/openhuman/memory/tools.rs b/src/openhuman/memory/tools.rsindex 05388e0f92..e3fd2f68e9 100644--- a/src/openhuman/memory/tools.rs+++ b/src/openhuman/memory/tools.rs@@ -1,3 +1,4 @@+mod collapsed;mod doctor;// `pub(crate)` (not `mod`): the tinyflows `memory` node's `OpenHumanMemory`// adapter (`crate::openhuman::flows::tinyflows::memory_adapter`) reaches@@ -22,6 +23,7 @@ pub mod search;pub mod tool_memory;pub use crate::openhuman::memory::query::*;+pub use collapsed::{MemoryTool, MEMORY_TOOL_NAME};pub use doctor::MemoryDoctorTool;pub use flavour::MemoryFlavourTool;pub use forget::MemoryForgetTool;diff --git a/src/openhuman/memory/tools/doctor.rs b/src/openhuman/memory/tools/doctor.rsindex 538b48de6f..a7fc52006d 100644--- a/src/openhuman/memory/tools/doctor.rs+++ b/src/openhuman/memory/tools/doctor.rs@@ -26,6 +26,14 @@ impl MemoryDoctorTool {#[async_trait]impl Tool for MemoryDoctorTool {+ /// Superseded by the `memory` tool, which dispatches every memory+ /// operation on one `action` field. Kept registered and dispatchable so a+ /// replayed transcript or a saved skill naming `memory_*` keeps working;+ /// hidden from the wire so eleven schemas do not ship where one does.+ fn exposure(&self) -> ToolExposure {+ ToolExposure::Hidden+ }+fn name(&self) -> &str {"memory_doctor"}diff --git a/src/openhuman/memory/tools/flavour.rs b/src/openhuman/memory/tools/flavour.rsindex ff599de768..47adcd813e 100644--- a/src/openhuman/memory/tools/flavour.rs+++ b/src/openhuman/memory/tools/flavour.rs@@ -224,6 +224,14 @@ pub(crate) fn lookup_flavour(config: &Config, flavour_raw: &str) -> Result<Flavo#[async_trait]impl Tool for MemoryFlavourTool {+ /// Superseded by the `memory` tool, which dispatches every memory+ /// operation on one `action` field. Kept registered and dispatchable so a+ /// replayed transcript or a saved skill naming `memory_*` keeps working;+ /// hidden from the wire so eleven schemas do not ship where one does.+ fn exposure(&self) -> ToolExposure {+ ToolExposure::Hidden+ }+fn name(&self) -> &str {"memory_flavour"}diff --git a/src/openhuman/memory/tools/forget.rs b/src/openhuman/memory/tools/forget.rsindex bebb6b5765..6a7c5e46ff 100644--- a/src/openhuman/memory/tools/forget.rs+++ b/src/openhuman/memory/tools/forget.rs@@ -22,6 +22,14 @@ impl MemoryForgetTool {#[async_trait]impl Tool for MemoryForgetTool {+ /// Superseded by the `memory` tool, which dispatches every memory+ /// operation on one `action` field. Kept registered and dispatchable so a+ /// replayed transcript or a saved skill naming `memory_*` keeps working;+ /// hidden from the wire so eleven schemas do not ship where one does.+ fn exposure(&self) -> ToolExposure {+ ToolExposure::Hidden+ }+fn name(&self) -> &str {"memory_forget"}diff --git a/src/openhuman/memory/tools/raw_store/kinds.rs b/src/openhuman/memory/tools/raw_store/kinds.rsindex 96e62dae0f..2060ea025d 100644--- a/src/openhuman/memory/tools/raw_store/kinds.rs+++ b/src/openhuman/memory/tools/raw_store/kinds.rs@@ -17,6 +17,14 @@ pub struct MemoryStoreKindsTool;#[async_trait]impl Tool for MemoryStoreKindsTool {+ /// Superseded by the `memory` tool, which dispatches every memory+ /// operation on one `action` field. Kept registered and dispatchable so a+ /// replayed transcript or a saved skill naming `memory_*` keeps working;+ /// hidden from the wire so eleven schemas do not ship where one does.+ fn exposure(&self) -> ToolExposure {+ ToolExposure::Hidden+ }+fn name(&self) -> &str {"memory_store_kinds"}diff --git a/src/openhuman/memory/tools/raw_store/raw_chunks.rs b/src/openhuman/memory/tools/raw_store/raw_chunks.rsindex 75341929fc..a232d4e449 100644--- a/src/openhuman/memory/tools/raw_store/raw_chunks.rs+++ b/src/openhuman/memory/tools/raw_store/raw_chunks.rs@@ -35,6 +35,14 @@ struct Args {#[async_trait]impl Tool for MemoryStoreRawChunksTool {+ /// Superseded by the `memory` tool, which dispatches every memory+ /// operation on one `action` field. Kept registered and dispatchable so a+ /// replayed transcript or a saved skill naming `memory_*` keeps working;+ /// hidden from the wire so eleven schemas do not ship where one does.+ fn exposure(&self) -> ToolExposure {+ ToolExposure::Hidden+ }+fn name(&self) -> &str {"memory_store_raw_chunks"}diff --git a/src/openhuman/memory/tools/raw_store/raw_search.rs b/src/openhuman/memory/tools/raw_store/raw_search.rsindex d56cdf09f9..499b8a9db7 100644--- a/src/openhuman/memory/tools/raw_store/raw_search.rs+++ b/src/openhuman/memory/tools/raw_store/raw_search.rs@@ -31,6 +31,14 @@ fn default_limit() -> usize {#[async_trait]impl Tool for MemoryStoreRawSearchTool {+ /// Superseded by the `memory` tool, which dispatches every memory+ /// operation on one `action` field. Kept registered and dispatchable so a+ /// replayed transcript or a saved skill naming `memory_*` keeps working;+ /// hidden from the wire so eleven schemas do not ship where one does.+ fn exposure(&self) -> ToolExposure {+ ToolExposure::Hidden+ }+fn name(&self) -> &str {"memory_store_raw_search"}diff --git a/src/openhuman/memory/tools/recall.rs b/src/openhuman/memory/tools/recall.rsindex cf112822fc..260f14edf1 100644--- a/src/openhuman/memory/tools/recall.rs+++ b/src/openhuman/memory/tools/recall.rs@@ -27,6 +27,14 @@ impl Default for MemoryRecallTool {#[async_trait]impl Tool for MemoryRecallTool {+ /// Superseded by the `memory` tool, which dispatches every memory+ /// operation on one `action` field. Kept registered and dispatchable so a+ /// replayed transcript or a saved skill naming `memory_*` keeps working;+ /// hidden from the wire so eleven schemas do not ship where one does.+ fn exposure(&self) -> ToolExposure {+ ToolExposure::Hidden+ }+fn name(&self) -> &str {"memory_recall"}diff --git a/src/openhuman/memory/tools/search/chunk_context.rs b/src/openhuman/memory/tools/search/chunk_context.rsindex 93fdf1e083..897cf637bc 100644--- a/src/openhuman/memory/tools/search/chunk_context.rs+++ b/src/openhuman/memory/tools/search/chunk_context.rs@@ -28,6 +28,14 @@ fn default_window() -> usize {#[async_trait]impl Tool for MemoryChunkContextTool {+ /// Superseded by the `memory` tool, which dispatches every memory+ /// operation on one `action` field. Kept registered and dispatchable so a+ /// replayed transcript or a saved skill naming `memory_*` keeps working;+ /// hidden from the wire so eleven schemas do not ship where one does.+ fn exposure(&self) -> ToolExposure {+ ToolExposure::Hidden+ }+fn name(&self) -> &str {"memory_chunk_context"}diff --git a/src/openhuman/memory/tools/search/hybrid_search.rs b/src/openhuman/memory/tools/search/hybrid_search.rsindex 41c7652874..c5a0a857bf 100644--- a/src/openhuman/memory/tools/search/hybrid_search.rs+++ b/src/openhuman/memory/tools/search/hybrid_search.rs@@ -48,6 +48,14 @@ fn kind_label(kind: &MemoryItemKind) -> &'static str {#[async_trait]impl Tool for MemoryHybridSearchTool {+ /// Superseded by the `memory` tool, which dispatches every memory+ /// operation on one `action` field. Kept registered and dispatchable so a+ /// replayed transcript or a saved skill naming `memory_*` keeps working;+ /// hidden from the wire so eleven schemas do not ship where one does.+ fn exposure(&self) -> ToolExposure {+ ToolExposure::Hidden+ }+fn name(&self) -> &str {"memory_hybrid_search"}diff --git a/src/openhuman/memory/tools/search/vector_search.rs b/src/openhuman/memory/tools/search/vector_search.rsindex 23770074b5..7776f1bb65 100644--- a/src/openhuman/memory/tools/search/vector_search.rs+++ b/src/openhuman/memory/tools/search/vector_search.rs@@ -44,6 +44,14 @@ fn default_limit() -> usize {#[async_trait]impl Tool for MemoryVectorSearchTool {+ /// Superseded by the `memory` tool, which dispatches every memory+ /// operation on one `action` field. Kept registered and dispatchable so a+ /// replayed transcript or a saved skill naming `memory_*` keeps working;+ /// hidden from the wire so eleven schemas do not ship where one does.+ fn exposure(&self) -> ToolExposure {+ ToolExposure::Hidden+ }+fn name(&self) -> &str {"memory_vector_search"}diff --git a/src/openhuman/memory/tools/store.rs b/src/openhuman/memory/tools/store.rsindex 2d549915c0..b2390b2b11 100644--- a/src/openhuman/memory/tools/store.rs+++ b/src/openhuman/memory/tools/store.rs@@ -24,6 +24,14 @@ impl MemoryStoreTool {#[async_trait]impl Tool for MemoryStoreTool {+ /// Superseded by the `memory` tool, which dispatches every memory+ /// operation on one `action` field. Kept registered and dispatchable so a+ /// replayed transcript or a saved skill naming `memory_*` keeps working;+ /// hidden from the wire so eleven schemas do not ship where one does.+ fn exposure(&self) -> ToolExposure {+ ToolExposure::Hidden+ }+fn name(&self) -> &str {"memory_store"}