Skip to content

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

test(agent-harness): set visible tool names in boundary placement test

Steven Enamakel5885c3cc9882
diff --git a/tests/agent_harness_e2e.rs b/tests/agent_harness_e2e.rs
index e30a6f693b..5a81743e4e 100644
--- a/tests/agent_harness_e2e.rs
+++ b/tests/agent_harness_e2e.rs
@@ -4662,7 +4662,7 @@ mod tool_policy_boundary_placement {
.channel_permissions
.insert("internal".to_string(), "read".to_string());
- let agent = OpenHumanSessionHost::builder()
+ let mut agent = OpenHumanSessionHost::builder()
.model_name("test/session-fixture".to_string())
.chat_model(provider)
.tools(vec![
@@ -4682,6 +4682,7 @@ mod tool_policy_boundary_placement {
.config(config)
.build()
.expect("complete builder should succeed");
+ agent.set_visible_tool_names(std::collections::HashSet::from(["boundary_read".to_string()]));
agent
.render_current_turn_prompt()