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
feat(agent): add graph dispatch for subagent host ops
Steven Enamakel254a03875e04
diff --git a/crates/openhuman-core/src/agent/harness/graph.rs b/crates/openhuman-core/src/agent/harness/graph.rsindex 62a021686c..c364671759 100644--- a/crates/openhuman-core/src/agent/harness/graph.rs+++ b/crates/openhuman-core/src/agent/harness/graph.rs@@ -3,7 +3,7 @@//! Per the per-folder `graph.rs` convention, this is the harness's top-level//! (channel/CLI) graph definition, its available tools, and its summarization//! step — all thin over the shared tinyagents seam-//! ([`run_turn_via_tinyagents_shared`]).+//! ([`TurnSpec::run`]).//!//! **Graph.** A single agent-loop turn driven by the tinyagents harness (the//! canonical channel/CLI path; the legacy `run_tool_call_loop` is removed),@@ -33,7 +33,7 @@ use anyhow::Result;use tokio::sync::mpsc::Sender;use crate::agent::progress::AgentProgress;-use crate::agent::tinyagents::run_turn_via_tinyagents_shared;+use crate::agent::tinyagents::TurnSpec;use crate::agent::tinyagents::TurnModelSource;use crate::config::{MultimodalConfig, MultimodalFileConfig};use tinyagents_session::transcript::TranscriptMessage;diff --git a/crates/openhuman-core/src/agent/session_host/turn/graph.rs b/crates/openhuman-core/src/agent/session_host/turn/graph.rsindex 85692fc3fb..565b9a491d 100644--- a/crates/openhuman-core/src/agent/session_host/turn/graph.rs+++ b/crates/openhuman-core/src/agent/session_host/turn/graph.rs@@ -30,7 +30,7 @@ use tokio::sync::mpsc::Sender;use crate::agent::progress::AgentProgress;use crate::agent::tinyagents::{- run_root_turn_via_hosted_agent, TinyagentsTurnOutcome, TurnContextMiddleware,+ TinyagentsTurnOutcome, TurnContextMiddleware,};use crate::inference::provider::AGENT_TURN_MAX_OUTPUT_TOKENS;use tinyagents_definition::SandboxMode;diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/graph.rs b/crates/openhuman-core/src/agent/subagent_host/ops/graph.rsindex 6112431c72..e627a2b16d 100644--- a/crates/openhuman-core/src/agent/subagent_host/ops/graph.rs+++ b/crates/openhuman-core/src/agent/subagent_host/ops/graph.rs@@ -3,7 +3,7 @@//! Per the per-folder `graph.rs` convention, this module owns the sub-agent//! folder's graph definition, its available tools, and its summarization step —//! all thin over the shared tinyagents seam-//! ([`run_turn_via_tinyagents_shared`]).+//! ([`TurnSpec::run`]).//!//! **Graph.** A single agent-loop turn driven by the tinyagents harness: the//! model is called, requested tools run, and the loop repeats until the modeldiff --git a/crates/openhuman-core/src/agent/subagent_host/ops/graph/dispatch.rs b/crates/openhuman-core/src/agent/subagent_host/ops/graph/dispatch.rsindex 6c263355f0..477b41fe01 100644--- a/crates/openhuman-core/src/agent/subagent_host/ops/graph/dispatch.rs+++ b/crates/openhuman-core/src/agent/subagent_host/ops/graph/dispatch.rs@@ -8,7 +8,7 @@ use std::sync::Arc;use crate::agent::progress::AgentProgress;use crate::agent::subagent_host::types::SubagentRunError;-use crate::agent::tinyagents::{run_turn_via_tinyagents_shared, SubagentScope};+use crate::agent::tinyagents::{SubagentScope, TurnSpec};use tinyagents_harness::run_queue::RunQueue;use tinyagents_session::transcript::TranscriptMessage;use tinyjuice_bus::types::AgentTokenjuiceCompression;@@ -247,7 +247,8 @@ pub(in super::super) async fn run_subagent_via_graph(// `subagent_scope`, so the seam never emits a top-level `TurnCompleted`// (they report via `Subagent*` events). Pass `false` for clarity.defer_turn_completed_to_caller: false,- }.run())+ }+ .run().await;if let Some(config) = config.filter(|config| config.observability.share_usage_data) {