The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
chore: remove unused imports and simplify test assertions
Steven Enamakel8cff19492b19
diff --git a/crates/openhuman-core/src/agent/orchestration/running_subagents/task_ledger.rs b/crates/openhuman-core/src/agent/orchestration/running_subagents/task_ledger.rsindex 3f6f46a329..d83a33280e 100644--- a/crates/openhuman-core/src/agent/orchestration/running_subagents/task_ledger.rs+++ b/crates/openhuman-core/src/agent/orchestration/running_subagents/task_ledger.rs@@ -11,8 +11,7 @@ use std::path::{Path, PathBuf};use std::sync::{Arc, OnceLock};use tinyagents_orchestration::subagent::{- orphaned_subagent_reason, record_agent_id, record_parent_session, subagent_record_for_task,- task_status_label, WaitError,+ orphaned_subagent_reason, record_agent_id, record_parent_session, task_status_label,};use tinyagents_tasks::{reconcile_orphaned_tasks, DriverTaskStore, InMemoryTaskStore, OrchestrationTaskFilter,diff --git a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rsindex 5e548df320..0d5e12359f 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rs@@ -7,8 +7,6 @@ use parking_lot::Mutex;use serde_json::json;use std::path::Path;use std::sync::Arc;-use tinyagents_harness::context::RunConfig;-use tinyagents_session::transcript::TranscriptMessage;use tinyinference_llm::message::Message;use tinyinference_llm::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};use tinytools_agent::dialect::ToolCallFormat;diff --git a/crates/openhuman-core/src/agent/subagent_host/mod.rs b/crates/openhuman-core/src/agent/subagent_host/mod.rsindex 10673ce0e2..c43605452b 100644--- a/crates/openhuman-core/src/agent/subagent_host/mod.rs+++ b/crates/openhuman-core/src/agent/subagent_host/mod.rs@@ -70,7 +70,6 @@ pub use lifecycle::{continue_subagent, continue_subagent_with_parent, run_subagent, run_subagent_with_parent,OpenHumanSubagentHost,};-pub(crate) use ops::is_safe_task_id;pub use types::{SubagentCheckpointData, SubagentMode, SubagentRunError, SubagentRunOptions, SubagentRunOutcome,SubagentRunStatus, SubagentUsage,diff --git a/crates/openhuman-core/src/agent_registry/agents/loader_tests_specialist_agents_tests.rs b/crates/openhuman-core/src/agent_registry/agents/loader_tests_specialist_agents_tests.rsindex 67a4e36b03..301c3df6bd 100644--- a/crates/openhuman-core/src/agent_registry/agents/loader_tests_specialist_agents_tests.rs+++ b/crates/openhuman-core/src/agent_registry/agents/loader_tests_specialist_agents_tests.rs@@ -247,8 +247,8 @@ fn orchestrator_routes_every_registered_specialist_through_spawn_subagent() {let registry = crate::agent_registry::host_definition::AgentDefinitionRegistry::builtins_only();let orchestrator = registry.get("orchestrator").expect("orchestrator exists");let spawn = crate::agent::orchestration::tools::SpawnSubagentTool::new();- let allowed = spawn- .parameters_schema()+ let schema = spawn.parameters_schema();+ let allowed = schema.pointer("/properties/agent_id/enum").and_then(serde_json::Value::as_array).expect("spawn_subagent has a finite agent_id enum");diff --git a/crates/openhuman-core/src/tools/toolpacks/toolpacks_tests_scoping_and_visibility_tests.rs b/crates/openhuman-core/src/tools/toolpacks/toolpacks_tests_scoping_and_visibility_tests.rsindex 11a5b6c24a..d354d67f3e 100644--- a/crates/openhuman-core/src/tools/toolpacks/toolpacks_tests_scoping_and_visibility_tests.rs+++ b/crates/openhuman-core/src/tools/toolpacks/toolpacks_tests_scoping_and_visibility_tests.rs@@ -319,7 +319,7 @@ fn retired_specialist_aliases_are_not_packed() {"make_presentation","analyze_image",] {- assert_eq!(registry::pack_for_tool(alias), None, "{alias}");+ assert!(registry::pack_for_tool(alias).is_none(), "{alias}");assert!(!registry::all_packed_tool_names().contains(&alias),"{alias}"