Skip to content

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

chore: files changed crates/openhuman-core/src/memory/engine.rs,crates/openhuman-core/src/memory/ops

Steven Enamakel446e53ed5a6a
diff --git a/crates/openhuman-core/src/memory/engine.rs b/crates/openhuman-core/src/memory/engine.rs
index 9d04e1ea92..0b94d4a465 100644
--- a/crates/openhuman-core/src/memory/engine.rs
+++ b/crates/openhuman-core/src/memory/engine.rs
@@ -439,7 +439,7 @@ fn resolve_cortexdb(config: &Config, root: Option<&str>) -> Binding {
Some(CORTEXDB_ENGINE),
Some(endpoint),
"add a CortexDB API key to use CortexDB memory",
- );
+ )
}
Err(error) => {
tracing::warn!(error = %error, "[memory:engine] reading the CortexDB key failed");
diff --git a/crates/openhuman-core/src/memory/ops.rs b/crates/openhuman-core/src/memory/ops.rs
index 04d36391ae..1843f68628 100644
--- a/crates/openhuman-core/src/memory/ops.rs
+++ b/crates/openhuman-core/src/memory/ops.rs
@@ -167,12 +167,12 @@ pub fn apply_engine_set(config: &mut Config, params: &EngineSetParams) -> Result
TINYHUMANS_ENGINE => {
return Err(Error::InvalidRequest(
("the tinyhumans engine uses your sign-in, not an API key").into(),
- ));
+ ))
}
_ => {
return Err(Error::InvalidRequest(
("this engine takes no API key").into(),
- ));
+ ))
}
}
}
diff --git a/crates/openhuman-core/src/memory/tools.rs b/crates/openhuman-core/src/memory/tools.rs
index f524cf431d..4aff113ca7 100644
--- a/crates/openhuman-core/src/memory/tools.rs
+++ b/crates/openhuman-core/src/memory/tools.rs
@@ -201,11 +201,9 @@ impl MemoryTool {
{
Ok(result) => result,
Err(_) => {
- return ToolResult::error(render_error(
- tinymemory_api::Error::Unavailable(
- "memory write queue unavailable".into(),
- ),
- ));
+ return ToolResult::error(render_error(tinymemory_api::Error::Unavailable(
+ "memory write queue unavailable".into(),
+ )))
}
}
} else {
@@ -312,7 +310,8 @@ fn budget_refusal(refusal: Refusal) -> ToolResult {
}
_ => format!("Memory budget exhausted for this run. {CONTINUE_WITHOUT_MEMORY}"),
};
- ToolResult::error(message).with_metadata(json!({ REFUSAL_METADATA_KEY: "refused" }))
+ ToolResult::error(message)
+ .with_metadata(json!({ REFUSAL_METADATA_KEY: "refused" }))
}
Refusal::TimedOut => ToolResult::error(format!(
"Memory did not finish within its latency budget and is unavailable for this run. {CONTINUE_WITHOUT_MEMORY}"