The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
test(embed): use registered shell in tool withholding e2e
Steven Enamakeldf270495cad0
diff --git a/crates/openhuman-embed/tests/runtime_agents.rs b/crates/openhuman-embed/tests/runtime_agents.rsindex 97388c446c..315d472620 100644--- a/crates/openhuman-embed/tests/runtime_agents.rs+++ b/crates/openhuman-embed/tests/runtime_agents.rs@@ -222,11 +222,11 @@ fn one_runtime_hosts_independently_configured_agents() {.access(Access::readonly()).definition(AgentDefinitionSpec::new()- .tools(ToolScopeSpec::Named(vec!["read_file".to_string()])),+ .tools(ToolScopeSpec::Named(vec!["shell".to_string()])),).tools(|turn| HostTurnTools {withheld: if turn.session_id() == Some("hidden-turn") {- std::collections::HashSet::from(["read_file".to_string()])+ std::collections::HashSet::from(["shell".to_string()])} else {std::collections::HashSet::new()},@@ -258,18 +258,16 @@ fn one_runtime_hosts_independently_configured_agents() {serde_json::from_slice(&withholding_requests[1].body).unwrap();let has_read_file = |request: &serde_json::Value| {request["tools"].as_array().is_some_and(|tools| {- tools- .iter()- .any(|tool| tool["function"]["name"] == "read_file")+ tools.iter().any(|tool| tool["function"]["name"] == "shell")})};assert!(!has_read_file(&hidden_request),- "the hidden turn's provider request must omit read_file"+ "the hidden turn's provider request must omit shell");assert!(has_read_file(&visible_request),- "the next turn's provider request must advertise read_file again"+ "the next turn's provider request must advertise shell again");assert_eq!(