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): cover host-only tool filtering
Steven Enamakelcc51aeebf7a7
diff --git a/crates/openhuman-embed/tests/host_only_tools.rs b/crates/openhuman-embed/tests/host_only_tools.rsindex 42e2752773..41890297c1 100644--- a/crates/openhuman-embed/tests/host_only_tools.rs+++ b/crates/openhuman-embed/tests/host_only_tools.rs@@ -226,9 +226,12 @@ fn host_only_refuses_builtin_tools_the_model_names() {let requests = chat_requests(&provider).await;assert_eq!(requests.len(), 2);let results = common::tool_results(&requests[1]);+ // The refusal echoes the arguments back to the model, so the+ // filesystem above is the proof nothing ran; here, that each+ // built-in was refused by name and the host tool answered.assert!(results.contains("read_file-host-result"), "{results}");- assert!(!results.contains("shell-ran"), "{results}");- assert!(!results.contains("write-ran"), "{results}");+ assert!(results.contains("unknown tool `shell`"), "{results}");+ assert!(results.contains("unknown tool `write_file`"), "{results}");}).await.expect("test task");