Skip to content

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

test(agent-lifecycle): scope parked agent tools to the named marker tool

Steven Enamakeld9b127dd8e41
diff --git a/crates/openhuman-embed/tests/agent_lifecycle.rs b/crates/openhuman-embed/tests/agent_lifecycle.rs
index 6334638b3c..93f21a06e3 100644
--- a/crates/openhuman-embed/tests/agent_lifecycle.rs
+++ b/crates/openhuman-embed/tests/agent_lifecycle.rs
@@ -70,7 +70,10 @@ async fn parking_agent(
AgentSpec::new(id)
.provider(route(&provider, &format!("{id}-model")))
.access(supervised(scratch))
- .definition(AgentDefinitionSpec::new().tools(ToolScopeSpec::HostOnly))
+ .definition(
+ AgentDefinitionSpec::new()
+ .tools(ToolScopeSpec::Named(vec!["write_marker".into()])),
+ )
.tools(move |_| {
HostTurnTools::advertised(vec![Box::new(WriteMarker(file.clone()))])
}),