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
chore(deps): reorder imports to satisfy lint rules
Steven Enamakelf85daab5af00
diff --git a/crates/openhuman-core/src/agent/session_host/driver.rs b/crates/openhuman-core/src/agent/session_host/driver.rsindex 6bfaa65a71..1d6c23381c 100644--- a/crates/openhuman-core/src/agent/session_host/driver.rs+++ b/crates/openhuman-core/src/agent/session_host/driver.rs@@ -312,13 +312,9 @@ impl SessionDriver<OpenHumanRunContext> for OpenHumanSessionDriver {.is_some_and(|reason| reason.starts_with("Stopping after "));let required_repair = match required_output.as_ref() {Some(contract) if classified_halt => {- if !tinyagents_harness::config::output_satisfies_contract(- &output, contract,- ) {+ if !tinyagents_harness::config::output_satisfies_contract(&output, contract) {output.push_str("\n\n");- output.push_str(&tinyagents_harness::config::synthesize_block(- contract,- ));+ output.push_str(&tinyagents_harness::config::synthesize_block(contract));if history.last().is_some_and(|message| matches!(message, Message::Assistant(_)))diff --git a/crates/openhuman-core/src/agent/tinyagents/harness_assembly.rs b/crates/openhuman-core/src/agent/tinyagents/harness_assembly.rsindex 635789ed4f..8251c8f553 100644--- a/crates/openhuman-core/src/agent/tinyagents/harness_assembly.rs+++ b/crates/openhuman-core/src/agent/tinyagents/harness_assembly.rs@@ -28,10 +28,10 @@ use crate::agent::tinyagents::observability::{};use crate::agent::tinyagents::routes;use crate::agent::tinyagents::stop_hooks;-use tinyagents_harness::tool::EarlyExitHook;use crate::agent::tinyagents::turn_models::TurnModels;use crate::agent::tinyagents::turn_outcome::{HaltSummarySlot, ToolOutcomeSink};use crate::agent::tinyagents::turn_policy::{run_policy_for, REPEATED_TOOL_FAILURE_THRESHOLD};+use tinyagents_harness::tool::EarlyExitHook;use super::ToolPolicyEnforcement;diff --git a/crates/openhuman-core/src/agent/tinyagents/harness_tool_registration.rs b/crates/openhuman-core/src/agent/tinyagents/harness_tool_registration.rsindex 2ad1df1f93..8db169393c 100644--- a/crates/openhuman-core/src/agent/tinyagents/harness_tool_registration.rs+++ b/crates/openhuman-core/src/agent/tinyagents/harness_tool_registration.rs@@ -18,12 +18,12 @@ use crate::agent::orchestration::tools::{SpawnSubagentDispatch, SpawnWorkerThreadDispatch, SteerSubagentDispatch, WaitSubagentDispatch,};use crate::agent::tinyagents::host::OpenHumanRunContext;-use tinyagents_harness::tool::{CanonicalSharedToolAdapter, EarlyExitHook};use crate::agent::tinyagents::turn_policy::is_subagent_spawn_or_delegate_tool;use crate::agent::tinyagents::use_skill_dispatch::UseSkillDispatch;use crate::agent::tools::{DelegateToolDispatch, TodoToolDispatch};use crate::memory::agent::CallMemoryAgentDispatch;use crate::tools::toolpacks::USE_SKILL;+use tinyagents_harness::tool::{CanonicalSharedToolAdapter, EarlyExitHook};/// Typed-dispatch selection shared by the direct per-turn registration below/// and by [`UseSkillDispatch`], which must resolve the SAME live-parentdiff --git a/crates/openhuman-core/src/agent/tinyagents/turn_run_finalize.rs b/crates/openhuman-core/src/agent/tinyagents/turn_run_finalize.rsindex 64c03bf7dd..c323374e46 100644--- a/crates/openhuman-core/src/agent/tinyagents/turn_run_finalize.rs+++ b/crates/openhuman-core/src/agent/tinyagents/turn_run_finalize.rs@@ -15,10 +15,10 @@ use tokio::sync::mpsc::Sender;use crate::agent::progress::AgentProgress;use crate::agent::tinyagents::journal::TurnJournal;use crate::agent::tinyagents::observability::{self, OpenhumanEventBridge, SubagentScope};-use tinyagents_harness::tool::EarlyExitHook;use crate::agent::tinyagents::turn_outcome::{HaltSummarySlot, TinyagentsTurnOutcome, ToolOutcomeSink,};+use tinyagents_harness::tool::EarlyExitHook;/// Assemble the [`TinyagentsTurnOutcome`] for a run that returned/// successfully: stamp the durable journal's completed status, surfacediff --git a/crates/openhuman-core/src/agent/tinyagents/use_skill_dispatch_tests.rs b/crates/openhuman-core/src/agent/tinyagents/use_skill_dispatch_tests.rsindex f69fc168ef..234950cb77 100644--- a/crates/openhuman-core/src/agent/tinyagents/use_skill_dispatch_tests.rs+++ b/crates/openhuman-core/src/agent/tinyagents/use_skill_dispatch_tests.rs@@ -17,7 +17,6 @@ use super::*;use crate::agent::harness::definition::AgentDefinitionRegistry;use crate::agent::harness::ParentExecutionContext;use crate::agent::prompts::ToolCallFormat;-use tinyagents_harness::tool::CanonicalSharedToolAdapter;use crate::memory::{Memory, MemoryCategory, MemoryEntry, NamespaceSummary, RecallOpts};use crate::tools::toolpacks::tools::{PackRegistryHandle, UseSkillTool};use async_trait::async_trait;@@ -25,6 +24,7 @@ use serde_json::json;use std::path::Path;use std::sync::Arc;use tinyagents_harness::context::RunConfig;+use tinyagents_harness::tool::CanonicalSharedToolAdapter;use tinyagents_harness::CallId;use tinyinference_llm::message::Message;use tinyinference_llm::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};diff --git a/crates/openhuman-core/src/tools/impl/meta/mod.rs b/crates/openhuman-core/src/tools/impl/meta/mod.rsindex 683a9b6ed6..076287d827 100644--- a/crates/openhuman-core/src/tools/impl/meta/mod.rs+++ b/crates/openhuman-core/src/tools/impl/meta/mod.rs@@ -10,9 +10,9 @@pub mod deferred;+pub use deferred::{deferred_tool_names, strip_deferred_from_visible, TOOL_SEARCH_NAME};pub use tinytools::collapse;pub use tinytools::collapse::{any_external_effect, args_without_action, merge_action_schemas, resolve, strictest_permission,unknown_action_message, CollapsedAction,};-pub use deferred::{deferred_tool_names, strip_deferred_from_visible, TOOL_SEARCH_NAME};