Skip to content

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

chore: record tool_search config in session host build

Steven Enamakel5d3e7875241a
diff --git a/crates/openhuman-core/src/agent/session_host/builder/builder_build.rs b/crates/openhuman-core/src/agent/session_host/builder/builder_build.rs
index 8dff4aecfa..13db28fcc3 100644
--- a/crates/openhuman-core/src/agent/session_host/builder/builder_build.rs
+++ b/crates/openhuman-core/src/agent/session_host/builder/builder_build.rs
@@ -122,6 +122,9 @@ impl SessionHostBuilder {
.cloned()
.collect();
let config = self.config.clone().unwrap_or_default();
+ // The turn harness is assembled without a config in hand; record the
+ // `tool_search` settings here so every later turn ranks as configured.
+ crate::agent::tinyagents::discovery::apply_tool_search_config(&config.tool_search);
let event_session_id = self
.event_session_id
.clone()