Skip to content

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

chore: add test-only accessor for tool policy session

Steven Enamakel5be1bbe841a3
diff --git a/crates/openhuman-core/src/agent/session_host/runtime/accessors.rs b/crates/openhuman-core/src/agent/session_host/runtime/accessors.rs
index 71158fce21..465621ca09 100644
--- a/crates/openhuman-core/src/agent/session_host/runtime/accessors.rs
+++ b/crates/openhuman-core/src/agent/session_host/runtime/accessors.rs
@@ -128,6 +128,11 @@ impl OpenHumanSessionHost {
&self.deferred_tool_names
}
+ #[cfg(test)]
+ pub(crate) fn tool_policy_session_for_test(&self) -> &ToolPolicySession {
+ &self.tool_policy_session
+ }
+
#[cfg(test)]
pub(crate) fn subagent_tool_ceiling_names_for_test(
&self,