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(agent): add per-turn memory recall timeout to memory binding
Steven Enamakelcd3b5149f63f
diff --git a/crates/openhuman-embed/src/agent/spec.rs b/crates/openhuman-embed/src/agent/spec.rsindex dafd1cf72c..035eae3aed 100644--- a/crates/openhuman-embed/src/agent/spec.rs+++ b/crates/openhuman-embed/src/agent/spec.rs@@ -78,6 +78,7 @@ pub struct AgentSpec {pub struct MemoryBinding {agent_id: String,root: Option<String>,+ recall_each_turn: Option<std::time::Duration>,}impl MemoryBinding {@@ -86,6 +87,7 @@ impl MemoryBinding {Self {agent_id: agent_id.into(),root: None,+ recall_each_turn: None,}}@@ -97,6 +99,14 @@ impl MemoryBinding {self}+ /// Recall memory for the user's current message on every turn, and wait+ /// at most `timeout` for it before the turn's first model call.+ #[must_use]+ pub fn recall_each_turn(mut self, timeout: std::time::Duration) -> Self {+ self.recall_each_turn = Some(timeout);+ self+ }+/// The memory agent id.pub fn agent_id(&self) -> &str {&self.agent_id