Skip to content

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

refactor: migrate model type imports from tinyagents_harness to tinyinference

Steven Enamakel2e69860ef4a2
diff --git a/src/bin/library_profile/mock.rs b/src/bin/library_profile/mock.rs
index e7ca2a55d5..5302fb2d0d 100644
--- a/src/bin/library_profile/mock.rs
+++ b/src/bin/library_profile/mock.rs
@@ -8,7 +8,7 @@ use std::time::Duration;
use async_trait::async_trait;
use openhuman_core::openhuman::inference::provider::types::{ChatResponse, ToolCall};
use tinyagents_harness::message::{AssistantMessage, ContentBlock, Message};
-use tinyagents_harness::model::{ChatModel, ModelRequest, ModelResponse};
+use tinyinference::model::{ChatModel, ModelRequest, ModelResponse};
use tinyagents_harness::tool::ToolCall as TinyAgentsToolCall;
/// A plain `ChatResponse` carrying only text (no tool calls).
diff --git a/src/bin/rss_bench.rs b/src/bin/rss_bench.rs
index 2babcec342..db302d604e 100644
--- a/src/bin/rss_bench.rs
+++ b/src/bin/rss_bench.rs
@@ -41,7 +41,7 @@ use std::process::Stdio;
use std::sync::Arc;
use std::time::Duration;
use tempfile::TempDir;
-use tinyagents_harness::model::{ChatModel, ModelRequest, ModelResponse};
+use tinyinference::model::{ChatModel, ModelRequest, ModelResponse};
/// Roster sizes measured by default: the 1-agent baseline and the
/// representative 8-agent company roster from #5046.
diff --git a/src/openhuman/agent/agent_tests.rs b/src/openhuman/agent/agent_tests.rs
index a7c497831e..0c796cb78f 100644
--- a/src/openhuman/agent/agent_tests.rs
+++ b/src/openhuman/agent/agent_tests.rs
@@ -36,7 +36,7 @@ use crate::openhuman::tools::{Tool, ToolResult};
use anyhow::Result;
use async_trait::async_trait;
use std::sync::{Arc, Mutex};
-use tinyagents_harness::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
+use tinyinference::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
use tinymemory_core::store as memory_store;
// ═══════════════════════════════════════════════════════════════════════════
diff --git a/src/openhuman/agent/bus_tests.rs b/src/openhuman/agent/bus_tests.rs
index 3dd62fdf3b..9d1a5abc1a 100644
--- a/src/openhuman/agent/bus_tests.rs
+++ b/src/openhuman/agent/bus_tests.rs
@@ -5,7 +5,7 @@ use tinybus::NativeRegistry;
/// in these tests, so the provider trait object is never actually
/// invoked — an empty native scripted model only satisfies the type.
fn test_request() -> AgentTurnRequest {
- let model: Arc<dyn tinyagents_harness::model::ChatModel<()>> =
+ let model: Arc<dyn tinyinference::model::ChatModel<()>> =
Arc::new(tinyagents_harness::testkit::ScriptedModel::new(Vec::new()));
AgentTurnRequest {
turn_model_source: crate::openhuman::agent::tinyagents::TurnModelSource::from_model(model),
diff --git a/src/openhuman/agent/harness/graph_tests.rs b/src/openhuman/agent/harness/graph_tests.rs
index 63d811279c..d285784426 100644
--- a/src/openhuman/agent/harness/graph_tests.rs
+++ b/src/openhuman/agent/harness/graph_tests.rs
@@ -2,7 +2,7 @@ use super::*;
use crate::openhuman::tools::ToolResult;
use async_trait::async_trait;
use tinyagents_harness::message::AssistantMessage;
-use tinyagents_harness::model::{ChatModel, ModelProfile, ModelResponse};
+use tinyinference::model::{ChatModel, ModelProfile, ModelResponse};
use tinyagents_harness::testkit::ScriptedModel;
use tinyagents_harness::tool::ToolCall;
diff --git a/src/openhuman/agent/harness/session/builder/factory.rs b/src/openhuman/agent/harness/session/builder/factory.rs
index d25eb6c3a5..8695913ec4 100644
--- a/src/openhuman/agent/harness/session/builder/factory.rs
+++ b/src/openhuman/agent/harness/session/builder/factory.rs
@@ -666,7 +666,7 @@ impl Agent {
// For cloud reflection, wrap the provider in an Arc.
// For local, no provider needed.
let reflection_provider: Option<
- Arc<dyn tinyagents_harness::model::ChatModel<()>>,
+ Arc<dyn tinyinference::model::ChatModel<()>>,
> = if config.learning.reflection_source
== crate::openhuman::config::ReflectionSource::Cloud
{
diff --git a/src/openhuman/agent/harness/session/builder/setters.rs b/src/openhuman/agent/harness/session/builder/setters.rs
index 3a614cc03a..4db73250fd 100644
--- a/src/openhuman/agent/harness/session/builder/setters.rs
+++ b/src/openhuman/agent/harness/session/builder/setters.rs
@@ -63,7 +63,7 @@ impl AgentBuilder {
/// Sets an already-constructed TinyAgents chat model. This is the native
/// injection seam for tests and embedders; no legacy `Provider` adapter is
/// constructed.
- pub fn chat_model(mut self, model: Arc<dyn tinyagents_harness::model::ChatModel<()>>) -> Self {
+ pub fn chat_model(mut self, model: Arc<dyn tinyinference::model::ChatModel<()>>) -> Self {
self.turn_model_source =
Some(crate::openhuman::agent::tinyagents::TurnModelSource::from_model(model));
self
diff --git a/src/openhuman/agent/harness/session/runtime_tests.rs b/src/openhuman/agent/harness/session/runtime_tests.rs
index 888aa74582..1173848e39 100644
--- a/src/openhuman/agent/harness/session/runtime_tests.rs
+++ b/src/openhuman/agent/harness/session/runtime_tests.rs
@@ -9,7 +9,7 @@ use anyhow::anyhow;
use async_trait::async_trait;
use parking_lot::Mutex;
use std::sync::Arc;
-use tinyagents_harness::model::{
+use tinyinference::model::{
ChatModel, ModelRequest, ModelResponse, ModelStream, ModelStreamItem,
};
use tokio::sync::Mutex as AsyncMutex;
diff --git a/src/openhuman/agent/harness/session/session_tests.rs b/src/openhuman/agent/harness/session/session_tests.rs
index 9d973e5830..dbf1cff262 100644
--- a/src/openhuman/agent/harness/session/session_tests.rs
+++ b/src/openhuman/agent/harness/session/session_tests.rs
@@ -17,7 +17,7 @@ use async_trait::async_trait;
use parking_lot::Mutex;
use std::sync::Arc;
use tinyagents_harness::message::Message;
-use tinyagents_harness::model::{
+use tinyinference::model::{
ChatModel, ModelProfile, ModelRequest, ModelResponse, ModelStream, ModelStreamItem,
};
diff --git a/src/openhuman/agent/harness/session/turn/session_io.rs b/src/openhuman/agent/harness/session/turn/session_io.rs
index 6027f595ea..1d5a1d3758 100644
--- a/src/openhuman/agent/harness/session/turn/session_io.rs
+++ b/src/openhuman/agent/harness/session/turn/session_io.rs
@@ -13,6 +13,6 @@ use crate::openhuman::inference::provider::{
ChatResponse, UsageInfo, AGENT_TURN_MAX_OUTPUT_TOKENS,
};
use futures::StreamExt;
-use tinyagents_harness::model::{ModelRequest, ModelStreamItem};
+use tinyinference::model::{ModelRequest, ModelStreamItem};
include!("session_io_impl_01_part_01.rs");
include!("session_io_impl_01_part_02.rs");
diff --git a/src/openhuman/agent/harness/session/turn_tests.rs b/src/openhuman/agent/harness/session/turn_tests.rs
index 3131b4ac90..706ead1956 100644
--- a/src/openhuman/agent/harness/session/turn_tests.rs
+++ b/src/openhuman/agent/harness/session/turn_tests.rs
@@ -20,7 +20,7 @@ use std::collections::HashSet;
use std::sync::atomic::{AtomicUsize, Ordering};
use std::sync::Arc;
use tinyagents_harness::message::Message;
-use tinyagents_harness::model::{
+use tinyinference::model::{
ChatModel, ModelProfile, ModelRequest, ModelResponse, ModelStream, ModelStreamItem,
};
use tokio::sync::Mutex as AsyncMutex;
diff --git a/src/openhuman/agent/harness/subagent_runner/extract_tool.rs b/src/openhuman/agent/harness/subagent_runner/extract_tool.rs
index 6fe8856eea..d7a5358a88 100644
--- a/src/openhuman/agent/harness/subagent_runner/extract_tool.rs
+++ b/src/openhuman/agent/harness/subagent_runner/extract_tool.rs
@@ -36,7 +36,7 @@ use crate::openhuman::agent::messages::ChatMessage;
use crate::openhuman::agent::tinyagents::TurnModelSource;
use crate::openhuman::tools::{Tool, ToolCategory, ToolResult};
use tinyagents_harness::message::Message;
-use tinyagents_harness::model::ModelRequest;
+use tinyinference::model::ModelRequest;
// ── Tunables ──────────────────────────────────────────────────────────
diff --git a/src/openhuman/agent/harness/subagent_runner/ops/checkpoint.rs b/src/openhuman/agent/harness/subagent_runner/ops/checkpoint.rs
index 7fccca1d3b..5b71bb8a1a 100644
--- a/src/openhuman/agent/harness/subagent_runner/ops/checkpoint.rs
+++ b/src/openhuman/agent/harness/subagent_runner/ops/checkpoint.rs
@@ -8,7 +8,7 @@
use crate::openhuman::inference::provider::UsageInfo;
use std::sync::Arc;
use tinyagents_harness::message::Message;
-use tinyagents_harness::model::{ChatModel, ModelRequest};
+use tinyinference::model::{ChatModel, ModelRequest};
/// A checkpoint result. `usage`, when present, is the provider usage from the
/// summary call so the caller can fold it into sub-agent token/cost accounting.
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 cbb9bfc201..8c28e69aee 100644
--- a/src/openhuman/agent/harness/subagent_runner/ops/graph_tests.rs
+++ b/src/openhuman/agent/harness/subagent_runner/ops/graph_tests.rs
@@ -3,7 +3,7 @@ use crate::openhuman::tools::ToolResult;
use async_trait::async_trait;
use std::sync::atomic::{AtomicUsize, Ordering};
use tinyagents_harness::message::{AssistantMessage, MessageDelta};
-use tinyagents_harness::model::{
+use tinyinference::model::{
ChatModel, ModelProfile, ModelRequest, ModelResponse, ModelStream, ModelStreamItem,
};
use tinyagents_harness::tool::ToolCall;
diff --git a/src/openhuman/agent/harness/subagent_runner/ops_tests.rs b/src/openhuman/agent/harness/subagent_runner/ops_tests.rs
index 7687882c6d..bbbc893555 100644
--- a/src/openhuman/agent/harness/subagent_runner/ops_tests.rs
+++ b/src/openhuman/agent/harness/subagent_runner/ops_tests.rs
@@ -75,7 +75,7 @@ use crate::openhuman::agent::harness::run_queue::{QueueMode, QueuedMessage, RunQ
use parking_lot::Mutex;
use std::sync::Arc;
use tinyagents_harness::message::{AssistantMessage, ContentBlock, Message, MessageDelta};
-use tinyagents_harness::model::{
+use tinyinference::model::{
ChatModel, ModelProfile, ModelRequest, ModelResponse, ModelStream, ModelStreamItem,
};
use tinyagents_harness::tool::ToolCall;
diff --git a/src/openhuman/agent/learning/linkedin_enrichment_part_01.rs b/src/openhuman/agent/learning/linkedin_enrichment_part_01.rs
index 0ca9329cdf..e47df31780 100644
--- a/src/openhuman/agent/learning/linkedin_enrichment_part_01.rs
+++ b/src/openhuman/agent/learning/linkedin_enrichment_part_01.rs
@@ -331,7 +331,7 @@ Rules:\n\
);
use tinyagents_harness::message::Message;
- use tinyagents_harness::model::ModelRequest;
+ use tinyinference::model::ModelRequest;
let summary = model_chat
.invoke(
&(),
diff --git a/src/openhuman/agent/learning/reflection.rs b/src/openhuman/agent/learning/reflection.rs
index 60f22b1ec0..c0bcb3e179 100644
--- a/src/openhuman/agent/learning/reflection.rs
+++ b/src/openhuman/agent/learning/reflection.rs
@@ -44,7 +44,7 @@ pub struct ReflectionHook {
config: LearningConfig,
full_config: Arc<Config>,
memory: Arc<dyn Memory>,
- provider: Option<Arc<dyn tinyagents_harness::model::ChatModel<()>>>,
+ provider: Option<Arc<dyn tinyinference::model::ChatModel<()>>>,
/// Per-session reflection counts for throttling. Key is session_id (or "__global__").
session_counts: Mutex<HashMap<String, usize>>,
}
@@ -56,11 +56,11 @@ pub struct ReflectionHook {
/// user turn with no per-request overrides — the [`ChatModel`] equivalent of the
/// former `simple_chat(prompt, "hint:reasoning", 0.3)`.
async fn invoke_cloud_reflection(
- provider: &Arc<dyn tinyagents_harness::model::ChatModel<()>>,
+ provider: &Arc<dyn tinyinference::model::ChatModel<()>>,
prompt: &str,
) -> anyhow::Result<String> {
use tinyagents_harness::message::Message;
- use tinyagents_harness::model::ModelRequest;
+ use tinyinference::model::ModelRequest;
Ok(provider
.invoke(
&(),
@@ -75,7 +75,7 @@ impl ReflectionHook {
config: LearningConfig,
full_config: Arc<Config>,
memory: Arc<dyn Memory>,
- provider: Option<Arc<dyn tinyagents_harness::model::ChatModel<()>>>,
+ provider: Option<Arc<dyn tinyinference::model::ChatModel<()>>>,
) -> Self {
Self {
config,
diff --git a/src/openhuman/agent/orchestration/agent_teams/runtime_tests.rs b/src/openhuman/agent/orchestration/agent_teams/runtime_tests.rs
index 9d0d4fb643..22d721c05b 100644
--- a/src/openhuman/agent/orchestration/agent_teams/runtime_tests.rs
+++ b/src/openhuman/agent/orchestration/agent_teams/runtime_tests.rs
@@ -21,7 +21,7 @@ use crate::openhuman::agent::harness::fork_context::{with_parent_context, Parent
use crate::openhuman::config::{AgentConfig, Config};
use crate::openhuman::memory::{Memory, MemoryCategory, MemoryEntry, NamespaceSummary, RecallOpts};
use crate::openhuman::tools::{Tool, ToolSpec};
-use tinyagents_harness::model::{ChatModel, ModelRequest, ModelResponse};
+use tinyinference::model::{ChatModel, ModelRequest, ModelResponse};
use tinyagents_session::run_ledger::{
self, AgentTeamMemberStatus, AgentTeamMemberUpsert, AgentTeamStatus, AgentTeamTaskStatus,
AgentTeamTaskUpsert, AgentTeamUpsert,
diff --git a/src/openhuman/agent/orchestration/ops_tests.rs b/src/openhuman/agent/orchestration/ops_tests.rs
index b194340760..60e86c257a 100644
--- a/src/openhuman/agent/orchestration/ops_tests.rs
+++ b/src/openhuman/agent/orchestration/ops_tests.rs
@@ -11,7 +11,7 @@ use std::sync::{
atomic::{AtomicUsize, Ordering},
Arc,
};
-use tinyagents_harness::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
+use tinyinference::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
use tokio::time::Duration;
#[derive(Default)]
diff --git a/src/openhuman/agent/orchestration/tools/close_subagent_tests.rs b/src/openhuman/agent/orchestration/tools/close_subagent_tests.rs
index 0e32823caa..a75e9ac19c 100644
--- a/src/openhuman/agent/orchestration/tools/close_subagent_tests.rs
+++ b/src/openhuman/agent/orchestration/tools/close_subagent_tests.rs
@@ -102,7 +102,7 @@ fn selector(parent_thread_id: &str) -> subagent_sessions::SubagentSessionSelecto
}
fn parent_context(workspace_dir: &Path) -> ParentExecutionContext {
- let model: Arc<dyn tinyagents_harness::model::ChatModel<()>> =
+ let model: Arc<dyn tinyinference::model::ChatModel<()>> =
Arc::new(tinyagents_harness::testkit::ScriptedModel::new(Vec::new()));
ParentExecutionContext {
workspace_descriptor: None,
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 b12f74e2db..d0b1b26840 100644
--- a/src/openhuman/agent/orchestration/tools/spawn_parallel_agents_tests.rs
+++ b/src/openhuman/agent/orchestration/tools/spawn_parallel_agents_tests.rs
@@ -25,7 +25,7 @@ use std::sync::{
Arc,
};
use tinyagents_harness::message::{AssistantMessage, Message};
-use tinyagents_harness::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
+use tinyinference::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
use tinyagents_harness::tool::ToolCall;
use tokio::time::{sleep, timeout, Duration};
@@ -107,7 +107,7 @@ fn parent_context(max_parallel_tools: usize) -> ParentExecutionContext {
max_parallel_tools,
..Default::default()
};
- let model: Arc<dyn tinyagents_harness::model::ChatModel<()>> =
+ let model: Arc<dyn tinyinference::model::ChatModel<()>> =
Arc::new(tinyagents_harness::testkit::ScriptedModel::replies(vec![
"ok",
]));
diff --git a/src/openhuman/agent/orchestration/tools/spawn_worker_thread_tests.rs b/src/openhuman/agent/orchestration/tools/spawn_worker_thread_tests.rs
index 43d5daf230..c31044e09f 100644
--- a/src/openhuman/agent/orchestration/tools/spawn_worker_thread_tests.rs
+++ b/src/openhuman/agent/orchestration/tools/spawn_worker_thread_tests.rs
@@ -62,7 +62,7 @@ impl crate::openhuman::memory::Memory for MockMemory {
}
fn test_parent_ctx(workspace_dir: PathBuf) -> ParentExecutionContext {
- let model: Arc<dyn tinyagents_harness::model::ChatModel<()>> =
+ let model: Arc<dyn tinyinference::model::ChatModel<()>> =
Arc::new(tinyagents_harness::testkit::ScriptedModel::replies(vec![
"done",
]));
diff --git a/src/openhuman/agent/orchestration/tools/tools_e2e_tests.rs b/src/openhuman/agent/orchestration/tools/tools_e2e_tests.rs
index ace0ea27ab..d757aacd67 100644
--- a/src/openhuman/agent/orchestration/tools/tools_e2e_tests.rs
+++ b/src/openhuman/agent/orchestration/tools/tools_e2e_tests.rs
@@ -13,7 +13,7 @@ use serde_json::json;
use std::path::Path;
use std::sync::Arc;
use tinyagents_harness::message::Message;
-use tinyagents_harness::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
+use tinyinference::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
use tinycortex::memory::conversations;
const SPAWN_SUBAGENT_CANARY: &str = "tool-e2e-spawn-subagent-canary";
diff --git a/src/openhuman/agent/orchestration/workflow_runs/engine_tests.rs b/src/openhuman/agent/orchestration/workflow_runs/engine_tests.rs
index b4a6d5d2fb..6e7f31d19f 100644
--- a/src/openhuman/agent/orchestration/workflow_runs/engine_tests.rs
+++ b/src/openhuman/agent/orchestration/workflow_runs/engine_tests.rs
@@ -30,7 +30,7 @@ use crate::openhuman::agent::harness::fork_context::{with_parent_context, Parent
use crate::openhuman::config::{AgentConfig, Config};
use crate::openhuman::memory::{Memory, MemoryCategory, MemoryEntry, NamespaceSummary, RecallOpts};
use crate::openhuman::tools::{Tool, ToolSpec};
-use tinyagents_harness::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
+use tinyinference::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
use tinyagents_session::run_ledger::{get_workflow_run, upsert_workflow_run, WorkflowRunUpsert};
use super::super::types::{WorkflowDefinition, WorkflowPhase, WorkflowSafetyTier};
diff --git a/src/openhuman/agent/tinyagents/host/model_resolver.rs b/src/openhuman/agent/tinyagents/host/model_resolver.rs
index 40dfbf3712..6b37fc97f7 100644
--- a/src/openhuman/agent/tinyagents/host/model_resolver.rs
+++ b/src/openhuman/agent/tinyagents/host/model_resolver.rs
@@ -69,7 +69,7 @@ use std::sync::{Arc, Mutex};
use async_trait::async_trait;
use tinyagents_harness::error::TinyAgentsError;
use tinyagents_harness::host::{ModelResolveRequest, ModelResolver};
-use tinyagents_harness::model::{
+use tinyinference::model::{
ChatModel, ModelProfile, ModelRequest, ModelResponse, ModelStream,
};
use tinyagents_harness::Result as TaResult;
diff --git a/src/openhuman/agent/tinyagents/middleware_part_01.rs b/src/openhuman/agent/tinyagents/middleware_part_01.rs
index f93be5dafa..f4bb3eda3a 100644
--- a/src/openhuman/agent/tinyagents/middleware_part_01.rs
+++ b/src/openhuman/agent/tinyagents/middleware_part_01.rs
@@ -13,7 +13,7 @@ use tinyagents_harness::middleware::{
AgentRun, BudgetTracker, ContextualToolSelectionMiddleware, MicrocompactMiddleware, Middleware,
MiddlewareToolOutcome, ToolAllowlistMiddleware, ToolHandler, ToolMiddleware,
};
-use tinyagents_harness::model::{ModelRequest, ModelResponse, PromptSegment, SegmentRole};
+use tinyinference::model::{ModelRequest, ModelResponse, PromptSegment, SegmentRole};
use tinyagents_harness::no_progress::{
NoProgress, NoProgressTracker, SuccessfulRepeat, SuccessfulRepeatTracker, ToolAttempt,
};
diff --git a/src/openhuman/agent/tinyagents/middleware_tests.rs b/src/openhuman/agent/tinyagents/middleware_tests.rs
index 3f1ecc928d..e48481b426 100644
--- a/src/openhuman/agent/tinyagents/middleware_tests.rs
+++ b/src/openhuman/agent/tinyagents/middleware_tests.rs
@@ -1,7 +1,7 @@
use super::*;
use serde_json::json;
use tinyagents_harness::context::{RunConfig, RunContext};
-use tinyagents_harness::model::ModelRequest;
+use tinyinference::model::ModelRequest;
use tinyagents_harness::no_progress::{
DEFAULT_REPEAT_CALL_THRESHOLD, DEFAULT_REPEAT_OUTPUT_THRESHOLD,
};
diff --git a/src/openhuman/agent/tinyagents/mod_part_01.rs b/src/openhuman/agent/tinyagents/mod_part_01.rs
index f8904fd678..2a01e7112f 100644
--- a/src/openhuman/agent/tinyagents/mod_part_01.rs
+++ b/src/openhuman/agent/tinyagents/mod_part_01.rs
@@ -16,7 +16,7 @@ use tinyagents_harness::middleware::{
BudgetLimits, BudgetMiddleware, ContextCompressionMiddleware, PromptCacheGuardMiddleware,
ToolPolicyMiddleware as TaToolPolicyMiddleware,
};
-use tinyagents_harness::model::CapabilitySet;
+use tinyinference::model::CapabilitySet;
use tinyagents_harness::retry::RetryPolicy;
use tinyagents_harness::runtime::{AgentHarness, InvalidArgsPolicy, RunPolicy, UnknownToolPolicy};
use tinyagents_harness::steering::SteeringHandle;
diff --git a/src/openhuman/agent/tinyagents/mod_part_03.rs b/src/openhuman/agent/tinyagents/mod_part_03.rs
index f7c064162a..bc107ab7f9 100644
--- a/src/openhuman/agent/tinyagents/mod_part_03.rs
+++ b/src/openhuman/agent/tinyagents/mod_part_03.rs
@@ -16,7 +16,7 @@ fn tinyagents_depth_error(
}
}
-/// The per-turn crate [`ChatModel`](tinyagents_harness::model::ChatModel) set,
+/// The per-turn crate [`ChatModel`](tinyinference::model::ChatModel) set,
/// built once from an openhuman [`Provider`] by [`build_turn_models`] — the
/// single place a turn's `native model adapters are constructed (issue #4249, Phase 5).
///
@@ -251,7 +251,7 @@ impl TurnModelSource {
/// does not expose (common for deterministic scripted tests).
pub(crate) fn from_model_with_profile(
model: TurnChatModel,
- profile: tinyagents_harness::model::ModelProfile,
+ profile: tinyinference::model::ModelProfile,
) -> Self {
Self::from_model(Arc::new(ProfileOverrideModel::new(model, profile)))
}
@@ -429,7 +429,7 @@ impl TurnModelSource {
Err(anyhow::anyhow!("turn model source is missing a model"))
}
- /// Build a standalone summarizer [`ChatModel`](tinyagents_harness::model::ChatModel)
+ /// Build a standalone summarizer [`ChatModel`](tinyinference::model::ChatModel)
/// over this source's provider — a fresh adapter (own error slot) for one-off
/// summary calls outside the main turn (e.g. the sub-agent cap-hit checkpoint),
/// so the caller can `invoke` without naming the `Provider` trait. The output
@@ -438,7 +438,7 @@ impl TurnModelSource {
&self,
model: &str,
temperature: f64,
- ) -> anyhow::Result<Arc<dyn tinyagents_harness::model::ChatModel<()>>> {
+ ) -> anyhow::Result<Arc<dyn tinyinference::model::ChatModel<()>>> {
if let Some(direct) = &self.direct_model {
let profile = direct.profile().cloned().unwrap_or_default();
return Ok(Arc::new(
diff --git a/src/openhuman/agent/tinyagents/model.rs b/src/openhuman/agent/tinyagents/model.rs
index 7436472758..1f9f3b8846 100644
--- a/src/openhuman/agent/tinyagents/model.rs
+++ b/src/openhuman/agent/tinyagents/model.rs
@@ -4,7 +4,7 @@ use std::sync::{Arc, Mutex};
use async_trait::async_trait;
use tinyagents_harness::message::{AssistantMessage, ContentBlock, MessageDelta};
-use tinyagents_harness::model::{
+use tinyinference::model::{
ChatModel, ModelProfile, ModelRequest, ModelResponse, ModelStream, ModelStreamItem,
};
use tinyagents_harness::tool::{ToolCall as TaToolCall, ToolDelta};
diff --git a/src/openhuman/agent/tinyagents/routes.rs b/src/openhuman/agent/tinyagents/routes.rs
index e3c4f58c2b..88b55c221a 100644
--- a/src/openhuman/agent/tinyagents/routes.rs
+++ b/src/openhuman/agent/tinyagents/routes.rs
@@ -6,7 +6,7 @@ use async_trait::async_trait;
use tinyagents_harness::context::RunContext;
use tinyagents_harness::events::AgentEvent;
use tinyagents_harness::middleware::{MiddlewareModelOutcome, ModelHandler, ModelMiddleware};
-use tinyagents_harness::model::{CapabilitySet, ModelRequest};
+use tinyinference::model::{CapabilitySet, ModelRequest};
use tinyagents_harness::retry::FallbackPolicy;
use tinyagents_registry::{ModelRouter, WorkloadRoute};
diff --git a/src/openhuman/agent/tinyagents/stop_hooks.rs b/src/openhuman/agent/tinyagents/stop_hooks.rs
index 027438f892..fd26ccbc05 100644
--- a/src/openhuman/agent/tinyagents/stop_hooks.rs
+++ b/src/openhuman/agent/tinyagents/stop_hooks.rs
@@ -27,7 +27,7 @@ use std::sync::{Arc, Mutex};
use async_trait::async_trait;
use tinyagents_harness::context::RunContext;
use tinyagents_harness::middleware::Middleware;
-use tinyagents_harness::model::ModelResponse;
+use tinyinference::model::ModelResponse;
use tinyagents_harness::steering::{SteeringCommand, SteeringHandle};
use crate::openhuman::agent::cost::TurnCost;
diff --git a/src/openhuman/agent/tinyagents/summarize.rs b/src/openhuman/agent/tinyagents/summarize.rs
index 1ffd227088..54127d983a 100644
--- a/src/openhuman/agent/tinyagents/summarize.rs
+++ b/src/openhuman/agent/tinyagents/summarize.rs
@@ -34,7 +34,7 @@ use tinyagents_harness::summarization::{
};
use tinyagents_harness::message::Message as HarnessMessage;
-use tinyagents_harness::model::{ChatModel, ModelRequest};
+use tinyinference::model::{ChatModel, ModelRequest};
/// Fraction of the model's context window at which summarization fires.
///
diff --git a/src/openhuman/agent/tinyagents/tinyagents_tests.rs b/src/openhuman/agent/tinyagents/tinyagents_tests.rs
index 867ad15490..e1261d870d 100644
--- a/src/openhuman/agent/tinyagents/tinyagents_tests.rs
+++ b/src/openhuman/agent/tinyagents/tinyagents_tests.rs
@@ -72,7 +72,7 @@ fn crate_native_text_mode_disables_native_tools_on_workload_fallbacks() {
#[test]
fn direct_model_turn_source_builds_without_provider_adapter() {
- let model: Arc<dyn tinyagents_harness::model::ChatModel<()>> =
+ let model: Arc<dyn tinyinference::model::ChatModel<()>> =
Arc::new(tinyagents_harness::testkit::ScriptedModel::replies(vec![
"done",
]));
diff --git a/src/openhuman/agent/tools/delegate.rs b/src/openhuman/agent/tools/delegate.rs
index 445a96811c..eb5b065da8 100644
--- a/src/openhuman/agent/tools/delegate.rs
+++ b/src/openhuman/agent/tools/delegate.rs
@@ -12,7 +12,7 @@ use std::collections::HashMap;
use std::sync::Arc;
use std::time::Duration;
use tinyagents_harness::message::Message;
-use tinyagents_harness::model::{ChatModel, ModelRequest};
+use tinyinference::model::{ChatModel, ModelRequest};
/// Tool that delegates a subtask to a named agent with a different
/// provider/model configuration. Enables multi-agent workflows where
diff --git a/src/openhuman/agent/triage/evaluator_tests.rs b/src/openhuman/agent/triage/evaluator_tests.rs
index 976b88acab..2a5acd80c7 100644
--- a/src/openhuman/agent/triage/evaluator_tests.rs
+++ b/src/openhuman/agent/triage/evaluator_tests.rs
@@ -25,7 +25,7 @@ fn arm_error_label(err: &ArmError) -> &'static str {
// `provider_name` we inspect to disambiguate.
fn unused_model_source() -> crate::openhuman::agent::tinyagents::TurnModelSource {
- let model: StdArc<dyn tinyagents_harness::model::ChatModel<()>> =
+ let model: StdArc<dyn tinyinference::model::ChatModel<()>> =
StdArc::new(tinyagents_harness::testkit::ScriptedModel::new(Vec::new()));
crate::openhuman::agent::tinyagents::TurnModelSource::from_model(model)
}
diff --git a/src/openhuman/channels/context_tests.rs b/src/openhuman/channels/context_tests.rs
index d3c588125d..531618271a 100644
--- a/src/openhuman/channels/context_tests.rs
+++ b/src/openhuman/channels/context_tests.rs
@@ -40,7 +40,7 @@ fn memory_entry(key: &str, content: &str, score: Option<f64>) -> MemoryEntry {
}
fn runtime_context() -> ChannelRuntimeContext {
- let model: Arc<dyn tinyagents_harness::model::ChatModel<()>> =
+ let model: Arc<dyn tinyinference::model::ChatModel<()>> =
Arc::new(tinyagents_harness::testkit::ScriptedModel::replies(vec![
"ok",
]));
diff --git a/src/openhuman/channels/routes_tests.rs b/src/openhuman/channels/routes_tests.rs
index edf715371b..2f43c60004 100644
--- a/src/openhuman/channels/routes_tests.rs
+++ b/src/openhuman/channels/routes_tests.rs
@@ -117,7 +117,7 @@ impl Channel for RecordingChannel {
}
fn runtime_context(workspace_dir: PathBuf) -> ChannelRuntimeContext {
- let model: Arc<dyn tinyagents_harness::model::ChatModel<()>> =
+ let model: Arc<dyn tinyinference::model::ChatModel<()>> =
Arc::new(tinyagents_harness::testkit::ScriptedModel::replies(vec![
"ok",
]));
diff --git a/src/openhuman/channels/runtime/test_support.rs b/src/openhuman/channels/runtime/test_support.rs
index 798dea087f..18af20c199 100644
--- a/src/openhuman/channels/runtime/test_support.rs
+++ b/src/openhuman/channels/runtime/test_support.rs
@@ -24,7 +24,7 @@ use std::collections::HashMap;
use std::sync::atomic::{AtomicUsize, Ordering};
use std::sync::{Arc, Mutex};
use std::time::Duration;
-use tinyagents_harness::model::{ChatModel, ModelRequest, ModelResponse};
+use tinyinference::model::{ChatModel, ModelRequest, ModelResponse};
use tinymemory_api::types::{MemoryCategory, MemoryEntry};
#[derive(Debug, Clone)]
diff --git a/src/openhuman/channels/tests/common.rs b/src/openhuman/channels/tests/common.rs
index e704aef4de..576b61dfdb 100644
--- a/src/openhuman/channels/tests/common.rs
+++ b/src/openhuman/channels/tests/common.rs
@@ -6,7 +6,7 @@ use std::sync::{Arc, Mutex};
use std::time::Duration;
use tempfile::TempDir;
use tinyagents_harness::message::{AssistantMessage, Message};
-use tinyagents_harness::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
+use tinyinference::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
use tinyagents_harness::tool::ToolCall;
fn message_role(message: &Message) -> &'static str {
diff --git a/src/openhuman/channels/tests/discord_integration.rs b/src/openhuman/channels/tests/discord_integration.rs
index 90cb11b71b..d3c5ab6aa3 100644
--- a/src/openhuman/channels/tests/discord_integration.rs
+++ b/src/openhuman/channels/tests/discord_integration.rs
@@ -34,7 +34,7 @@ use crate::openhuman::agent::bus::{mock_agent_run_turn, AgentTurnResponse};
use std::collections::HashMap;
use std::sync::atomic::{AtomicUsize, Ordering};
use std::sync::{Arc, Mutex};
-use tinyagents_harness::model::{ChatModel, ModelRequest, ModelResponse};
+use tinyinference::model::{ChatModel, ModelRequest, ModelResponse};
// ── Test helpers ────────────────────────────────────────────────────────────
diff --git a/src/openhuman/channels/tests/runtime_tool_calls.rs b/src/openhuman/channels/tests/runtime_tool_calls.rs
index 19e8133c4d..453a5dfc60 100644
--- a/src/openhuman/channels/tests/runtime_tool_calls.rs
+++ b/src/openhuman/channels/tests/runtime_tool_calls.rs
@@ -12,7 +12,7 @@ use crate::openhuman::inference::provider;
use std::collections::HashMap;
use std::sync::atomic::Ordering;
use std::sync::{Arc, Mutex};
-use tinyagents_harness::model::ChatModel;
+use tinyinference::model::ChatModel;
#[tokio::test]
async fn process_channel_message_executes_native_tool_calls() {
diff --git a/src/openhuman/channels/tests/telegram_integration.rs b/src/openhuman/channels/tests/telegram_integration.rs
index 5476cc1b05..dc461fb9f3 100644
--- a/src/openhuman/channels/tests/telegram_integration.rs
+++ b/src/openhuman/channels/tests/telegram_integration.rs
@@ -17,7 +17,7 @@ use std::collections::HashMap;
use std::sync::atomic::{AtomicUsize, Ordering};
use std::sync::{Arc, Mutex};
use std::time::Duration;
-use tinyagents_harness::model::{ChatModel, ModelRequest, ModelResponse};
+use tinyinference::model::{ChatModel, ModelRequest, ModelResponse};
// ── Test helpers ────────────────────────────────────────────────────────────
diff --git a/src/openhuman/flows/tinyflows/caps/llm.rs b/src/openhuman/flows/tinyflows/caps/llm.rs
index 79500af989..7d829a6bf5 100644
--- a/src/openhuman/flows/tinyflows/caps/llm.rs
+++ b/src/openhuman/flows/tinyflows/caps/llm.rs
@@ -15,7 +15,7 @@ use tinyflows::error::{EngineError, Result};
use super::*;
use crate::openhuman::config::Config;
use crate::openhuman::inference::provider::{create_chat_model_with_model_id, role_for_model_tier};
-use tinyagents_harness::model::ModelRequest;
+use tinyinference::model::ModelRequest;
/// [`LlmProvider`] adapter over OpenHuman's inference stack
/// (`src/openhuman/inference/provider/`).
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 aa62d0e7b3..050b1e4b21 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
@@ -167,7 +167,7 @@ fn resolve_completion_model_leaves_managed_tier_and_hint_node_models_untouched()
#[test]
fn crate_model_response_preserves_flow_completion_contract() {
use tinyagents_harness::message::{AssistantMessage, ContentBlock};
- use tinyagents_harness::model::ModelResponse;
+ use tinyinference::model::ModelResponse;
use tinyagents_harness::tool::ToolCall;
use tinyagents_harness::usage::Usage;
diff --git a/src/openhuman/flows/tinyflows/caps/prompt.rs b/src/openhuman/flows/tinyflows/caps/prompt.rs
index d2f534ddf5..22dc84576e 100644
--- a/src/openhuman/flows/tinyflows/caps/prompt.rs
+++ b/src/openhuman/flows/tinyflows/caps/prompt.rs
@@ -38,7 +38,7 @@ pub(crate) fn usage_to_json(usage: &Option<UsageInfo>) -> Value {
}
pub(crate) fn model_response_to_completion_value(
- response: &tinyagents_harness::model::ModelResponse,
+ response: &tinyinference::model::ModelResponse,
) -> Value {
json!({
"text": response.text(),
diff --git a/src/openhuman/inference/http/server.rs b/src/openhuman/inference/http/server.rs
index 35e80f41d0..7bd639b488 100644
--- a/src/openhuman/inference/http/server.rs
+++ b/src/openhuman/inference/http/server.rs
@@ -34,7 +34,7 @@ use std::collections::HashSet;
use std::sync::atomic::{AtomicBool, Ordering};
use std::sync::Arc;
use tinyagents_harness::message::Message;
-use tinyagents_harness::model::{ModelRequest, ModelStreamItem};
+use tinyinference::model::{ModelRequest, ModelStreamItem};
use tracing::{debug, warn};
use super::types::{
diff --git a/src/openhuman/inference/local/ops_part_01.rs b/src/openhuman/inference/local/ops_part_01.rs
index f1c3cba51b..4ec617a02b 100644
--- a/src/openhuman/inference/local/ops_part_01.rs
+++ b/src/openhuman/inference/local/ops_part_01.rs
@@ -294,7 +294,7 @@ pub async fn agent_chat_simple(
);
let run = model.invoke(
&(),
- tinyagents_harness::model::ModelRequest::new(vec![
+ tinyinference::model::ModelRequest::new(vec![
tinyagents_harness::message::Message::user(message.to_string()),
])
.with_model(default_model.clone())
diff --git a/src/openhuman/inference/local/service/model_rpc.rs b/src/openhuman/inference/local/service/model_rpc.rs
index 51b909e75b..ed45a7b933 100644
--- a/src/openhuman/inference/local/service/model_rpc.rs
+++ b/src/openhuman/inference/local/service/model_rpc.rs
@@ -11,7 +11,7 @@ use crate::openhuman::inference::local::ollama::{
};
use crate::openhuman::inference::local::provider::{provider_from_config, LocalAiProvider};
use tinyagents_harness::message::Message;
-use tinyagents_harness::model::{ChatModel, ModelRequest};
+use tinyinference::model::{ChatModel, ModelRequest};
use tinyagents_harness::providers::openai::OpenAiModel;
pub(super) struct ModelRpcOutcome {
@@ -126,7 +126,7 @@ pub(super) async fn invoke(
}
fn model_outcome(
- response: tinyagents_harness::model::ModelResponse,
+ response: tinyinference::model::ModelResponse,
allow_empty: bool,
) -> Result<ModelRpcOutcome, String> {
let mut reply = response.text();
diff --git a/src/openhuman/inference/local/service/model_rpc_tests.rs b/src/openhuman/inference/local/service/model_rpc_tests.rs
index 96907564a6..d50ed565bc 100644
--- a/src/openhuman/inference/local/service/model_rpc_tests.rs
+++ b/src/openhuman/inference/local/service/model_rpc_tests.rs
@@ -1,7 +1,7 @@
use super::{local_model, model_outcome, throughput};
use crate::openhuman::config::Config;
use tinyagents_harness::message::{AssistantMessage, ContentBlock};
-use tinyagents_harness::model::ModelResponse;
+use tinyinference::model::ModelResponse;
use tinyagents_harness::usage::Usage;
#[test]
diff --git a/src/openhuman/inference/model_context.rs b/src/openhuman/inference/model_context.rs
index dc7d0f6289..4539953919 100644
--- a/src/openhuman/inference/model_context.rs
+++ b/src/openhuman/inference/model_context.rs
@@ -74,7 +74,7 @@ pub fn context_window_for_model(model: &str) -> Option<u64> {
return Some(u64::from(price.context_window));
}
- if let Some(window) = tinyagents_harness::model::context_window_for_model_id(normalized) {
+ if let Some(window) = tinyinference::model::context_window_for_model_id(normalized) {
tracing::debug!(
model = normalized,
context_window = window,
diff --git a/src/openhuman/inference/ops.rs b/src/openhuman/inference/ops.rs
index b14640f2ac..dafc3f1a03 100644
--- a/src/openhuman/inference/ops.rs
+++ b/src/openhuman/inference/ops.rs
@@ -10,7 +10,7 @@ use crate::openhuman::inference::{LocalAiEmbeddingResult, LocalAiStatus};
use crate::rpc::RpcOutcome;
use serde_json::{json, Value};
use tinyagents_harness::message::Message;
-use tinyagents_harness::model::ModelRequest;
+use tinyinference::model::ModelRequest;
use tracing::{debug, error, warn};
const LOG_PREFIX: &str = "[inference::ops]";
diff --git a/src/openhuman/inference/provider/claude_agent_sdk/subprocess.rs b/src/openhuman/inference/provider/claude_agent_sdk/subprocess.rs
index 51bf161bbe..b9ddbe00e6 100644
--- a/src/openhuman/inference/provider/claude_agent_sdk/subprocess.rs
+++ b/src/openhuman/inference/provider/claude_agent_sdk/subprocess.rs
@@ -4,7 +4,7 @@ use anyhow::Context;
use async_trait::async_trait;
use tinyagents_harness::error::TinyAgentsError;
use tinyagents_harness::message::Message;
-use tinyagents_harness::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
+use tinyinference::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
use tinyagents_harness::tool::{coalesce_prompt_tool_results, with_prompt_tool_instructions};
use tokio::io::{AsyncBufReadExt, AsyncWriteExt, BufReader};
use tokio::process::Command;
diff --git a/src/openhuman/inference/provider/claude_code/mod.rs b/src/openhuman/inference/provider/claude_code/mod.rs
index 9da5c7fed7..39e8d0f249 100644
--- a/src/openhuman/inference/provider/claude_code/mod.rs
+++ b/src/openhuman/inference/provider/claude_code/mod.rs
@@ -24,7 +24,7 @@ use std::sync::Arc;
use async_trait::async_trait;
use tinyagents_harness::error::TinyAgentsError;
-use tinyagents_harness::model::{
+use tinyinference::model::{
ChatModel, ModelProfile, ModelRequest, ModelResponse, ModelStream, ModelStreamItem,
};
use tokio::sync::Semaphore;
diff --git a/src/openhuman/inference/provider/crate_openai.rs b/src/openhuman/inference/provider/crate_openai.rs
index 70350a9e62..9c4dd6b57d 100644
--- a/src/openhuman/inference/provider/crate_openai.rs
+++ b/src/openhuman/inference/provider/crate_openai.rs
@@ -20,7 +20,7 @@
use std::sync::Arc;
-use tinyagents_harness::model::ChatModel;
+use tinyinference::model::ChatModel;
use tinyagents_harness::providers::openai::{AuthStyle as CrateAuthStyle, OpenAiModel};
use super::auth::AuthStyle as HostAuthStyle;
diff --git a/src/openhuman/inference/provider/factory_part_01.rs b/src/openhuman/inference/provider/factory_part_01.rs
index cf8e32ac30..68570fbd93 100644
--- a/src/openhuman/inference/provider/factory_part_01.rs
+++ b/src/openhuman/inference/provider/factory_part_01.rs
@@ -10,7 +10,7 @@ use crate::openhuman::inference::provider::openhuman_backend_model::OpenHumanBac
use crate::openhuman::inference::provider::ProviderRuntimeOptions;
use crate::openhuman::security::credentials::AuthService;
use std::sync::Arc;
-use tinyagents_harness::model::{ChatModel, ModelRequest, ModelResponse, ModelStream};
+use tinyinference::model::{ChatModel, ModelRequest, ModelResponse, ModelStream};
/// Sentinel meaning "use the OpenHuman backend session JWT".
pub const PROVIDER_OPENHUMAN: &str = "openhuman";
diff --git a/src/openhuman/inference/provider/factory_part_02.rs b/src/openhuman/inference/provider/factory_part_02.rs
index 8e6c97ebaf..4fb464949a 100644
--- a/src/openhuman/inference/provider/factory_part_02.rs
+++ b/src/openhuman/inference/provider/factory_part_02.rs
@@ -213,7 +213,7 @@ struct DefaultTemperatureChatModel {
#[async_trait::async_trait]
impl ChatModel<()> for DefaultTemperatureChatModel {
- fn profile(&self) -> Option<&tinyagents_harness::model::ModelProfile> {
+ fn profile(&self) -> Option<&tinyinference::model::ModelProfile> {
self.inner.profile()
}
@@ -563,11 +563,11 @@ pub(crate) fn make_openhuman_backend_model(
role: &str,
config: &Config,
) -> anyhow::Result<(
- std::sync::Arc<dyn tinyagents_harness::model::ChatModel<()>>,
+ std::sync::Arc<dyn tinyinference::model::ChatModel<()>>,
String,
)> {
let (model_client, model) = resolve_managed_backend(role, config)?;
- let chat: std::sync::Arc<dyn tinyagents_harness::model::ChatModel<()>> =
+ let chat: std::sync::Arc<dyn tinyinference::model::ChatModel<()>> =
std::sync::Arc::new(model_client);
Ok((chat, model))
}
diff --git a/src/openhuman/inference/provider/factory_test_provider_override_tests.rs b/src/openhuman/inference/provider/factory_test_provider_override_tests.rs
index 278c231313..68964b5e9d 100644
--- a/src/openhuman/inference/provider/factory_test_provider_override_tests.rs
+++ b/src/openhuman/inference/provider/factory_test_provider_override_tests.rs
@@ -1,5 +1,5 @@
use std::sync::{Arc, Mutex, OnceLock};
-use tinyagents_harness::model::ChatModel;
+use tinyinference::model::ChatModel;
static OVERRIDE: OnceLock<Mutex<Option<Arc<dyn ChatModel<()>>>>> = OnceLock::new();
fn cell() -> &'static Mutex<Option<Arc<dyn ChatModel<()>>>> {
diff --git a/src/openhuman/inference/provider/factory_tests_part_02_tests.rs b/src/openhuman/inference/provider/factory_tests_part_02_tests.rs
index fd8ea19c92..e0947d2f94 100644
--- a/src/openhuman/inference/provider/factory_tests_part_02_tests.rs
+++ b/src/openhuman/inference/provider/factory_tests_part_02_tests.rs
@@ -75,7 +75,7 @@ fn enforce_local_only_inference_errors_on_external_when_local_only() {
async fn create_chat_model_uses_native_test_override() {
use std::sync::Arc;
use tinyagents_harness::message::Message;
- use tinyagents_harness::model::ModelRequest;
+ use tinyinference::model::ModelRequest;
use tinyagents_harness::testkit::ScriptedModel;
let _guard = crate::openhuman::inference::inference_test_guard();
@@ -100,7 +100,7 @@ async fn one_shot_chat_models_preserve_factory_temperature_as_request_default()
use async_trait::async_trait;
use std::sync::{Arc, Mutex};
use tinyagents_harness::message::Message;
- use tinyagents_harness::model::{ModelRequest, ModelResponse};
+ use tinyinference::model::{ModelRequest, ModelResponse};
struct TemperatureProbe {
seen: Arc<Mutex<Vec<Option<f64>>>>,
diff --git a/src/openhuman/inference/provider/openhuman_backend_model.rs b/src/openhuman/inference/provider/openhuman_backend_model.rs
index 822471882a..3d40c7b4f5 100644
--- a/src/openhuman/inference/provider/openhuman_backend_model.rs
+++ b/src/openhuman/inference/provider/openhuman_backend_model.rs
@@ -29,7 +29,7 @@ use std::path::PathBuf;
use std::time::Duration;
use tinyagents_harness::message::Message;
-use tinyagents_harness::model::{
+use tinyinference::model::{
ChatModel, Modalities, ModelProfile, ModelRequest, ModelResponse, ModelStream, ProviderError,
};
use tinyagents_harness::providers::openai::OpenAiModel;
diff --git a/src/openhuman/memory/host_impls.rs b/src/openhuman/memory/host_impls.rs
index 99bfce2eee..c65cfde540 100644
--- a/src/openhuman/memory/host_impls.rs
+++ b/src/openhuman/memory/host_impls.rs
@@ -28,7 +28,7 @@
use std::sync::Arc;
use async_trait::async_trait;
-use tinyagents_harness::model::{ChatModel, ModelResponse};
+use tinyinference::model::{ChatModel, ModelResponse};
use tinymemory_api::host::{EmbeddingHost, EmbeddingProvider, ErrorReporter, UsageInfo};
use tinymemory_core::chat_host::ChatHost;
use tinymemory_core::composio_host::{ComposioConnection, ComposioExecuteResponse, ComposioHost};
diff --git a/src/openhuman/memory/tree/tree_runtime/ops.rs b/src/openhuman/memory/tree/tree_runtime/ops.rs
index dc433ab2d9..a174d15fed 100644
--- a/src/openhuman/memory/tree/tree_runtime/ops.rs
+++ b/src/openhuman/memory/tree/tree_runtime/ops.rs
@@ -175,7 +175,7 @@ pub(crate) fn create_provider(
config: &Config,
) -> Result<
(
- std::sync::Arc<dyn tinyagents_harness::model::ChatModel<()>>,
+ std::sync::Arc<dyn tinyinference::model::ChatModel<()>>,
String,
),
String,
diff --git a/src/openhuman/modules/memory_host.rs b/src/openhuman/modules/memory_host.rs
index e6d131207e..80b06e1a3e 100644
--- a/src/openhuman/modules/memory_host.rs
+++ b/src/openhuman/modules/memory_host.rs
@@ -35,7 +35,7 @@
use crate::core::bus::BUS;
use crate::openhuman::config::Config;
use std::sync::Arc;
-use tinyagents_harness::model::{ModelRequest, ModelResponse};
+use tinyinference::model::{ModelRequest, ModelResponse};
use tinybus::ObjectPath;
use tinyconnectors_bus::{ComposioConnection, ComposioExecuteResponse};
use tinymemory_api::host::{MemoryEvent, SpacyResponse};
diff --git a/src/openhuman/skills/e2e_plumbing_tests.rs b/src/openhuman/skills/e2e_plumbing_tests.rs
index 1de295bc7e..105cf2551d 100644
--- a/src/openhuman/skills/e2e_plumbing_tests.rs
+++ b/src/openhuman/skills/e2e_plumbing_tests.rs
@@ -40,7 +40,7 @@ use crate::openhuman::skills::run_log;
use crate::openhuman::skills::runtime::await_run_outcome;
use crate::openhuman::tools::traits::Tool;
use tinyagents_harness::message::AssistantMessage;
-use tinyagents_harness::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
+use tinyinference::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
use tinyagents_harness::tool::ToolCall;
// ── Mock LLM ─────────────────────────────────────────────────────────────
diff --git a/src/openhuman/skills/e2e_run_tests.rs b/src/openhuman/skills/e2e_run_tests.rs
index 2a854113a6..b606006cb8 100644
--- a/src/openhuman/skills/e2e_run_tests.rs
+++ b/src/openhuman/skills/e2e_run_tests.rs
@@ -42,7 +42,7 @@ use crate::openhuman::threads::todos::ops as board_ops;
use crate::openhuman::threads::todos::ops::{BoardLocation, CardPatch};
use crate::openhuman::tools::traits::Tool;
use tinyagents_harness::message::AssistantMessage;
-use tinyagents_harness::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
+use tinyinference::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
use tinyagents_harness::tool::ToolCall;
/// Serialize this module's tests (each touches process-global state).
diff --git a/src/openhuman/threads/title.rs b/src/openhuman/threads/title.rs
index 5172349f05..9db0a4af60 100644
--- a/src/openhuman/threads/title.rs
+++ b/src/openhuman/threads/title.rs
@@ -6,7 +6,7 @@
use std::hash::{Hash, Hasher};
use tinyagents_harness::message::Message;
-use tinyagents_harness::model::ModelRequest;
+use tinyinference::model::ModelRequest;
pub const THREAD_TITLE_LOG_PREFIX: &str = "[threads:title]";
pub const THREAD_TITLE_SYSTEM_PROMPT: &str = "You name chat threads from the first user message and the assistant reply. Return only the name: at most 3 words, like Fix session handoff or Gmail OAuth retry. Lead with the verb or the subject and drop filler words. No quotes. No markdown. No punctuation.";