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
chore: rename test files to follow convention
Steven Enamakel66d6d3efd666
diff --git a/crates/openhuman-core/src/agent/registry/agents/loader_tests_specialist_agents_tests.rs b/crates/openhuman-core/src/agent/registry/agents/loader_tests_specialist_agents_tests.rsindex ae845d2ac5..3b6b3fb528 100644--- a/crates/openhuman-core/src/agent/registry/agents/loader_tests_specialist_agents_tests.rs+++ b/crates/openhuman-core/src/agent/registry/agents/loader_tests_specialist_agents_tests.rs@@ -506,8 +506,13 @@ fn researcher_is_bounded_to_search_and_fetch() {ToolScope::Named(tools) => {assert_eq!(tools,- &vec!["web_search_tool".to_string(), "web_fetch".to_string()],- "researcher must stay limited to search+fetch so simple lookups do not fan out into deep research loops"+ &vec![+ "web_search_tool".to_string(),+ "web_answer_tool".to_string(),+ "web_contents_tool".to_string(),+ "web_fetch".to_string()+ ],+ "researcher must stay limited to the web read tools so simple lookups do not fan out into deep research loops");}ToolScope::Wildcard => panic!("researcher must have Named tool scope"),diff --git a/crates/openhuman-core/src/config/ops/search_tests.rs b/crates/openhuman-core/src/config/ops/search_tests.rsindex 11db89297f..6ae4f54f23 100644--- a/crates/openhuman-core/src/config/ops/search_tests.rs+++ b/crates/openhuman-core/src/config/ops/search_tests.rs@@ -163,10 +163,8 @@ fn settings_view_reports_status_roles_and_never_keys() {assert_eq!(gemini["deep_research_available"], true);assert_eq!(provider(&view, "tinyfish")["routes"], json!(["managed"]));assert_eq!(provider(&view, "brave")["status"], "disabled");- assert_eq!(- view["effective_roles"]["answer"],- json!(["gemini", "gemini_deep_research"])- );+ // Deep research rides on the Gemini key and is reported on the gemini row.+ assert_eq!(view["effective_roles"]["answer"], json!(["gemini", "exa"]));assert_eq!(view["effective_roles"]["search"], json!(["exa"]));assert!(!view.to_string().contains("secret-gemini"));assert!(view["providers"]diff --git a/crates/openhuman-core/src/tools/ops_tests_capability_gating_tests.rs b/crates/openhuman-core/src/tools/ops_tests_capability_gating_tests.rsindex 6236304d3d..39e526ec39 100644--- a/crates/openhuman-core/src/tools/ops_tests_capability_gating_tests.rs+++ b/crates/openhuman-core/src/tools/ops_tests_capability_gating_tests.rs@@ -93,11 +93,15 @@ fn tool_group_classifies_gate_and_harness_families() {assert_eq!(tool_group("web_search_tool"), DomainGroup::Integrations);for name in ["web_search_tool",+ "web_answer_tool",+ "web_contents_tool","tinyfish_search","exa_get_contents",+ "gemini_agentic_search","brave_news_search",- "parallel_search","querit_search",+ "seltz_search",+ "searxng_search",] {assert_eq!(tool_group(name), DomainGroup::Integrations);}diff --git a/crates/openhuman-core/src/tools/ops_tests_catalog_fixture_tests.rs b/crates/openhuman-core/src/tools/ops_tests_catalog_fixture_tests.rsindex f84c3e51d3..a59044a4a6 100644--- a/crates/openhuman-core/src/tools/ops_tests_catalog_fixture_tests.rs+++ b/crates/openhuman-core/src/tools/ops_tests_catalog_fixture_tests.rs@@ -76,10 +76,12 @@ fn full_product_features_enabled() -> bool {/// this test's config does not have — so this build contributes none of/// them, static or dynamic, and the fixture should never carry a/// `COMPOSIO_*`/upper-snake action slug.-/// * **BYOK search engines** (Exa, Tavily, Querit, Brave, ...) and other-/// API-key-gated tools that require a live key in config are absent here;-/// only the managed `web_search_tool` (or whichever tool the enabled-/// feature set + config resolves to) is registered.+/// * **Search** registers one tool per capability role (`web_search_tool`,+/// `web_answer_tool`, `web_contents_tool`). A role tool exists only when a+/// provider can serve it, so this catalog configures BYOK keys for Brave,+/// Gemini and Tavily to register all three without a signed-in session.+/// Provider-specific tools (`exa_search`, `brave_news_search`, ...) appear+/// only in the advanced `all_tools` presentation and are not listed./// * **Cargo feature gates**: the fixture represents the shipped product/// feature set (`scripts/ci/product-features.txt`). A default contributor/// build may register fewer tools, but every name it registers must be in@@ -97,6 +99,13 @@ fn full_tool_catalog_names() -> Vec<String> {let security = Arc::new(SecurityPolicy::default());let mut cfg = test_config(&tmp);cfg.browser.enabled = true;+ for (provider, key) in [("brave", "b"), ("gemini", "g"), ("tavily", "t")] {+ cfg.search.providers.insert(+ provider.into(),+ crate::config::SearchProviderSettings::direct(),+ );+ cfg.search.credentials_mut(provider).unwrap().api_key = Some(key.into());+ }let browser = cfg.browser.clone();let http = cfg.http_request.clone();diff --git a/crates/openhuman-core/src/tools/ops_tests_default_registry_tests.rs b/crates/openhuman-core/src/tools/ops_tests_default_registry_tests.rsindex 58db7a701b..a0add0984c 100644--- a/crates/openhuman-core/src/tools/ops_tests_default_registry_tests.rs+++ b/crates/openhuman-core/src/tools/ops_tests_default_registry_tests.rs@@ -676,7 +676,6 @@ fn all_tools_default_registry_contains_expected_baseline_surface() {"curl","gitbooks_search","gitbooks_get_page",- "web_search_tool","image_info",];// Managed Node tools exist only when the runtime is compiled in — samediff --git a/crates/openhuman-core/src/tools/ops_tests_domain_family_tests.rs b/crates/openhuman-core/src/tools/ops_tests_domain_family_tests.rsindex 53bb72caae..7e3cd893cf 100644--- a/crates/openhuman-core/src/tools/ops_tests_domain_family_tests.rs+++ b/crates/openhuman-core/src/tools/ops_tests_domain_family_tests.rs@@ -1,196 +1,5 @@use super::*;-#[tokio::test]-async fn all_tools_executes_parallel_and_web_search_family_against_fake_backend() {- let backend = integration_test_support::spawn_fake_integration_backend().await;- let tmp = TempDir::new().unwrap();- let cfg = integration_test_config(&tmp, &backend.base_url);- store_test_session_token(&cfg);- let tools = integration_tools_for_config(&tmp, &cfg);-- let web_search = find_tool(&tools, "web_search_tool")- .execute(serde_json::json!({ "query": "rust testing" }))- .await- .expect("web_search_tool execute");- assert!(web_search- .output()- .contains("Search results for: rust testing"));- assert!(web_search.output().contains("Objective: rust testing"));-- let parallel_search = find_tool(&tools, "parallel_search")- .execute(serde_json::json!({- "objective": "tool wiring",- "search_queries": ["tool wiring", "mock backend"],- "num_results": 3,- "max_characters_per_excerpt": 200- }))- .await- .expect("parallel_search execute");- assert!(parallel_search- .output()- .contains("Search results (2 found):"));- assert!(parallel_search.output().contains("Result for tool wiring"));- assert!(parallel_search.output().contains("Objective: tool wiring"));-- let extract = find_tool(&tools, "parallel_extract")- .execute(serde_json::json!({- "urls": ["https://example.com/a"],- "objective": "capture the summary",- "full_content": true- }))- .await- .expect("parallel_extract execute");- assert!(extract.output().contains("Extracted https://example.com/a"));- assert!(extract- .output()- .contains("Full content for https://example.com/a"));-- let chat = find_tool(&tools, "parallel_chat")- .execute(serde_json::json!({- "model": "base",- "messages": [{ "role": "user", "content": "what changed?" }]- }))- .await- .expect("parallel_chat execute");- assert!(chat.output().contains("Model base answered: what changed?"));- assert!(chat.output().contains("\"sources\""));-- let research = find_tool(&tools, "parallel_research")- .execute(serde_json::json!({- "input": { "company": "Tiny Humans" },- "processor": "core",- "timeout_seconds": 30- }))- .await- .expect("parallel_research execute");- let research_display = research.output_for_llm(true);- assert!(research_display.contains("Status: completed"));- assert!(research_display.contains("\"company\": \"Tiny Humans\""));- assert!(!research_display.contains("research-core"));- let research_payload = only_json_content(&research);- assert!(research_payload.get("run_id").is_none());-- let enrich = find_tool(&tools, "parallel_enrich")- .execute(serde_json::json!({- "input": "Tiny Humans",- "processor": "lite",- "output_schema": { "type": "object" }- }))- .await- .expect("parallel_enrich execute");- let enrich_display = enrich.output_for_llm(true);- assert!(enrich_display.contains("Enriched entity"));- assert!(enrich_display.contains("\"inputEcho\": \"Tiny Humans\""));- assert!(!enrich_display.contains("enrich-1"));- let enrich_payload = only_json_content(&enrich);- assert!(enrich_payload.get("run_id").is_none());-- let dataset = find_tool(&tools, "parallel_dataset")- .execute(serde_json::json!({- "objective": "Find AI startups",- "entity_type": "company",- "match_conditions": [{ "name": "AI-focused" }],- "generator": "base",- "match_limit": 25- }))- .await- .expect("parallel_dataset execute");- assert!(dataset.output().contains("findall_id: dataset-company"));- assert!(dataset.output().contains("match_limit: 25"));-- let requests = backend.requests();- let paths: Vec<&str> = requests.iter().map(|req| req.path.as_str()).collect();- assert_eq!(- paths,- vec![- "/agent-integrations/parallel/search",- "/agent-integrations/parallel/search",- "/agent-integrations/parallel/extract",- "/agent-integrations/parallel/chat",- "/agent-integrations/parallel/research",- "/agent-integrations/parallel/enrich",- "/agent-integrations/parallel/dataset",- ]- );- assert_eq!(- requests[1].body["excerpts"]["numResults"],- serde_json::json!(3)- );- assert_eq!(requests[2].body["fullContent"], serde_json::json!(true));- assert_eq!(requests[6].body["matchLimit"], serde_json::json!(25));-}--#[tokio::test]-async fn all_tools_executes_tinyfish_family_against_fake_backend() {- let backend = integration_test_support::spawn_fake_integration_backend().await;- let tmp = TempDir::new().unwrap();- let cfg = integration_test_config(&tmp, &backend.base_url);- store_test_session_token(&cfg);- let tools = integration_tools_for_config(&tmp, &cfg);-- let search = find_tool(&tools, "tinyfish_search")- .execute(serde_json::json!({- "query": "web automation",- "location": "US",- "language": "en",- "page": 2,- "include_thumbnail": true- }))- .await- .expect("tinyfish_search execute");- assert!(search- .output()- .contains("TinyFish returned 1 search result(s)"));- assert!(search- .output()- .contains("TinyFish result for web automation"));-- let fetch = find_tool(&tools, "tinyfish_fetch")- .execute(serde_json::json!({- "urls": ["https://example.com/a"],- "format": "markdown",- "links": true,- "image_links": true- }))- .await- .expect("tinyfish_fetch execute");- assert!(fetch.output().contains("TinyFish fetched 1 page(s)"));- assert!(fetch- .output()- .contains("TinyFish content for https://example.com/a"));-- let run = find_tool(&tools, "tinyfish_agent_run")- .execute(serde_json::json!({- "url": "https://example.com/shop",- "goal": "Extract product names. Return JSON.",- "browser_profile": "stealth",- "proxy_country_code": "US",- "output_schema": { "type": "object" }- }))- .await- .expect("tinyfish_agent_run execute");- assert!(run.output().contains("TinyFish automation finished."));- assert!(!run.output().contains("run_tinyfish_fake"));- assert!(run.output().contains("\"ok\":true"));-- let requests = backend.requests();- let paths: Vec<&str> = requests.iter().map(|req| req.path.as_str()).collect();- assert_eq!(- paths,- vec![- "/agent-integrations/tinyfish/search",- "/agent-integrations/tinyfish/fetch",- "/agent-integrations/tinyfish/agent/run",- ]- );- assert_eq!(requests[0].body["location"], serde_json::json!("US"));- assert_eq!(requests[1].body["links"], serde_json::json!(true));- assert_eq!(- requests[2].body["proxy_config"]["country_code"],- serde_json::json!("US")- );-}-#[tokio::test]async fn all_tools_executes_stock_and_twilio_family_against_fake_backend() {let backend = integration_test_support::spawn_fake_integration_backend().await;