Skip to content

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

style(agent): keep subagent type tests at the end of the module

Steven Enamakela7ef801663e1
diff --git a/crates/openhuman-core/src/agent/subagent_host/types.rs b/crates/openhuman-core/src/agent/subagent_host/types.rs
index 6a1a89c36a..bab9d03996 100644
--- a/crates/openhuman-core/src/agent/subagent_host/types.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/types.rs
@@ -214,10 +214,6 @@ fn is_unknown_cost_source(source: &crate::agent::cost::CostSource) -> bool {
*source == crate::agent::cost::CostSource::Unknown
}
-#[cfg(test)]
-#[path = "types_tests.rs"]
-mod tests;
-
impl SubagentUsage {
/// The run's cost as a tally, for folding into a parent's.
pub fn cost(&self) -> crate::agent::cost::CostTally {
@@ -377,3 +373,7 @@ pub enum SubagentRunError {
observed_samples: u64,
},
}
+
+#[cfg(test)]
+#[path = "types_tests.rs"]
+mod tests;