Skip to content

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

refactor(openhuman-embed): re-export stop hooks from tinyagents-hooks

Steven Enamakelbbf0482063f6
diff --git a/crates/openhuman-embed/Cargo.toml b/crates/openhuman-embed/Cargo.toml
index 8164a8f591..df26b82bf0 100644
--- a/crates/openhuman-embed/Cargo.toml
+++ b/crates/openhuman-embed/Cargo.toml
@@ -78,6 +78,7 @@ tinymcp-bus = { path = "../../vendor/tinymcp/crates/tinymcp-bus" }
# conversations in its own database, and the in-memory provider; same path as
# the core's so one copy resolves.
tinyagents-harness = { path = "../../vendor/tinyagents/crates/tinyagents-harness", default-features = false }
+tinyagents-hooks = { path = "../../vendor/tinyagents/crates/tinyagents-hooks", default-features = false }
tinyagents-definition = { path = "../../vendor/tinyagents/crates/tinyagents-definition" }
tinyagents-session = { path = "../../vendor/tinyagents/crates/tinyagents-session" }
# Native persisted todo codec exposed by the existing session-store contract.
diff --git a/crates/openhuman-embed/src/lib.rs b/crates/openhuman-embed/src/lib.rs
index b68b7bcb29..25aa5cef4e 100644
--- a/crates/openhuman-embed/src/lib.rs
+++ b/crates/openhuman-embed/src/lib.rs
@@ -220,9 +220,9 @@ pub mod seams {
pub use openhuman_core::agent::stop_hooks::BudgetStopHook;
pub use tinyagents_harness::cost::TurnCost;
pub use tinyagents_harness::middleware::{PolicyDecision, ToolCallPolicy};
- pub use tinyagents_harness::middleware::{StopDecision, StopHook};
- /// Product cost snapshot passed to harness-owned stop policies.
- pub type TurnState<'a> = tinyagents_harness::middleware::TurnState<'a, TurnCost>;
+ pub use tinyagents_hooks::stop::{StopDecision, StopHook};
+ /// Product cost snapshot passed to TinyAgents stop policies.
+ pub type TurnState<'a> = tinyagents_hooks::stop::TurnState<'a, TurnCost>;
pub use openhuman_core::core::all::{ControllerExtension, DomainGroup};
pub use openhuman_core::core::server_launcher::{HostBoot, ServeRequest, ServerLauncher};
pub use openhuman_core::security::SecurityPolicy;