Skip to content

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

chore: migrate tool types from tinyagents_harness to tinyinference

Steven Enamakeladaea7233daf
diff --git a/src/bin/library_profile/mock.rs b/src/bin/library_profile/mock.rs
index 5302fb2d0d..7bab05e161 100644
--- a/src/bin/library_profile/mock.rs
+++ b/src/bin/library_profile/mock.rs
@@ -9,7 +9,7 @@ use async_trait::async_trait;
use openhuman_core::openhuman::inference::provider::types::{ChatResponse, ToolCall};
use tinyagents_harness::message::{AssistantMessage, ContentBlock, Message};
use tinyinference::model::{ChatModel, ModelRequest, ModelResponse};
-use tinyagents_harness::tool::ToolCall as TinyAgentsToolCall;
+use tinyinference::tool::ToolCall as TinyAgentsToolCall;
/// A plain `ChatResponse` carrying only text (no tool calls).
pub fn response(text: &str) -> ChatResponse {
diff --git a/src/openhuman/agent/dispatcher.rs b/src/openhuman/agent/dispatcher.rs
index f13cd559bc..f4795be6f0 100644
--- a/src/openhuman/agent/dispatcher.rs
+++ b/src/openhuman/agent/dispatcher.rs
@@ -20,7 +20,7 @@
//! maps that keep the wire bytes identical while the logic lives upstream.
//!
//! Second, the **[`Tool`] trait object**. The crate takes
-//! [`ToolSchema`](tinyagents_harness::tool::ToolSchema)s, never a host's tool
+//! [`ToolSchema`](tinyinference::tool::ToolSchema)s, never a host's tool
//! type, for the reason the parse seam already documents: a crate that depended
//! on OpenHuman's `Tool` could not be used by a second host. So
//! [`ToolDispatcher::prompt_instructions`] reads names and schemas off the
@@ -39,7 +39,7 @@ use crate::openhuman::agent::pformat::PFormatRegistry;
use crate::openhuman::inference::provider::{ChatResponse, ToolCall};
use crate::openhuman::tools::{Tool, ToolSpec};
use serde_json::Value;
-use tinyagents_harness::tool::ToolSchema;
+use tinyinference::tool::ToolSchema;
use tinyagents_harness::tool_calling::dialect::{
DialectMessage, DialectResponse, DialectRole, NativeDialect, NativeToolCall, PFormatDialect,
ToolDialect, ToolOutcome, ToolResultEntry, TranscriptEntry, XmlDialect,
diff --git a/src/openhuman/agent/harness/graph_tests.rs b/src/openhuman/agent/harness/graph_tests.rs
index d285784426..2b87bcf431 100644
--- a/src/openhuman/agent/harness/graph_tests.rs
+++ b/src/openhuman/agent/harness/graph_tests.rs
@@ -4,7 +4,7 @@ use async_trait::async_trait;
use tinyagents_harness::message::AssistantMessage;
use tinyinference::model::{ChatModel, ModelProfile, ModelResponse};
use tinyagents_harness::testkit::ScriptedModel;
-use tinyagents_harness::tool::ToolCall;
+use tinyinference::tool::ToolCall;
struct PingTool;
#[async_trait]
diff --git a/src/openhuman/agent/harness/subagent_runner/ops/graph_tests.rs b/src/openhuman/agent/harness/subagent_runner/ops/graph_tests.rs
index 8c28e69aee..a741074424 100644
--- a/src/openhuman/agent/harness/subagent_runner/ops/graph_tests.rs
+++ b/src/openhuman/agent/harness/subagent_runner/ops/graph_tests.rs
@@ -6,7 +6,7 @@ use tinyagents_harness::message::{AssistantMessage, MessageDelta};
use tinyinference::model::{
ChatModel, ModelProfile, ModelRequest, ModelResponse, ModelStream, ModelStreamItem,
};
-use tinyagents_harness::tool::ToolCall;
+use tinyinference::tool::ToolCall;
fn native_tool_profile() -> &'static ModelProfile {
static PROFILE: std::sync::LazyLock<ModelProfile> = std::sync::LazyLock::new(|| ModelProfile {
diff --git a/src/openhuman/agent/harness/subagent_runner/ops_tests.rs b/src/openhuman/agent/harness/subagent_runner/ops_tests.rs
index bbbc893555..adc9518bc3 100644
--- a/src/openhuman/agent/harness/subagent_runner/ops_tests.rs
+++ b/src/openhuman/agent/harness/subagent_runner/ops_tests.rs
@@ -78,7 +78,7 @@ use tinyagents_harness::message::{AssistantMessage, ContentBlock, Message, Messa
use tinyinference::model::{
ChatModel, ModelProfile, ModelRequest, ModelResponse, ModelStream, ModelStreamItem,
};
-use tinyagents_harness::tool::ToolCall;
+use tinyinference::tool::ToolCall;
/// Mock provider whose response queue can be inspected by the test
/// to verify the bytes that arrive at the model.
diff --git a/src/openhuman/agent/message_convert.rs b/src/openhuman/agent/message_convert.rs
index e6aef2cd3a..f3fe4cbf56 100644
--- a/src/openhuman/agent/message_convert.rs
+++ b/src/openhuman/agent/message_convert.rs
@@ -17,7 +17,7 @@
use tinyagents_harness::message::{
AssistantMessage, ContentBlock, ImageRef, Message, SystemMessage, ToolMessage, UserMessage,
};
-use tinyagents_harness::tool::ToolCall as TaToolCall;
+use tinyinference::tool::ToolCall as TaToolCall;
use crate::openhuman::agent::messages::{ChatMessage, ConversationMessage, ToolResultMessage};
diff --git a/src/openhuman/agent/orchestration/tools/spawn_parallel_agents_tests.rs b/src/openhuman/agent/orchestration/tools/spawn_parallel_agents_tests.rs
index d0b1b26840..7dd69bef7f 100644
--- a/src/openhuman/agent/orchestration/tools/spawn_parallel_agents_tests.rs
+++ b/src/openhuman/agent/orchestration/tools/spawn_parallel_agents_tests.rs
@@ -26,7 +26,7 @@ use std::sync::{
};
use tinyagents_harness::message::{AssistantMessage, Message};
use tinyinference::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
-use tinyagents_harness::tool::ToolCall;
+use tinyinference::tool::ToolCall;
use tokio::time::{sleep, timeout, Duration};
const PARENT_PROMPT_CANARY: &str = "parallel-fanout-e2e-canary";
diff --git a/src/openhuman/agent/prompts/sections.rs b/src/openhuman/agent/prompts/sections.rs
index deb37272ba..61ef764216 100644
--- a/src/openhuman/agent/prompts/sections.rs
+++ b/src/openhuman/agent/prompts/sections.rs
@@ -12,7 +12,7 @@ use super::render_helpers::{
use super::types::*;
use anyhow::Result;
use std::fmt::Write;
-use tinyagents_harness::tool::ToolSchema;
+use tinyinference::tool::ToolSchema;
use tinyagents_harness::tool_calling::dialect::render_pformat_catalogue;
// ─────────────────────────────────────────────────────────────────────────────
diff --git a/src/openhuman/agent/tinyagents/convert.rs b/src/openhuman/agent/tinyagents/convert.rs
index fc72dbda09..7e50a5eaac 100644
--- a/src/openhuman/agent/tinyagents/convert.rs
+++ b/src/openhuman/agent/tinyagents/convert.rs
@@ -4,7 +4,7 @@
//! OpenHuman transcript record it adapts. This module remains until WP-4
//! decides the host tool-trait boundary.
-use tinyagents_harness::tool::ToolSchema;
+use tinyinference::tool::ToolSchema;
use crate::openhuman::tools::ToolSpec;
diff --git a/src/openhuman/agent/tinyagents/model_g1_usage_tests_tests.rs b/src/openhuman/agent/tinyagents/model_g1_usage_tests_tests.rs
index 7286900e5b..1491855731 100644
--- a/src/openhuman/agent/tinyagents/model_g1_usage_tests_tests.rs
+++ b/src/openhuman/agent/tinyagents/model_g1_usage_tests_tests.rs
@@ -110,7 +110,7 @@ fn tool_enabled_response_still_extracts_tool_call_markup() {
fn tool_request() -> ModelRequest {
ModelRequest {
- tools: vec![tinyagents_harness::tool::ToolSchema::new(
+ tools: vec![tinyinference::tool::ToolSchema::new(
"lookup",
"looks up a record",
serde_json::json!({
diff --git a/src/openhuman/channels/tests/common.rs b/src/openhuman/channels/tests/common.rs
index 576b61dfdb..6ef295b55d 100644
--- a/src/openhuman/channels/tests/common.rs
+++ b/src/openhuman/channels/tests/common.rs
@@ -7,7 +7,7 @@ use std::time::Duration;
use tempfile::TempDir;
use tinyagents_harness::message::{AssistantMessage, Message};
use tinyinference::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
-use tinyagents_harness::tool::ToolCall;
+use tinyinference::tool::ToolCall;
fn message_role(message: &Message) -> &'static str {
match message {
diff --git a/src/openhuman/flows/tinyflows/caps/ops_tests_part_03_tests.rs b/src/openhuman/flows/tinyflows/caps/ops_tests_part_03_tests.rs
index 050b1e4b21..5a80a2330a 100644
--- a/src/openhuman/flows/tinyflows/caps/ops_tests_part_03_tests.rs
+++ b/src/openhuman/flows/tinyflows/caps/ops_tests_part_03_tests.rs
@@ -168,7 +168,7 @@ fn resolve_completion_model_leaves_managed_tier_and_hint_node_models_untouched()
fn crate_model_response_preserves_flow_completion_contract() {
use tinyagents_harness::message::{AssistantMessage, ContentBlock};
use tinyinference::model::ModelResponse;
- use tinyagents_harness::tool::ToolCall;
+ use tinyinference::tool::ToolCall;
use tinyagents_harness::usage::Usage;
let usage = Usage::new(11, 7);
diff --git a/src/openhuman/inference/provider/claude_agent_sdk/subprocess_tests.rs b/src/openhuman/inference/provider/claude_agent_sdk/subprocess_tests.rs
index 9d79ebfbd3..87ee1b134c 100644
--- a/src/openhuman/inference/provider/claude_agent_sdk/subprocess_tests.rs
+++ b/src/openhuman/inference/provider/claude_agent_sdk/subprocess_tests.rs
@@ -136,7 +136,7 @@ async fn provider_spawn_error_includes_the_os_source() {
#[tokio::test]
async fn chat_model_uses_prompt_guided_protocol_and_model_override() {
use std::os::unix::fs::PermissionsExt;
- use tinyagents_harness::tool::ToolSchema;
+ use tinyinference::tool::ToolSchema;
let dir = tempfile::tempdir().expect("tempdir");
let script = dir.path().join("claude");
diff --git a/src/openhuman/skills/e2e_plumbing_tests.rs b/src/openhuman/skills/e2e_plumbing_tests.rs
index 105cf2551d..4bd01f23ec 100644
--- a/src/openhuman/skills/e2e_plumbing_tests.rs
+++ b/src/openhuman/skills/e2e_plumbing_tests.rs
@@ -41,7 +41,7 @@ use crate::openhuman::skills::runtime::await_run_outcome;
use crate::openhuman::tools::traits::Tool;
use tinyagents_harness::message::AssistantMessage;
use tinyinference::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
-use tinyagents_harness::tool::ToolCall;
+use tinyinference::tool::ToolCall;
// ── Mock LLM ─────────────────────────────────────────────────────────────
// Minimal scripted model: pops queued ModelResponses in order. Mirrors the
diff --git a/src/openhuman/skills/e2e_run_tests.rs b/src/openhuman/skills/e2e_run_tests.rs
index b606006cb8..a101f53fd3 100644
--- a/src/openhuman/skills/e2e_run_tests.rs
+++ b/src/openhuman/skills/e2e_run_tests.rs
@@ -43,7 +43,7 @@ use crate::openhuman::threads::todos::ops::{BoardLocation, CardPatch};
use crate::openhuman::tools::traits::Tool;
use tinyagents_harness::message::AssistantMessage;
use tinyinference::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
-use tinyagents_harness::tool::ToolCall;
+use tinyinference::tool::ToolCall;
/// Serialize this module's tests (each touches process-global state).
fn serial() -> &'static tokio::sync::Mutex<()> {