Skip to content

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

fix(agent): re-export untrusted input turn helper

Steven Enamakel45def3f6720e
diff --git a/crates/openhuman-core/src/agent/tinyagents/host/mod.rs b/crates/openhuman-core/src/agent/tinyagents/host/mod.rs
index 7b11cd8ccd..c9d6d46523 100644
--- a/crates/openhuman-core/src/agent/tinyagents/host/mod.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/host/mod.rs
@@ -55,5 +55,6 @@ pub use run_context::{
decide_dispatch, DispatchDecision, DispatchInputs, LastTurnUsage, OpenHumanRunContext,
SubagentUsageEntry, TurnDispatchState,
};
+pub(crate) use security_gate::with_untrusted_input_turn;
pub use security_gate::OpenHumanSecurityGate;
pub use tool_outcome_classifier::OpenHumanToolOutcomeClassifier;
diff --git a/crates/openhuman-core/src/inference/host_runtime/ops/agent_chat.rs b/crates/openhuman-core/src/inference/host_runtime/ops/agent_chat.rs
index c8d14d947a..badc1321be 100644
--- a/crates/openhuman-core/src/inference/host_runtime/ops/agent_chat.rs
+++ b/crates/openhuman-core/src/inference/host_runtime/ops/agent_chat.rs
@@ -462,7 +462,9 @@ pub async fn agent_chat_reply_for(
AgentChatTarget::Definition {
untrusted_input: true,
..
- } => Box::pin(crate::agent::tinyagents::host::with_untrusted_input_turn(run)),
+ } => Box::pin(crate::agent::tinyagents::host::with_untrusted_input_turn(
+ run,
+ )),
_ => Box::pin(run),
};
let outcome = match target {