Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore: reformat code and reorder module declarations

Steven Enamakel2e9a0da28633
diff --git a/crates/openhuman-core/src/search/tools/tavily/search_tool.rs b/crates/openhuman-core/src/search/tools/tavily/search_tool.rs
index d922b5d0c1..2b474216d0 100644
--- a/crates/openhuman-core/src/search/tools/tavily/search_tool.rs
+++ b/crates/openhuman-core/src/search/tools/tavily/search_tool.rs
@@ -219,7 +219,12 @@ impl Tool for TavilySearchTool {
.results
.iter()
.map(|r| crate::search::tools::WebSearchResultRef {
- title: r.title.as_deref().map(str::trim).filter(|t| !t.is_empty()).unwrap_or("Untitled"),
+ title: r
+ .title
+ .as_deref()
+ .map(str::trim)
+ .filter(|t| !t.is_empty())
+ .unwrap_or("Untitled"),
url: r.url.as_str(),
published: None,
excerpt: r.content.as_deref(),
diff --git a/crates/openhuman-core/src/search/tools/web_search.rs b/crates/openhuman-core/src/search/tools/web_search.rs
index f3b8ff0ae6..4e0fb81c63 100644
--- a/crates/openhuman-core/src/search/tools/web_search.rs
+++ b/crates/openhuman-core/src/search/tools/web_search.rs
@@ -9,7 +9,9 @@
//! to `MANAGED_DEFAULT_PROVIDER`, for UI display. `with_direct_search` can
//! swap in a `SeltzSearchTool` that bypasses the proxy; only tests use it.
-use super::{web_search_metadata, SearchResponse, SearchResultItem, SeltzSearchTool, WebSearchResultRef};
+use super::{
+ web_search_metadata, SearchResponse, SearchResultItem, SeltzSearchTool, WebSearchResultRef,
+};
use crate::config::Config;
use crate::integrations::IntegrationClient;
use async_trait::async_trait;
diff --git a/crates/openhuman-core/src/tools/ops_tests.rs b/crates/openhuman-core/src/tools/ops_tests.rs
index 02eeb7e331..5d874ba3be 100644
--- a/crates/openhuman-core/src/tools/ops_tests.rs
+++ b/crates/openhuman-core/src/tools/ops_tests.rs
@@ -436,11 +436,11 @@ const ALWAYS_PRESENT_MEMORY_TOOLS: &[&str] = &["update_memory_md", "memory_store
#[path = "ops_tests_capability_gating_tests.rs"]
mod capability_gating_tests;
+#[path = "ops_tests_catalog_fixture_tests.rs"]
+mod catalog_fixture_tests;
#[path = "ops_tests_default_registry_tests.rs"]
mod default_registry_tests;
#[path = "ops_tests_domain_family_tests.rs"]
mod domain_family_tests;
#[path = "ops_tests_execution_and_serde_tests.rs"]
mod execution_and_serde_tests;
-#[path = "ops_tests_catalog_fixture_tests.rs"]
-mod catalog_fixture_tests;
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.rs
index 2aaaa58414..e93e009972 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
@@ -15,9 +15,8 @@ use std::path::PathBuf;
/// Path to the frontend's copy of the tool-name list, relative to this
/// crate's manifest directory (`crates/openhuman-core`).
fn fixture_path() -> PathBuf {
- PathBuf::from(env!("CARGO_MANIFEST_DIR")).join(
- "../../app/src/features/conversations/tools/__fixtures__/coreToolNames.json",
- )
+ PathBuf::from(env!("CARGO_MANIFEST_DIR"))
+ .join("../../app/src/features/conversations/tools/__fixtures__/coreToolNames.json")
}
/// The full model-facing tool catalog this build can register, sorted and
@@ -96,8 +95,7 @@ fn full_tool_catalog_names() -> Vec<String> {
names
}
-const REGENERATE_COMMAND: &str =
- "UPDATE_TOOL_CATALOG=1 cargo test -p openhuman --lib \
+const REGENERATE_COMMAND: &str = "UPDATE_TOOL_CATALOG=1 cargo test -p openhuman --lib \
tools::ops::tests::catalog_fixture_tests::tool_catalog_matches_frontend_fixture";
/// Regenerates the fixture when `UPDATE_TOOL_CATALOG=1`, otherwise fails with