Skip to content

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

fix(tests): correct test module paths for parallel agent and worker thread tests

Steven Enamakel7f302f8e7c93
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.rs
index 64b539a3f4..6f08b327ce 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
@@ -12,7 +12,6 @@ use crate::agent::prompts::ToolCallFormat;
use crate::agent::tinyagents::host::OpenHumanRunContext;
use crate::agent::OpenHumanSessionHost;
use crate::config::AgentConfig;
-use crate::memory::Memory;
use async_trait::async_trait;
use parking_lot::Mutex;
use serde_json::json;
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_worker_thread_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_worker_thread_tests.rs
index 9c213ec228..b1527e04c7 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_worker_thread_tests.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_worker_thread_tests.rs
@@ -8,55 +8,6 @@ use tempfile::TempDir;
use tinyagents_harness::context::RunConfig;
use tinyagents_harness::tool::ToolDispatch;
-struct MockMemory;
-#[async_trait]
-impl crate::memory::Memory for MockMemory {
- async fn store(
- &self,
- _: &str,
- _: &str,
- _: &str,
- _: crate::memory::MemoryCategory,
- _: Option<&str>,
- ) -> anyhow::Result<()> {
- Ok(())
- }
- async fn recall(
- &self,
- _: &str,
- _: usize,
- _: crate::memory::RecallOpts<'_>,
- ) -> anyhow::Result<Vec<crate::memory::MemoryEntry>> {
- Ok(vec![])
- }
- async fn get(&self, _: &str, _: &str) -> anyhow::Result<Option<crate::memory::MemoryEntry>> {
- Ok(None)
- }
- async fn list(
- &self,
- _: Option<&str>,
- _: Option<&crate::memory::MemoryCategory>,
- _: Option<&str>,
- ) -> anyhow::Result<Vec<crate::memory::MemoryEntry>> {
- Ok(vec![])
- }
- async fn forget(&self, _: &str, _: &str) -> anyhow::Result<bool> {
- Ok(true)
- }
- async fn namespace_summaries(&self) -> anyhow::Result<Vec<crate::memory::NamespaceSummary>> {
- Ok(vec![])
- }
- async fn count(&self) -> anyhow::Result<usize> {
- Ok(0)
- }
- async fn health_check(&self) -> bool {
- true
- }
- fn name(&self) -> &str {
- "mock"
- }
-}
-
fn test_parent_ctx(workspace_dir: PathBuf) -> ParentExecutionContext {
let model: Arc<dyn tinyinference_llm::model::ChatModel<()>> =
Arc::new(tinyagents_harness::testkit::ScriptedModel::replies(vec![
@@ -73,7 +24,6 @@ fn test_parent_ctx(workspace_dir: PathBuf) -> ParentExecutionContext {
temperature: 0.4,
workspace_dir,
turn_model_source: crate::agent::tinyagents::TurnModelSource::from_model(model),
- memory: Arc::new(MockMemory),
channel: "test".into(),
all_tools: Arc::new(vec![]),
all_tool_specs: Arc::new(vec![]),