Skip to content

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

chore(tests): add turn policy budget tests

Steven Enamakel909bad261434
diff --git a/crates/openhuman-core/src/agent/tinyagents/turn_policy_budget_tests.rs b/crates/openhuman-core/src/agent/tinyagents/turn_policy_budget_tests.rs
index 88ffac8157..c3e70000f9 100644
--- a/crates/openhuman-core/src/agent/tinyagents/turn_policy_budget_tests.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/turn_policy_budget_tests.rs
@@ -10,3 +10,10 @@ async fn per_turn_tool_limit_reaches_the_execution_policy() {
.await;
assert_eq!(run_policy_for(10, false).limits.max_tool_calls, 80);
}
+
+/// #6953: the model reads how long each tool call took, so it can budget the
+/// rest of the turn against it.
+#[test]
+fn tool_results_carry_their_duration() {
+ assert!(run_policy_for(10, false).tool_result_durations);
+}