Skip to content

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

chore(agent): reorder module and import declarations

Steven Enamakeld23e0c8c360c
diff --git a/crates/openhuman-core/src/agent/subagent_host/mod.rs b/crates/openhuman-core/src/agent/subagent_host/mod.rs
index 2f7a6505d8..454daa636a 100644
--- a/crates/openhuman-core/src/agent/subagent_host/mod.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/mod.rs
@@ -36,8 +36,8 @@
//! | `ops/` | typed/fork mode and TinyAgents graph route |
//! | `tool_prep.rs` | Tool filtering + prompt loading + prompt protocol block |
-mod fork_context;
mod autonomous;
+mod fork_context;
mod lifecycle;
mod ops;
mod tool_prep;
diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs b/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs
index c0ad4faf96..7b0cfef344 100644
--- a/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs
@@ -9,7 +9,6 @@
use std::collections::HashSet;
use std::time::Instant;
-use crate::agent::subagent_host::ParentExecutionContext;
use crate::agent::prompts::render_subagent_system_prompt_with_format;
use crate::agent::prompts::{PromptContext, SubagentRenderOptions};
use crate::agent::session_host::dedup_visible_tool_specs;
@@ -20,6 +19,7 @@ use crate::agent::subagent_host::tool_prep::{
use crate::agent::subagent_host::types::{
SubagentMode, SubagentRunError, SubagentRunOptions, SubagentRunOutcome,
};
+use crate::agent::subagent_host::ParentExecutionContext;
use crate::agent::tinyagents::budget::MAX_SPAWN_DEPTH;
use crate::agent_registry::host_definition::{AgentDefinition, AgentDefinitionRegistry};
use crate::inference::provider::AGENT_TURN_MAX_OUTPUT_TOKENS;
diff --git a/crates/openhuman-core/src/agent/tinyagents/host/run_context.rs b/crates/openhuman-core/src/agent/tinyagents/host/run_context.rs
index 02b8dd3dc0..1449ee4e86 100644
--- a/crates/openhuman-core/src/agent/tinyagents/host/run_context.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/host/run_context.rs
@@ -14,8 +14,8 @@ use std::time::Duration;
use tokio::sync::mpsc::Sender;
-use crate::agent::subagent_host::{AgentContextPreparedSource, ParentExecutionContext};
use crate::agent::subagent_host::SubagentUsage;
+use crate::agent::subagent_host::{AgentContextPreparedSource, ParentExecutionContext};
use crate::agent::tinyagents::{
middleware::turn_context::TurnContextMiddleware, turn_policy::ToolPolicyEnforcement,
};