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
fix(tests): update test imports for moved modules
Steven Enamakel7e3282224873
diff --git a/crates/openhuman-core/src/search/tools/web_search_tests.rs b/crates/openhuman-core/src/search/tools/web_search_tests.rsindex d23006fbe3..efa78e8fde 100644--- a/crates/openhuman-core/src/search/tools/web_search_tests.rs+++ b/crates/openhuman-core/src/search/tools/web_search_tests.rs@@ -26,6 +26,14 @@ fn test_tool_description() {assert!(tool().description().contains("backend search proxy"));}+#[test]+fn the_schema_offers_an_optional_summary_focus() {+ let schema = tool().parameters_schema();+ let key = crate::inference::tokenjuice::focus::SUMMARY_FOCUS_ARG;+ assert_eq!(schema["properties"][key]["type"], "string");+ assert!(!schema["required"].as_array().unwrap().contains(&json!(key)));+}+#[test]fn test_parameters_schema() {let schema = tool().parameters_schema();diff --git a/crates/openhuman-core/src/tools/impl/network/web_fetch_tests.rs b/crates/openhuman-core/src/tools/impl/network/web_fetch_tests.rsindex 6773250135..8164e79889 100644--- a/crates/openhuman-core/src/tools/impl/network/web_fetch_tests.rs+++ b/crates/openhuman-core/src/tools/impl/network/web_fetch_tests.rs@@ -21,6 +21,15 @@ fn web_fetch_name_and_schema() {.contains(&json!("url")));}+#[test]+fn web_fetch_opts_into_an_optional_summary_focus() {+ let tool = WebFetchTool::new(test_security(), vec!["example.com".into()], None, None);+ let schema = tool.parameters_schema();+ let key = crate::inference::tokenjuice::focus::SUMMARY_FOCUS_ARG;+ assert_eq!(schema["properties"][key]["type"], "string");+ assert!(!schema["required"].as_array().unwrap().contains(&json!(key)));+}+#[test]fn zero_and_none_limits_fall_back_to_defaults() {// Callers wire these from `[http_request]`; a stale `Some(0)` is a