Skip to content

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

chore: remove unused imports

Steven Enamakel99c1cb283a52
diff --git a/crates/openhuman-core/src/agent/session_host/stop_policy.rs b/crates/openhuman-core/src/agent/session_host/stop_policy.rs
index 2e7cd6db7d..e2e3827fe8 100644
--- a/crates/openhuman-core/src/agent/session_host/stop_policy.rs
+++ b/crates/openhuman-core/src/agent/session_host/stop_policy.rs
@@ -16,8 +16,6 @@
//! locale table can replace [`StopReasonKind::copy`] without touching the
//! classification.
-use std::fmt::Write as _;
-
use tinyagents_harness::close::CloseToolResult as CheckpointToolResult;
use tinyagents_harness::turn_stop::{CopyRequest, TurnStop, TurnStopCopyKey};
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 a4a413a883..46bb8f7220 100644
--- a/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs
@@ -22,13 +22,12 @@ use crate::agent::subagent_host::types::{
use crate::agent::tinyagents::budget::MAX_SPAWN_DEPTH;
use crate::agent_registry::host_definition::{AgentDefinition, AgentDefinitionRegistry};
use tinyagents_definition::{
- AgentTier, IterationPolicy, PromptSource, SandboxMode as AgentSandboxMode,
- validate_tier_transition,
+ AgentTier, IterationPolicy, PromptSource, validate_tier_transition,
};
use tinyagents_harness::context::{RunConfig, RunDepth, current_run_depth, with_run_depth};
use tinyagents_harness::turn_policy::AGENT_TURN_MAX_OUTPUT_TOKENS;
use tinyagents_harness_tools::fs::file_state::with_file_state_agent_id;
-use tinytools::{SandboxMode as TinyagentsSandboxMode, Tool, ToolSpec, WorkspaceDescriptor};
+use tinytools::{Tool, ToolSpec};
use super::prompt::compose_subagent_system_prompt;
use super::provider::resolve_subagent_source;
diff --git a/crates/openhuman-core/src/channels/tests/runtime_dispatch.rs b/crates/openhuman-core/src/channels/tests/runtime_dispatch.rs
index d4f7abbfbd..af2751c1c8 100644
--- a/crates/openhuman-core/src/channels/tests/runtime_dispatch.rs
+++ b/crates/openhuman-core/src/channels/tests/runtime_dispatch.rs
@@ -11,7 +11,6 @@ use std::collections::HashMap;
use std::sync::atomic::{AtomicUsize, Ordering};
use std::sync::{Arc, Mutex};
use std::time::Duration;
-use tinychannels_bus as traits;
use tokio::sync::Barrier;
#[tokio::test]
diff --git a/crates/openhuman-core/src/channels/tests/runtime_tool_calls.rs b/crates/openhuman-core/src/channels/tests/runtime_tool_calls.rs
index 41bb68ac9b..88a6d8eefa 100644
--- a/crates/openhuman-core/src/channels/tests/runtime_tool_calls.rs
+++ b/crates/openhuman-core/src/channels/tests/runtime_tool_calls.rs
@@ -11,7 +11,6 @@ use super::common::{
use std::collections::HashMap;
use std::sync::atomic::Ordering;
use std::sync::{Arc, Mutex};
-use tinychannels_bus as traits;
use tinyinference_llm::model::ChatModel;
#[tokio::test]
diff --git a/crates/openhuman-core/src/media/generation/artifact_tool.rs b/crates/openhuman-core/src/media/generation/artifact_tool.rs
index 1bf5a418f8..4178378e61 100644
--- a/crates/openhuman-core/src/media/generation/artifact_tool.rs
+++ b/crates/openhuman-core/src/media/generation/artifact_tool.rs
@@ -12,7 +12,7 @@ use futures_util::StreamExt;
use serde_json::{Value, json};
use tinyagents_harness_tools::media::{
ArtifactFiling, FiledArtifact, GeneratedArtifact, MediaArtifactKind, MediaInnerFactory,
- MediaJobProgress, MediaProgressFn,
+ MediaProgressFn,
};
use tinytools::{
PermissionLevel, Tool, ToolCallOptions, ToolCategory, ToolPolicy, ToolResult, ToolRunContext,
@@ -22,9 +22,6 @@ use tokio::io::AsyncWriteExt;
use crate::artifacts::ArtifactKind;
use crate::artifacts::production::Production;
-use crate::security::approval::ApprovalChatContext;
-use crate::tools::host_extensions::tool_call_id;
-use tinyagents_harness::tinyinference_video::ProgressFn;
use tinystoragedrivers_api::BlobStore;
/// A host adapter that retains OpenHuman artifact behavior while delegating
diff --git a/crates/openhuman-core/src/tools/impl/system/shell.rs b/crates/openhuman-core/src/tools/impl/system/shell.rs
index edef605ef7..81a9cb5550 100644
--- a/crates/openhuman-core/src/tools/impl/system/shell.rs
+++ b/crates/openhuman-core/src/tools/impl/system/shell.rs
@@ -1,9 +1,7 @@
#[cfg(feature = "modules")]
use super::shell_support::container_environment;
use super::shell_support::{command_failure, exec_result, tool_timeout_message};
-use crate::agent::tinyagents::host::run_context::{
- command_environment_for_tool, dispatch_ctx_for_tool,
-};
+use crate::agent::tinyagents::host::run_context::command_environment_for_tool;
use crate::config::Config;
use crate::core::runtime::DispatchCtx;
use crate::modules::tinybox::host_runtime::RuntimeAdapter;