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 ToolHookDecision::deny constructor
Steven Enamakel1935d40e4884
diff --git a/crates/openhuman-embed/tests/inline_permissions.rs b/crates/openhuman-embed/tests/inline_permissions.rsindex 2a81b5dd11..7aa1050b24 100644--- a/crates/openhuman-embed/tests/inline_permissions.rs+++ b/crates/openhuman-embed/tests/inline_permissions.rs@@ -84,7 +84,7 @@ async fn scenario() {Box::pin(async move {decision.await- .unwrap_or_else(|_| ToolHookDecision::Deny("UI closed".into()))+ .unwrap_or_else(|_| ToolHookDecision::deny("UI closed"))})}),)@@ -111,7 +111,7 @@ async fn scenario() {other.run("independent worker").await.unwrap();assert_eq!(other_calls.load(Ordering::SeqCst), 1);answer- .send(ToolHookDecision::Deny("human refused".into()))+ .send(ToolHookDecision::deny("human refused")).unwrap();assert!(first.await.unwrap().is_err(),@@ -122,7 +122,7 @@ async fn scenario() {agent.turn("turn-specific refusal").can_use_tool(|_| {- Box::pin(async { ToolHookDecision::Deny("turn narrowed authority".into()) })+ Box::pin(async { ToolHookDecision::deny("turn narrowed authority") })}).send(),);@@ -185,7 +185,7 @@ async fn repeated_permissions(runtime: &Runtime) {HostTurnTools::advertised(vec![Box::new(Probe(tool_calls.clone()))])}).can_use_tool(|_| {- Box::pin(async { ToolHookDecision::Deny("first policy refused".into()) })+ Box::pin(async { ToolHookDecision::deny("first policy refused") })}).can_use_tool(|_| Box::pin(async { ToolHookDecision::default() })),)diff --git a/crates/openhuman-embed/tests/profile_host_capabilities.rs b/crates/openhuman-embed/tests/profile_host_capabilities.rsindex ede2dbf56f..4a54edec4d 100644--- a/crates/openhuman-embed/tests/profile_host_capabilities.rs+++ b/crates/openhuman-embed/tests/profile_host_capabilities.rs@@ -244,7 +244,7 @@ async fn scenario() {.can_use_tool(|context| {Box::pin(async move {if context.arguments.get("deny").and_then(Value::as_bool) == Some(true) {- ToolHookDecision::Deny("operator refused this call".into())+ ToolHookDecision::deny("operator refused this call")} else {ToolHookDecision::default()}