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 setters into a module

Steven Enamakelbc5c838fe94b
diff --git a/src/openhuman/agent/harness/session/builder/setters.rs b/src/openhuman/agent/harness/session/builder/setters.rs
index 45c2529032..d07432cd3d 100644
--- a/src/openhuman/agent/harness/session/builder/setters.rs
+++ b/src/openhuman/agent/harness/session/builder/setters.rs
@@ -1,17 +1,11 @@
-//! `AgentBuilder` fluent setters and the `build()` validator.
-//!
-//! All setter methods return `Self` for chaining. `build()` validates that
-//! required fields are present and assembles the final [`Agent`].
-
-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};
+//! `AgentBuilder` fluent setters. See `builder_build.rs` for the `build()`
+//! validator that assembles the final [`Agent`].
+
+use crate::openhuman::agent::harness::session::types::AgentBuilder;
use crate::openhuman::agent::harness::TriggerMemoryAgent;
use crate::openhuman::config::ContextConfig;
use crate::openhuman::memory::Memory;
-use crate::openhuman::tools::agent_policy::ToolPolicyEngine;
-use crate::openhuman::tools::{Tool, ToolSpec};
-use anyhow::Result;
+use crate::openhuman::tools::Tool;
use std::sync::Arc;
impl AgentBuilder {