Skip to content

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

fix(search): handle empty exa search results gracefully

Steven Enamakelde3e53e0d17e
diff --git a/crates/openhuman-core/src/search/tools/exa.rs b/crates/openhuman-core/src/search/tools/exa.rs
index b0a820ca33..0918264a6f 100644
--- a/crates/openhuman-core/src/search/tools/exa.rs
+++ b/crates/openhuman-core/src/search/tools/exa.rs
@@ -507,7 +507,6 @@ impl Tool for ExaSearchTool {
let body = self.build_body(&args, &query);
let results = self.client.post_documents("search", body).await?;
let mut result = self.client.to_result(&results, &query, limit, &options);
- // Host-only structured payload (never model-facing).
let excerpts: Vec<Option<String>> = results.iter().map(ExaResultItem::excerpt).collect();
let structured: Vec<super::WebSearchResultRef<'_>> = results
.iter()