Skip to content

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

refactor(agent): re-export TurnCost through stop_hooks

Steven Enamakel38463a85743a
diff --git a/crates/openhuman-core/src/agent/stop_hooks.rs b/crates/openhuman-core/src/agent/stop_hooks.rs
index 84263a8c2c..5e0b8782fe 100644
--- a/crates/openhuman-core/src/agent/stop_hooks.rs
+++ b/crates/openhuman-core/src/agent/stop_hooks.rs
@@ -17,7 +17,7 @@
//! The per-turn tool budget ([`with_tool_call_limit`]) also lives here, on a
//! task-local.
-use crate::agent::cost::TurnCost;
+pub use crate::agent::cost::TurnCost;
use async_trait::async_trait;
use std::sync::Arc;
diff --git a/crates/openhuman-embed/src/lib.rs b/crates/openhuman-embed/src/lib.rs
index ff551aebfd..e96ff40a3a 100644
--- a/crates/openhuman-embed/src/lib.rs
+++ b/crates/openhuman-embed/src/lib.rs
@@ -197,7 +197,7 @@ pub use runtime::{
/// so the trait unifies — re-exporting it here would break the
/// agent-runtime ownership boundary.
pub mod seams {
- pub use openhuman_core::agent::cost::TurnCost;
+ pub use openhuman_core::agent::stop_hooks::TurnCost;
pub use openhuman_core::agent::hooks::{PostTurnHook, ToolHook};
pub use openhuman_core::agent::hooks::{ToolHookContext, ToolHookDecision, TurnContext};
pub use openhuman_core::agent::stop_hooks::BudgetStopHook;
diff --git a/crates/openhuman-embed/tests/runtime_agents.rs b/crates/openhuman-embed/tests/runtime_agents.rs
index 5bcef482d7..64f03137a2 100644
--- a/crates/openhuman-embed/tests/runtime_agents.rs
+++ b/crates/openhuman-embed/tests/runtime_agents.rs
@@ -27,7 +27,7 @@ struct RecordingBudgetStopHook {
}
#[async_trait::async_trait]
-impl openhuman_embed::seams::StopHook<openhuman_core::agent::cost::TurnCost>
+impl openhuman_embed::seams::StopHook<openhuman_embed::seams::TurnCost>
for RecordingBudgetStopHook
{
fn name(&self) -> &str {