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
refactor(agent): extract named hook tuple type aliases
Steven Enamakele051e8db0c64
diff --git a/crates/openhuman-core/src/agent/hooks.rs b/crates/openhuman-core/src/agent/hooks.rsindex a687bb3290..c5117ebc09 100644--- a/crates/openhuman-core/src/agent/hooks.rs+++ b/crates/openhuman-core/src/agent/hooks.rs@@ -10,8 +10,11 @@ use tinyagents_hooks::tool::{HookIdentity, ToolHook};use crate::agent::tinyagents::host::OpenHumanRunContext;+type NamedLearningSink = (Option<String>, Arc<dyn LearningSink>);+type NamedToolHook = (Option<String>, Arc<dyn ToolHook<OpenHumanRunContext>>);+static EMBEDDER_POST_TURN_HOOKS: std::sync::LazyLock<- std::sync::Mutex<Vec<(Option<String>, Arc<dyn LearningSink>)>>,+ std::sync::Mutex<Vec<NamedLearningSink>>,> = std::sync::LazyLock::new(|| std::sync::Mutex::new(Vec::new()));static EMBEDDER_TOOL_HOOKS: std::sync::LazyLock<std::sync::Mutex<Vec<(Option<String>, Arc<dyn ToolHook<OpenHumanRunContext>>)>>,