Skip to content

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

fix(parallel): handle empty tool list in parallel execution

Steven Enamakel9a76375f8014
diff --git a/crates/openhuman-core/src/search/tools/parallel.rs b/crates/openhuman-core/src/search/tools/parallel.rs
index 0e234b1b61..bf81c1c262 100644
--- a/crates/openhuman-core/src/search/tools/parallel.rs
+++ b/crates/openhuman-core/src/search/tools/parallel.rs
@@ -18,8 +18,29 @@
//!
//! The backend handles Parallel API keys, billing, and rate limiting.
+mod chat;
+mod dataset;
+mod enrich;
+mod extract;
+mod research;
+mod search;
+
#[cfg(test)]
#[path = "parallel_tests.rs"]
mod tests;
-include!("parallel_part_01.rs");
-include!("parallel_part_02.rs");
+
+pub use chat::ParallelChatTool;
+pub use dataset::ParallelDatasetTool;
+pub use enrich::ParallelEnrichTool;
+pub use extract::ParallelExtractTool;
+pub use research::ParallelResearchTool;
+pub use search::{ParallelSearchTool, SearchResponse, SearchResultItem};
+
+// Re-exported only for the test module (`super::*`), which asserts on the
+// raw backend response shapes and formatting helpers directly.
+#[cfg(test)]
+use enrich::{format_enrich_response, EnrichResponse};
+#[cfg(test)]
+use extract::ExtractResponse;
+#[cfg(test)]
+use research::{format_research_response, ResearchResponse};