Skip to content

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

chore(agent): tidy stop hook imports and formatting

Steven Enamakel0b1a6fe85add
diff --git a/crates/openhuman-core/src/agent/hooks_scope.rs b/crates/openhuman-core/src/agent/hooks_scope.rs
index 336b803a17..5b59e51822 100644
--- a/crates/openhuman-core/src/agent/hooks_scope.rs
+++ b/crates/openhuman-core/src/agent/hooks_scope.rs
@@ -19,8 +19,7 @@ use super::{PostTurnHook, ToolHook};
pub struct HookScope {
tools: Vec<Arc<dyn ToolHook>>,
post_turn: Vec<Arc<dyn PostTurnHook>>,
- stop:
- Vec<Arc<dyn tinyagents_hooks::stop::StopHook<tinyagents_harness::cost::TurnCost>>>,
+ stop: Vec<Arc<dyn tinyagents_hooks::stop::StopHook<tinyagents_harness::cost::TurnCost>>>,
}
impl HookScope {
@@ -55,8 +54,7 @@ impl HookScope {
/// The scope's own stop policies, in registration order.
pub fn stop_hooks(
&self,
- ) -> &[Arc<dyn tinyagents_hooks::stop::StopHook<tinyagents_harness::cost::TurnCost>>]
- {
+ ) -> &[Arc<dyn tinyagents_hooks::stop::StopHook<tinyagents_harness::cost::TurnCost>>] {
&self.stop
}
diff --git a/crates/openhuman-core/src/agent/tinyagents/host/run_context.rs b/crates/openhuman-core/src/agent/tinyagents/host/run_context.rs
index 54cf971ea1..5683b70df1 100644
--- a/crates/openhuman-core/src/agent/tinyagents/host/run_context.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/host/run_context.rs
@@ -24,9 +24,9 @@ use crate::agent::tinyagents::{
};
use crate::agent::turn_origin::AgentTurnOrigin;
use tinyagents_definition::SandboxMode;
-use tinyagents_hooks::stop::StopHook;
use tinyagents_harness::store::InMemoryStore as ToolResultArtifactIndexStore;
use tinyagents_harness::turn_outcome::{ToolCallOutcome, ToolOutcomeSink};
+use tinyagents_hooks::stop::StopHook;
use tinyinference_llm::model::ResolvedModelRoute;
/// Allocate a durable-unique root [`RunConfig`](tinyagents_harness::context::RunConfig).
diff --git a/crates/openhuman-core/src/agent/tinyagents/stop_hooks.rs b/crates/openhuman-core/src/agent/tinyagents/stop_hooks.rs
index 177651846f..f9271b84bf 100644
--- a/crates/openhuman-core/src/agent/tinyagents/stop_hooks.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/stop_hooks.rs
@@ -2,9 +2,9 @@
use std::sync::Arc;
use tinyagents_harness::cost::TurnCost;
-use tinyagents_hooks::stop::StopHookMiddleware;
-use tinyagents_hooks::stop::StopHook;
use tinyagents_harness::steering::SteeringHandle;
+use tinyagents_hooks::stop::StopHook;
+use tinyagents_hooks::stop::StopHookMiddleware;
/// Install product policies and preserve the host-facing halt summary.
pub(super) fn install(