Skip to content

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

refactor(search): replace pipe_execute with call_execute_tool

Steven Enamakel5ab32d7c8033
diff --git a/crates/openhuman-core/src/modules/search/proxy.rs b/crates/openhuman-core/src/modules/search/proxy.rs
index 8218b4504e..6def1b1240 100644
--- a/crates/openhuman-core/src/modules/search/proxy.rs
+++ b/crates/openhuman-core/src/modules/search/proxy.rs
@@ -160,18 +160,14 @@ pub async fn execute_tool(
let current = current_config(config).await?;
let tool = request.name.clone();
with_module_lock(|| async {
- proxy(&current)
- .await?
- // Keys travel only in the private module configuration; a call
- // carries the model's arguments, which are not secrets. An
- // ordinary call also works with a developer override, which is
- // never attested.
- .pipe_execute(request)
- .await
- .map_err(|error| {
- tracing::debug!(tool = %tool, "[modules][search] ExecuteTool failed");
- format!("search ExecuteTool failed: {error}")
- })
+ let proxy = proxy(&current).await?;
+ // Keys travel only in the private module configuration; a call
+ // carries the model's arguments, which are not secrets. An ordinary
+ // call also works with a developer override, which is never attested.
+ call_execute_tool(proxy, request).await.map_err(|error| {
+ tracing::debug!(tool = %tool, "[modules][search] ExecuteTool failed");
+ format!("search ExecuteTool failed: {error}")
+ })
})
.await
}