Skip to content

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

refactor(memory): tidy schema module imports and ordering

Steven Enamakel534717f4b01f
diff --git a/crates/openhuman-core/src/memory/schemas/defs.rs b/crates/openhuman-core/src/memory/schemas/defs.rs
index 767c37b462..45d1e6f584 100644
--- a/crates/openhuman-core/src/memory/schemas/defs.rs
+++ b/crates/openhuman-core/src/memory/schemas/defs.rs
@@ -40,9 +40,9 @@ pub const FUNCTIONS: [&str; 35] = [
"migration_retry",
];
+mod brain;
mod common;
mod conversations;
-mod brain;
mod engine;
mod import;
mod jobs;
@@ -52,6 +52,7 @@ mod retrieval;
mod sources;
use crate::core::{ControllerSchema, FieldSchema, TypeSchema};
+use common::req;
/// The schema of `function`; an unknown function gets the namespace's
/// `unknown` placeholder, as every namespace does.
diff --git a/crates/openhuman-core/src/memory/schemas/defs/common.rs b/crates/openhuman-core/src/memory/schemas/defs/common.rs
index 14f00dcbe6..496869356c 100644
--- a/crates/openhuman-core/src/memory/schemas/defs/common.rs
+++ b/crates/openhuman-core/src/memory/schemas/defs/common.rs
@@ -1,4 +1,4 @@
-use crate::core::{ControllerSchema, FieldSchema, TypeSchema};
+use crate::core::{FieldSchema, TypeSchema};
fn field(name: &'static str, ty: TypeSchema, comment: &'static str, required: bool) -> FieldSchema {
FieldSchema {
@@ -64,6 +64,3 @@ pub(super) fn cursor() -> FieldSchema {
"Engine cursor from a previous page.",
)
}
-
-/// The schema of `function`; an unknown function gets the namespace's
-/// `unknown` placeholder, as every namespace does.