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 named lookup for embedder post-turn hooks
Steven Enamakele3c746418f86
diff --git a/crates/openhuman-core/src/agent/hooks.rs b/crates/openhuman-core/src/agent/hooks.rsindex db77d7ea4e..a8cb13ba56 100644--- a/crates/openhuman-core/src/agent/hooks.rs+++ b/crates/openhuman-core/src/agent/hooks.rs@@ -68,6 +68,15 @@ pub fn embedder_post_turn_hooks() -> Vec<Arc<dyn LearningSink>> {.collect()}+pub fn embedder_post_turn_hook_named(name: &str) -> Option<Arc<dyn LearningSink>> {+ EMBEDDER_POST_TURN_HOOKS+ .lock()+ .expect("embedder learning sinks poisoned")+ .iter()+ .find(|(registered, _)| registered.as_deref() == Some(name))+ .map(|(_, hook)| Arc::clone(hook))+}+pub fn embedder_post_turn_hooks_in(ctx: &crate::core::runtime::DispatchCtx,) -> Vec<Arc<dyn LearningSink>> {