Skip to content

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

refactor(agent): extract session builder build logic\n\nMove the session builder construction into its own module so the build\npath can be reused and tested independently of the surrounding harness\ncode. Behaviour is unchanged.\n\nAuto-committed-on: macbook\n

Steven Enamakel4800fe8a8c50
diff --git a/src/openhuman/agent/harness/session/builder/builder_build.rs b/src/openhuman/agent/harness/session/builder/builder_build.rs
index be57553157..dc1549727c 100644
--- a/src/openhuman/agent/harness/session/builder/builder_build.rs
+++ b/src/openhuman/agent/harness/session/builder/builder_build.rs
@@ -3,7 +3,8 @@
use super::{dedup_visible_tool_specs, visible_tool_specs_for_policy};
use crate::openhuman::agent::context::ContextManager;
use crate::openhuman::agent::harness::session::types::{Agent, AgentBuilder};
-use crate::openhuman::tools::ToolSpec;
+use crate::openhuman::tools::agent_policy::ToolPolicyEngine;
+use crate::openhuman::tools::{Tool, ToolSpec};
use anyhow::Result;
use std::sync::Arc;