Skip to content

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

refactor(core): update tinyagents dependency to harness

Steven Enamakelf6abb3984038
diff --git a/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs b/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs
index d4a204a719..80ddb19208 100644
--- a/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs
@@ -17,7 +17,7 @@ use tinyagents_orchestration::subagent::{
SubagentPersistenceDisposition, SubagentPlanner, SubagentRequest, SubagentResume,
SubagentRunResult, SubagentTaskKey, SubagentTerminalPersistenceDisposition,
};
-use tinyagents_runtime::ToolSnapshot;
+use tinyagents_harness::tool::ToolSnapshot;
use tinyinference_llm::{
message::Message,
usage::{ChargedAmount, Usage, UsageTotals},
diff --git a/crates/openhuman-core/src/agent/subagent_host/tool_prep.rs b/crates/openhuman-core/src/agent/subagent_host/tool_prep.rs
index 46a26a5668..4dcb8a4830 100644
--- a/crates/openhuman-core/src/agent/subagent_host/tool_prep.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/tool_prep.rs
@@ -9,7 +9,7 @@ use crate::agent::prompts::PromptContext;
use crate::agent_registry::host_definition::AgentDefinition;
use tinyagents_definition::{PromptSource, ToolScope};
use tinyagents_orchestration::subagent::{restrict_tools_with_scope, SubagentRole};
-use tinyagents_runtime::ToolSnapshot;
+use tinyagents_harness::tool::ToolSnapshot;
use tinytools::Tool;
// ── Prompt dialect selection ────────────────────────────────────────────
diff --git a/crates/openhuman-core/src/agent/tinyagents/tool_registration.rs b/crates/openhuman-core/src/agent/tinyagents/tool_registration.rs
index c63da2a65e..51381688fb 100644
--- a/crates/openhuman-core/src/agent/tinyagents/tool_registration.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/tool_registration.rs
@@ -7,7 +7,7 @@ use std::collections::HashSet;
use std::sync::Arc;
use async_trait::async_trait;
-use tinyagents_graph::goals::GoalToolKind;
+use tinyagents_harness_tools::goals::GoalToolKind;
use tinyagents_harness::tool::packs::{PackSelection, UseSkillDispatch, USE_SKILL};
use tinyagents_harness::tool::{
CanonicalSharedToolAdapter, ToolDispatch, ToolExecScope, ToolExecution, ToolExecutionContext,
@@ -644,7 +644,7 @@ pub(crate) fn capability_diagnostics(
let diagnostics = registry.diagnostics();
tracing::debug!(
- models = registry.to_model_registry().names().len(),
+ models = registry.names(ComponentKind::Model).len(),
tools = registry.names(ComponentKind::Tool).len(),
agents = runtime_agent_count + builtin_supplement_count,
diagnostics = diagnostics.len(),
diff --git a/crates/openhuman-core/src/agent/tinyagents/turn_middleware.rs b/crates/openhuman-core/src/agent/tinyagents/turn_middleware.rs
index 9c09d36470..16c40a5ed5 100644
--- a/crates/openhuman-core/src/agent/tinyagents/turn_middleware.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/turn_middleware.rs
@@ -480,7 +480,7 @@ pub(super) fn install_turn_middleware(
match todo_store {
Some(store) if verify_before_finish::applies(is_subagent, agent_id) => {
harness.push_middleware(Arc::new(
- tinyagents_graph::todos::TodoSequenceMiddleware::new(store),
+ tinyagents_harness_tools::todos::TodoSequenceMiddleware::new(store),
));
}
_ => tracing::debug!(
diff --git a/crates/openhuman-core/src/integrations/prelude_integrations.rs b/crates/openhuman-core/src/integrations/prelude_integrations.rs
index baf8483109..d94a46faea 100644
--- a/crates/openhuman-core/src/integrations/prelude_integrations.rs
+++ b/crates/openhuman-core/src/integrations/prelude_integrations.rs
@@ -5,7 +5,7 @@
use std::sync::Arc;
-use tinyagents_runtime::ToolSnapshot;
+use tinyagents_harness::tool::ToolSnapshot;
use super::OpenHumanTurnPrelude;
diff --git a/crates/openhuman-embed/src/lib.rs b/crates/openhuman-embed/src/lib.rs
index 7a6f4fb7f3..d2f474bf3d 100644
--- a/crates/openhuman-embed/src/lib.rs
+++ b/crates/openhuman-embed/src/lib.rs
@@ -237,7 +237,7 @@ pub mod seams {
/// is held to. The persisted record types are the harness's own serde codecs,
/// so hosts can encode and decode stored state without duplicating wire shapes.
pub mod session_store {
- pub use tinyagents_graph::todos::TodoList;
+ pub use tinyagents_harness_tools::todos::TodoList;
pub use tinyagents_harness::events::{AgentEvent, HarnessRunStatus};
pub use tinyagents_harness::ids::ExecutionStatus;
pub use tinyagents_harness::observability::AgentObservation;