Skip to content

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

refactor(agent): import WorkerDispatchMode from the parallel module directly

Steven Enamakeld00249e5d615
diff --git a/crates/openhuman-core/src/agent/orchestration/spawn_parallel/dispatch.rs b/crates/openhuman-core/src/agent/orchestration/spawn_parallel/dispatch.rs
index e4f2f4e927..3470262afd 100644
--- a/crates/openhuman-core/src/agent/orchestration/spawn_parallel/dispatch.rs
+++ b/crates/openhuman-core/src/agent/orchestration/spawn_parallel/dispatch.rs
@@ -7,6 +7,7 @@ use std::path::Path;
use tinyagents_harness::workspace::WorkspaceIsolation;
use tinyagents_orchestration::parallel::Worker;
+use tinyagents_orchestration::parallel::WorkerDispatchMode;
use tinytools::WorkspaceDescriptor;
use tokio::sync::mpsc::Sender;
@@ -18,7 +19,7 @@ use tinyagents_definition::SandboxMode;
use super::staging::{
prepare_spawn_parallel_tasks_from_defs, worktree_request_for_task, ParallelTaskRejectionKind,
- ParallelWorktreeRequest, SpawnParallelTaskPreflight, WorkerDispatchMode,
+ ParallelWorktreeRequest, SpawnParallelTaskPreflight,
};
use super::types::{
ParallelAgentLineage, ParallelAgentResult, ParallelAgentStatus, ParallelAgentTask,
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 9ff13db723..261c226647 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
@@ -4,8 +4,8 @@ use crate::agent::harness::host_definition::AgentDefinition;
use crate::agent::harness::host_definition::AgentDefinitionRegistry;
use crate::agent::orchestration::spawn_parallel::{
prepare_spawn_parallel_tasks_from_defs, ParallelTaskRejectionKind, SpawnParallelTaskPreflight,
- WorkerDispatchMode,
};
+use tinyagents_orchestration::parallel::WorkerDispatchMode;
use crate::agent::prompts::ToolCallFormat;
use crate::agent::tinyagents::host::OpenHumanRunContext;
use crate::agent::OpenHumanSessionHost;