Skip to content

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

refactor(embed): use tinymemory_api types directly

Steven Enamakel6fcf6b593005
diff --git a/crates/openhuman-embed/src/memory.rs b/crates/openhuman-embed/src/memory.rs
index 35e006fde3..57c8cbc0c8 100644
--- a/crates/openhuman-embed/src/memory.rs
+++ b/crates/openhuman-embed/src/memory.rs
@@ -52,7 +52,7 @@ pub use openhuman_core::memory::lifecycle::views::{AgentCount, AgentsView};
pub use openhuman_core::memory::types::{
FetchView, ForgetView, ItemsListView, LearnParams, LearnView, RecallView,
};
-pub use tinymemory_api::{Error, Result};
+use tinymemory_api::{Error, Result};
/// The TinyMemory engine contract, for a host that implements or installs an
/// engine ([`install_host_engine`]) or reads the items this facade returns.
diff --git a/crates/openhuman-embed/src/runtime/mod.rs b/crates/openhuman-embed/src/runtime/mod.rs
index 814a46781a..f5c06e0398 100644
--- a/crates/openhuman-embed/src/runtime/mod.rs
+++ b/crates/openhuman-embed/src/runtime/mod.rs
@@ -509,11 +509,11 @@ impl Runtime {
///
/// # Errors
///
- /// [`Error::InvalidRequest`](crate::memory::Error::InvalidRequest)
+ /// [`tinymemory_api::Error::InvalidRequest`]
/// when `root` is not a valid layout root, or is the store root itself.
- pub fn memory(&self, root: &str) -> crate::memory::Result<crate::memory::Memory> {
+ pub fn memory(&self, root: &str) -> tinymemory_api::Result<crate::memory::Memory> {
if let Some(error) = &self.config_unavailable {
- return Err(crate::memory::Error::InvalidRequest(format!(
+ return Err(tinymemory_api::Error::InvalidRequest(format!(
"the runtime's config failed to load ({error})"
)));
}