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
fix(test): remove unused imports in orchestration test files
Steven Enamakeld31831858c68
diff --git a/crates/openhuman-core/src/agent/orchestration/ops_tests.rs b/crates/openhuman-core/src/agent/orchestration/ops_tests.rsindex eefde89445..4824de36eb 100644--- a/crates/openhuman-core/src/agent/orchestration/ops_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/ops_tests.rs@@ -1,3 +1,4 @@+use crate::memory::test_support::NoopMemory;use super::*;use crate::agent::harness::definition::AgentDefinitionRegistry;use crate::agent::harness::fork_context::{with_parent_context, ParentExecutionContext};@@ -15,65 +16,6 @@ use tinyinference_llm::model::{ChatModel, ModelProfile, ModelRequest, ModelRespouse tinytools::Tool;use tokio::time::Duration;-#[derive(Default)]-struct NoopMemory;--#[async_trait]-impl Memory for NoopMemory {- async fn store(- &self,- _namespace: &str,- _key: &str,- _content: &str,- _category: MemoryCategory,- _session_id: Option<&str>,- ) -> anyhow::Result<()> {- Ok(())- }-- async fn recall(- &self,- _query: &str,- _limit: usize,- _opts: RecallOpts<'_>,- ) -> anyhow::Result<Vec<MemoryEntry>> {- Ok(Vec::new())- }-- async fn get(&self, _namespace: &str, _key: &str) -> anyhow::Result<Option<MemoryEntry>> {- Ok(None)- }-- async fn list(- &self,- _namespace: Option<&str>,- _category: Option<&MemoryCategory>,- _session_id: Option<&str>,- ) -> anyhow::Result<Vec<MemoryEntry>> {- Ok(Vec::new())- }-- async fn forget(&self, _namespace: &str, _key: &str) -> anyhow::Result<bool> {- Ok(false)- }-- async fn namespace_summaries(&self) -> anyhow::Result<Vec<NamespaceSummary>> {- Ok(Vec::new())- }-- async fn count(&self) -> anyhow::Result<usize> {- Ok(0)- }-- async fn health_check(&self) -> bool {- true- }-- fn name(&self) -> &str {- "noop"- }-}-fn parent_context(model: Arc<dyn ChatModel<()>>) -> ParentExecutionContext {ParentExecutionContext {workspace_descriptor: None,diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_tests.rsindex 8de9dd7bab..12ff384a2b 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_tests.rs@@ -1,3 +1,4 @@+use crate::memory::test_support::NoopMemory;use super::*;use crate::agent::harness::definition::AgentDefinitionRegistry;use crate::agent::harness::fork_context::{with_parent_context, ParentExecutionContext};@@ -485,64 +486,6 @@ fn parent_context(workspace_dir: &Path) -> ParentExecutionContext {}}-struct NoopMemory;--#[async_trait::async_trait]-impl Memory for NoopMemory {- fn name(&self) -> &str {- "noop"- }-- async fn store(- &self,- _namespace: &str,- _key: &str,- _content: &str,- _category: MemoryCategory,- _session_id: Option<&str>,- ) -> anyhow::Result<()> {- Ok(())- }-- async fn recall(- &self,- _query: &str,- _limit: usize,- _opts: RecallOpts<'_>,- ) -> anyhow::Result<Vec<MemoryEntry>> {- Ok(Vec::new())- }-- async fn get(&self, _namespace: &str, _key: &str) -> anyhow::Result<Option<MemoryEntry>> {- Ok(None)- }-- async fn list(- &self,- _namespace: Option<&str>,- _category: Option<&MemoryCategory>,- _session_id: Option<&str>,- ) -> anyhow::Result<Vec<MemoryEntry>> {- Ok(Vec::new())- }-- async fn forget(&self, _namespace: &str, _key: &str) -> anyhow::Result<bool> {- Ok(false)- }-- async fn namespace_summaries(&self) -> anyhow::Result<Vec<NamespaceSummary>> {- Ok(Vec::new())- }-- async fn count(&self) -> anyhow::Result<usize> {- Ok(0)- }-- async fn health_check(&self) -> bool {- true- }-}-/// The session builder swaps in a scoped instance so the WIRE schema (read/// from the registered tool on native tool calling) carries only the ids the/// parent may dispatch, sorted and deduplicated, and says so.diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_parallel_agents_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_parallel_agents_tests.rsindex 7f217e76ce..39867aaae4 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_parallel_agents_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_parallel_agents_tests.rs@@ -1,3 +1,4 @@+use crate::memory::test_support::NoopMemory;use super::*;use crate::agent::harness::definition::AgentDefinitionRegistry;use crate::agent::harness::definition::{@@ -46,64 +47,6 @@ fn test_lineage(task_id: &str) -> ParallelAgentLineage {}}-struct NoopMemory;--#[async_trait]-impl Memory for NoopMemory {- async fn store(- &self,- _namespace: &str,- _key: &str,- _content: &str,- _category: MemoryCategory,- _session_id: Option<&str>,- ) -> anyhow::Result<()> {- Ok(())- }-- async fn recall(- &self,- _query: &str,- _limit: usize,- _opts: RecallOpts<'_>,- ) -> anyhow::Result<Vec<MemoryEntry>> {- Ok(Vec::new())- }-- async fn get(&self, _namespace: &str, _key: &str) -> anyhow::Result<Option<MemoryEntry>> {- Ok(None)- }-- async fn list(- &self,- _namespace: Option<&str>,- _category: Option<&MemoryCategory>,- _session_id: Option<&str>,- ) -> anyhow::Result<Vec<MemoryEntry>> {- Ok(Vec::new())- }-- async fn forget(&self, _namespace: &str, _key: &str) -> anyhow::Result<bool> {- Ok(false)- }-- async fn namespace_summaries(&self) -> anyhow::Result<Vec<NamespaceSummary>> {- Ok(Vec::new())- }-- async fn count(&self) -> anyhow::Result<usize> {- Ok(0)- }-- async fn health_check(&self) -> bool {- true- }-- fn name(&self) -> &str {- "noop"- }-}-fn parent_context(max_parallel_tools: usize) -> ParentExecutionContext {let agent_config = AgentConfig {max_parallel_tools,