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
refactor(tinyagents): drop unused cursor and tool name inputs from turn middleware
Steven Enamakelc057b2fb070e
diff --git a/crates/openhuman-core/src/agent/tinyagents/turn_exec.rs b/crates/openhuman-core/src/agent/tinyagents/turn_exec.rsindex fbf8e82da7..86df6dd546 100644--- a/crates/openhuman-core/src/agent/tinyagents/turn_exec.rs+++ b/crates/openhuman-core/src/agent/tinyagents/turn_exec.rs@@ -601,6 +601,7 @@ async fn run_turn_via_tinyagents_body(.ok_or_else(|| anyhow::anyhow!("turn driver prepared a run without a steering handle"))?;let tool_count = prepared.tools().registered.len();+ let candidate_names = prepared.tools().plan.candidates.clone();let TurnWiring {halt_summary,wrap_up_fired,@@ -613,7 +614,7 @@ async fn run_turn_via_tinyagents_body(model: model.to_string(),tool_sets,allowed,- candidate_names: prepared.tools().plan.candidates.clone(),+ candidate_names,subagent_scope: subagent_scope.clone(),context_window,context_mw,@@ -630,8 +631,6 @@ async fn run_turn_via_tinyagents_body(.map(crate::agent::tinyagents::run_mode::handle_for_thread),memory_turn: run_context.memory_turn.clone(),summarizer_model,- cursor: cursor.clone(),- tool_names: tool_names.clone(),failure_map: failure_map.clone(),provider_usage_carry: provider_usage_carry.clone(),tool_outcome_sink: tool_outcome_sink.clone(),diff --git a/crates/openhuman-core/src/agent/tinyagents/turn_middleware.rs b/crates/openhuman-core/src/agent/tinyagents/turn_middleware.rsindex a3fa26a7ac..40fe1ae1f6 100644--- a/crates/openhuman-core/src/agent/tinyagents/turn_middleware.rs+++ b/crates/openhuman-core/src/agent/tinyagents/turn_middleware.rs@@ -34,9 +34,7 @@ use crate::agent::tinyagents::context_wiring::install_context_ladder;use crate::agent::tinyagents::host::OpenHumanRunContext;use crate::agent::tinyagents::middleware::{self, TurnContextMiddleware};use crate::agent::tinyagents::model::TurnChatModel;-use crate::agent::tinyagents::observability::{- ProviderUsageCarry, SubagentScope, ToolFailureMap, ToolNameMap,-};+use crate::agent::tinyagents::observability::{ProviderUsageCarry, SubagentScope, ToolFailureMap};use crate::agent::tinyagents::routes;use crate::agent::tinyagents::stop_hooks;use crate::agent::tinyagents::verify_before_finish;@@ -81,12 +79,6 @@ pub(super) struct TurnMiddlewareInputs {pub(super) memory_turn: Option<Arc<crate::memory::lifecycle::hooks::MemoryTurn>>,/// The context-window summarizer's model.pub(super) summarizer_model: TurnChatModel,- /// Shared 1-based model-call cursor (event bridge advances, model adapter- /// reads for out-of-band thinking attribution).- pub(super) cursor: tinyagents_harness::events::IterationCursor,- /// Shared `call_id -> tool_name` map used by the event bridge to label- /// tool-argument fragments projected off the crate stream.- pub(super) tool_names: ToolNameMap,/// Shared `call_id -> (success, failure, elapsed_ms, output_chars)` side/// channel: middleware records each outcome for the bridge's/// `ToolCallCompleted`.@@ -140,8 +132,6 @@ pub(super) fn install_turn_middleware(run_mode,memory_turn,summarizer_model,- cursor,- tool_names,failure_map,provider_usage_carry,tool_outcome_sink,@@ -394,7 +384,7 @@ pub(super) fn install_turn_middleware(// artifact contents list, trim), registered here so each step keeps its// place in the middleware order. See `context_wiring.rs`.let (compression_mw, wrap_up_fired) = install_context_ladder(- &mut harness,+ harness,model,context_window,autocompact_enabled,