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(tools): add schema validation tests
Steven Enamakel6e9eaef49bf1
diff --git a/crates/openhuman-core/src/tools/schemas_tests.rs b/crates/openhuman-core/src/tools/schemas_tests.rsindex 5663db08e3..ba2dc37cc5 100644--- a/crates/openhuman-core/src/tools/schemas_tests.rs+++ b/crates/openhuman-core/src/tools/schemas_tests.rs@@ -2,7 +2,7 @@ use super::*;use crate::tools::schemas::registry::tools_schemas;use serde_json::{json, Map};-const BASE_CONTROLLERS: usize = 6;+const BASE_CONTROLLERS: usize = 5;#[test]fn all_schemas_covers_the_base_surface() {@@ -15,14 +15,16 @@ fn all_controllers_covers_the_base_surface() {}#[test]-fn apify_linkedin_scrape_schema_shape() {- let s = tools_schemas("tools_apify_linkedin_scrape");- assert_eq!(s.namespace, "tools");- assert_eq!(s.function, "apify_linkedin_scrape");- assert!(s- .inputs+fn apify_linkedin_scrape_controller_is_retired() {+ // The backend retired its Apify routes; the controller must not be+ // registered or resolvable any more.+ assert!(!all_controller_schemas().iter()- .any(|f| f.name == "profile_url" && f.required));+ .any(|s| s.function == "apify_linkedin_scrape"));+ assert_eq!(+ tools_schemas("tools_apify_linkedin_scrape").function,+ "unknown"+ );}#[test]