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): rename post-turn hook APIs to learning hooks
Steven Enamakel6b9b500a8046
diff --git a/crates/openhuman-core/src/agent/hooks_scope.rs b/crates/openhuman-core/src/agent/hooks_scope.rsindex 5b59e51822..ffc9527e5a 100644--- a/crates/openhuman-core/src/agent/hooks_scope.rs+++ b/crates/openhuman-core/src/agent/hooks_scope.rs@@ -29,7 +29,7 @@ impl HookScope {}/// Append a completed-turn callback, preserving registration order.- pub fn push_post_turn(&mut self, hook: Arc<dyn PostTurnHook>) {+ pub fn push_learning(&mut self, hook: Arc<dyn PostTurnHook>) {self.post_turn.push(hook);}diff --git a/crates/openhuman-core/src/agent/session_host/runtime/accessors.rs b/crates/openhuman-core/src/agent/session_host/runtime/accessors.rsindex 4993e7ad2a..43d7f2546b 100644--- a/crates/openhuman-core/src/agent/session_host/runtime/accessors.rs+++ b/crates/openhuman-core/src/agent/session_host/runtime/accessors.rs@@ -247,7 +247,7 @@ impl OpenHumanSessionHost {/// completed-turn callbacks join the learning sink's set and the tool belt/// authority is read when the runtime session is first created.pub fn set_host_env(&mut self, env: crate::agent::turn_env::HostTurnEnv) {- for hook in env.hooks.post_turn_hooks() {+ for hook in env.hooks.learning_hooks() {if !self.post_turn_hooks.iter()diff --git a/crates/openhuman-embed/src/turn.rs b/crates/openhuman-embed/src/turn.rsindex d85d2017cd..28a36ea4e7 100644--- a/crates/openhuman-embed/src/turn.rs+++ b/crates/openhuman-embed/src/turn.rs@@ -211,7 +211,7 @@ impl Turn {/// Add a completed-turn callback for this turn only. The callback runs/// asynchronously with an owned snapshot after the turn completes.pub fn post_turn_hook(mut self, hook: Arc<dyn crate::seams::PostTurnHook>) -> Self {- self.hooks.push_post_turn(hook);+ self.hooks.push_learning(hook);self}