Skip to content

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

refactor: consume focused inference crates

Steven Enamakela1f7ffd91642
diff --git a/Cargo.lock b/Cargo.lock
index 869e399aa7..88f3f28ea8 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4181,6 +4181,8 @@ dependencies = [
"tinyhosts",
"tinyhumans-sdk",
"tinyinference-core",
+ "tinyinference-embeddings",
+ "tinyinference-llm",
"tinyinference-local",
"tinyjuice-bus",
"tinymcp",
@@ -6451,7 +6453,7 @@ dependencies = [
"tinyagents-harness",
"tinyagents-language",
"tinyagents-tracing",
- "tinyinference-core",
+ "tinyinference-llm",
"tokio",
]
@@ -6477,7 +6479,8 @@ dependencies = [
"tempfile",
"thiserror 2.0.20",
"tinyagents-tracing",
- "tinyinference-core",
+ "tinyinference-embeddings",
+ "tinyinference-llm",
"tinytools",
"tinytools-agent",
"tokio",
@@ -6503,7 +6506,7 @@ dependencies = [
"tinyagents-graph",
"tinyagents-harness",
"tinyagents-language",
- "tinyinference-core",
+ "tinyinference-llm",
]
[[package]]
@@ -6723,16 +6726,38 @@ name = "tinyinference-core"
version = "0.2.1"
dependencies = [
"anyhow",
+ "httpdate",
+ "url",
+]
+
+[[package]]
+name = "tinyinference-embeddings"
+version = "0.2.1"
+dependencies = [
+ "async-trait",
+ "reqwest",
+ "serde",
+ "serde_json",
+ "thiserror 2.0.20",
+ "tinyinference-core",
+ "tokio",
+ "tracing",
+ "url",
+]
+
+[[package]]
+name = "tinyinference-llm"
+version = "0.2.1"
+dependencies = [
"async-trait",
"bytes",
"futures",
- "hex",
- "httpdate",
"reqwest",
"serde",
"serde_json",
"sha2 0.11.0",
"thiserror 2.0.20",
+ "tinyinference-core",
"tokio",
"tracing",
"url",
@@ -6755,6 +6780,7 @@ dependencies = [
"tar",
"thiserror 2.0.20",
"tinyinference-core",
+ "tinyinference-llm",
"tokio",
"tracing",
"url",
diff --git a/Cargo.toml b/Cargo.toml
index 5d1c91122e..5d772abb19 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -41,11 +41,15 @@ tinymemory-api = { path = "vendor/tinymemory/crates/tinymemory-api" }
[patch."https://github.com/tinyhumansai/tinyinference"]
tinyinference-core = { path = "vendor/tinyagents/vendor/tinyinference/crates/tinyinference-core" }
+tinyinference-embeddings = { path = "vendor/tinyagents/vendor/tinyinference/crates/tinyinference-embeddings" }
+tinyinference-llm = { path = "vendor/tinyagents/vendor/tinyinference/crates/tinyinference-llm" }
tinyinference-local = { path = "vendor/tinyagents/vendor/tinyinference/crates/tinyinference-local" }
[patch.crates-io]
motosan-ai-oauth = { path = "vendor/motosan-ai-oauth" }
tinyinference-core = { path = "vendor/tinyagents/vendor/tinyinference/crates/tinyinference-core" }
+tinyinference-embeddings = { path = "vendor/tinyagents/vendor/tinyinference/crates/tinyinference-embeddings" }
+tinyinference-llm = { path = "vendor/tinyagents/vendor/tinyinference/crates/tinyinference-llm" }
tinyinference-local = { path = "vendor/tinyagents/vendor/tinyinference/crates/tinyinference-local" }
tinyflows = { path = "vendor/tinyflows/crates/tinyflows" }
tinychannels = { path = "vendor/tinychannels" }
diff --git a/crates/openhuman-app/Cargo.lock b/crates/openhuman-app/Cargo.lock
index df69232081..adfb02c500 100644
--- a/crates/openhuman-app/Cargo.lock
+++ b/crates/openhuman-app/Cargo.lock
@@ -4316,6 +4316,8 @@ dependencies = [
"tinyhosts",
"tinyhumans-sdk",
"tinyinference-core",
+ "tinyinference-embeddings",
+ "tinyinference-llm",
"tinyinference-local",
"tinyjuice-bus",
"tinymcp",
@@ -7010,7 +7012,7 @@ dependencies = [
"tinyagents-harness",
"tinyagents-language",
"tinyagents-tracing",
- "tinyinference-core",
+ "tinyinference-llm",
"tokio",
]
@@ -7036,7 +7038,8 @@ dependencies = [
"tempfile",
"thiserror 2.0.20",
"tinyagents-tracing",
- "tinyinference-core",
+ "tinyinference-embeddings",
+ "tinyinference-llm",
"tinytools",
"tinytools-agent",
"tokio",
@@ -7062,7 +7065,7 @@ dependencies = [
"tinyagents-graph",
"tinyagents-harness",
"tinyagents-language",
- "tinyinference-core",
+ "tinyinference-llm",
]
[[package]]
@@ -7312,16 +7315,38 @@ name = "tinyinference-core"
version = "0.2.1"
dependencies = [
"anyhow",
+ "httpdate",
+ "url",
+]
+
+[[package]]
+name = "tinyinference-embeddings"
+version = "0.2.1"
+dependencies = [
+ "async-trait",
+ "reqwest 0.12.28",
+ "serde",
+ "serde_json",
+ "thiserror 2.0.20",
+ "tinyinference-core",
+ "tokio",
+ "tracing",
+ "url",
+]
+
+[[package]]
+name = "tinyinference-llm"
+version = "0.2.1"
+dependencies = [
"async-trait",
"bytes",
"futures",
- "hex",
- "httpdate",
"reqwest 0.12.28",
"serde",
"serde_json",
"sha2 0.11.0",
"thiserror 2.0.20",
+ "tinyinference-core",
"tokio",
"tracing",
"url",
@@ -7344,6 +7369,7 @@ dependencies = [
"tar",
"thiserror 2.0.20",
"tinyinference-core",
+ "tinyinference-llm",
"tokio",
"tracing",
"url",
diff --git a/crates/openhuman-app/Cargo.toml b/crates/openhuman-app/Cargo.toml
index ca4a28f2b7..f87cc93e06 100644
--- a/crates/openhuman-app/Cargo.toml
+++ b/crates/openhuman-app/Cargo.toml
@@ -321,6 +321,8 @@ tinymemory-api = { path = "../../vendor/tinymemory/crates/tinymemory-api" }
# Crates in this world name tinyinference by git rev; without this the shell
# world resolves TWO copies of the same types. Mirrors the root Cargo.toml.
tinyinference-core = { path = "../../vendor/tinyagents/vendor/tinyinference/crates/tinyinference-core" }
+tinyinference-embeddings = { path = "../../vendor/tinyagents/vendor/tinyinference/crates/tinyinference-embeddings" }
+tinyinference-llm = { path = "../../vendor/tinyagents/vendor/tinyinference/crates/tinyinference-llm" }
tinyinference-local = { path = "../../vendor/tinyagents/vendor/tinyinference/crates/tinyinference-local" }
[patch.crates-io]
@@ -335,9 +337,12 @@ motosan-ai-oauth = { path = "../../vendor/motosan-ai-oauth" }
# match the one the core crate names, or cargo resolves two distinct packages
# and the shell's `dyn Tool` stops being the core's. See the core manifest.
tinytools = { path = "../../vendor/tinyagents/vendor/tinytools/crates/tinytools" }
-# tinymemory-core declares `tinyinference-core = "0.2"` (crates-io-shaped, unpublished),
-# so this world must patch it exactly as the root manifest does.
+# TinyMemory declares the focused TinyInference crates by version
+# (crates-io-shaped, unpublished), so this world must patch them exactly as
+# the root manifest does.
tinyinference-core = { path = "../../vendor/tinyagents/vendor/tinyinference/crates/tinyinference-core" }
+tinyinference-embeddings = { path = "../../vendor/tinyagents/vendor/tinyinference/crates/tinyinference-embeddings" }
+tinyinference-llm = { path = "../../vendor/tinyagents/vendor/tinyinference/crates/tinyinference-llm" }
tinyinference-local = { path = "../../vendor/tinyagents/vendor/tinyinference/crates/tinyinference-local" }
# TinyFlows and TinyChannels are vendored beside TinyAgents so integration
# work can test crate changes against OpenHuman before publishing.
diff --git a/crates/openhuman-core/Cargo.toml b/crates/openhuman-core/Cargo.toml
index 23d22c4717..7f5f5d8dcb 100644
--- a/crates/openhuman-core/Cargo.toml
+++ b/crates/openhuman-core/Cargo.toml
@@ -416,6 +416,8 @@ tinyagents-language = { path = "../../vendor/tinyagents/crates/tinyagents-langua
tinyagents-registry = { path = "../../vendor/tinyagents/crates/tinyagents-registry" }
tinyagents-session = { path = "../../vendor/tinyagents/crates/tinyagents-session" }
tinyinference-core = { path = "../../vendor/tinyagents/vendor/tinyinference/crates/tinyinference-core" }
+tinyinference-embeddings = { path = "../../vendor/tinyagents/vendor/tinyinference/crates/tinyinference-embeddings" }
+tinyinference-llm = { path = "../../vendor/tinyagents/vendor/tinyinference/crates/tinyinference-llm" }
tinyinference-local = { path = "../../vendor/tinyagents/vendor/tinyinference/crates/tinyinference-local" }
# TinyTools — the tool vocabulary: the `Tool` trait, `ToolResult`, and the
# permission / scope / timeout classifications this host enforces around a call.
diff --git a/crates/openhuman-core/src/agent/agent_tests.rs b/crates/openhuman-core/src/agent/agent_tests.rs
index 55201350e5..aaef9bf22c 100644
--- a/crates/openhuman-core/src/agent/agent_tests.rs
+++ b/crates/openhuman-core/src/agent/agent_tests.rs
@@ -36,7 +36,7 @@ use crate::tools::{Tool, ToolResult};
use anyhow::Result;
use async_trait::async_trait;
use std::sync::{Arc, Mutex};
-use tinyinference_core::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
+use tinyinference_llm::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
// ═══════════════════════════════════════════════════════════════════════════
// Test Helpers — Mock Provider, Mock Tool, Mock Memory
@@ -73,7 +73,7 @@ impl ChatModel<()> for ScriptedProvider {
&self,
_state: &(),
request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
+ ) -> tinyinference_llm::Result<ModelResponse> {
let mut guard = self.responses.lock().unwrap();
let response = if guard.is_empty() {
ChatResponse {
@@ -98,8 +98,8 @@ impl ChatModel<()> for FailingProvider {
&self,
_state: &(),
_request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
- Err(tinyinference_core::Error::Model(
+ ) -> tinyinference_llm::Result<ModelResponse> {
+ Err(tinyinference_llm::Error::Model(
"provider error".to_string(),
))
}
diff --git a/crates/openhuman-core/src/agent/bus_tests.rs b/crates/openhuman-core/src/agent/bus_tests.rs
index 5bd9fc76a2..1cca38295a 100644
--- a/crates/openhuman-core/src/agent/bus_tests.rs
+++ b/crates/openhuman-core/src/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 tinyinference_core::model::ChatModel<()>> =
+ let model: Arc<dyn tinyinference_llm::model::ChatModel<()>> =
Arc::new(tinyagents_harness::testkit::ScriptedModel::new(Vec::new()));
AgentTurnRequest {
turn_model_source: crate::agent::tinyagents::TurnModelSource::from_model(model),
diff --git a/crates/openhuman-core/src/agent/harness/graph_tests.rs b/crates/openhuman-core/src/agent/harness/graph_tests.rs
index 0d796b67f0..5cc5b00473 100644
--- a/crates/openhuman-core/src/agent/harness/graph_tests.rs
+++ b/crates/openhuman-core/src/agent/harness/graph_tests.rs
@@ -2,9 +2,9 @@ use super::*;
use crate::tools::ToolResult;
use async_trait::async_trait;
use tinyagents_harness::testkit::ScriptedModel;
-use tinyinference_core::message::AssistantMessage;
-use tinyinference_core::model::{ChatModel, ModelProfile, ModelResponse};
-use tinyinference_core::tool::ToolCall;
+use tinyinference_llm::message::AssistantMessage;
+use tinyinference_llm::model::{ChatModel, ModelProfile, ModelResponse};
+use tinyinference_llm::tool::ToolCall;
struct PingTool;
#[async_trait]
diff --git a/crates/openhuman-core/src/agent/harness/session/builder/builder_tests_tool_spec_views_tests.rs b/crates/openhuman-core/src/agent/harness/session/builder/builder_tests_tool_spec_views_tests.rs
index fb87b6583b..04bc91ab2e 100644
--- a/crates/openhuman-core/src/agent/harness/session/builder/builder_tests_tool_spec_views_tests.rs
+++ b/crates/openhuman-core/src/agent/harness/session/builder/builder_tests_tool_spec_views_tests.rs
@@ -124,7 +124,7 @@ fn dedup_keeps_the_original_allocation_of_the_winning_spec() {
/// spec views must be empty rather than desynchronised.
#[test]
fn spec_views_stay_consistent_for_a_tool_less_agent() {
- let model: std::sync::Arc<dyn tinyinference_core::model::ChatModel<()>> =
+ let model: std::sync::Arc<dyn tinyinference_llm::model::ChatModel<()>> =
std::sync::Arc::new(tinyagents_harness::testkit::ScriptedModel::new(Vec::new()));
let agent = crate::agent::AgentBuilder::new()
.chat_model(model)
diff --git a/crates/openhuman-core/src/agent/harness/session/builder/factory.rs b/crates/openhuman-core/src/agent/harness/session/builder/factory.rs
index bdd64e961d..7e2d972081 100644
--- a/crates/openhuman-core/src/agent/harness/session/builder/factory.rs
+++ b/crates/openhuman-core/src/agent/harness/session/builder/factory.rs
@@ -657,7 +657,7 @@ impl Agent {
let full_config = Arc::clone(&base_config);
// For cloud reflection, wrap the provider in an Arc.
// For local, no provider needed.
- let reflection_provider: Option<Arc<dyn tinyinference_core::model::ChatModel<()>>> =
+ let reflection_provider: Option<Arc<dyn tinyinference_llm::model::ChatModel<()>>> =
if config.learning.reflection_source == crate::config::ReflectionSource::Cloud {
let (model, resolved_model) =
provider::create_chat_model_with_model_id("reasoning", config, 0.3)?;
diff --git a/crates/openhuman-core/src/agent/harness/session/builder/setters.rs b/crates/openhuman-core/src/agent/harness/session/builder/setters.rs
index ea3d6e60b9..6662b0c87f 100644
--- a/crates/openhuman-core/src/agent/harness/session/builder/setters.rs
+++ b/crates/openhuman-core/src/agent/harness/session/builder/setters.rs
@@ -58,7 +58,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 tinyinference_core::model::ChatModel<()>>) -> Self {
+ pub fn chat_model(mut self, model: Arc<dyn tinyinference_llm::model::ChatModel<()>>) -> Self {
self.turn_model_source = Some(crate::agent::tinyagents::TurnModelSource::from_model(model));
self
}
diff --git a/crates/openhuman-core/src/agent/harness/session/runtime_tests.rs b/crates/openhuman-core/src/agent/harness/session/runtime_tests.rs
index fc9935f3cb..69b41174de 100644
--- a/crates/openhuman-core/src/agent/harness/session/runtime_tests.rs
+++ b/crates/openhuman-core/src/agent/harness/session/runtime_tests.rs
@@ -10,7 +10,7 @@ use anyhow::anyhow;
use async_trait::async_trait;
use parking_lot::Mutex;
use std::sync::Arc;
-use tinyinference_core::model::{
+use tinyinference_llm::model::{
ChatModel, ModelRequest, ModelResponse, ModelStream, ModelStreamItem,
};
use tokio::sync::Mutex as AsyncMutex;
@@ -26,7 +26,7 @@ impl ChatModel<()> for StaticModel {
&self,
_state: &(),
request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
+ ) -> tinyinference_llm::Result<ModelResponse> {
let response = self.response.lock().take().unwrap_or_else(|| {
Ok(ChatResponse {
text: Some("done".into()),
@@ -41,7 +41,7 @@ impl ChatModel<()> for StaticModel {
&response, &request,
),
),
- Err(error) => Err(tinyinference_core::Error::Model(error.to_string())),
+ Err(error) => Err(tinyinference_llm::Error::Model(error.to_string())),
}
}
@@ -49,7 +49,7 @@ impl ChatModel<()> for StaticModel {
&self,
state: &(),
request: ModelRequest,
- ) -> tinyinference_core::Result<ModelStream> {
+ ) -> tinyinference_llm::Result<ModelStream> {
let response = self.invoke(state, request).await?;
Ok(Box::pin(futures::stream::iter(vec![
ModelStreamItem::Started,
@@ -97,8 +97,8 @@ impl ChatModel<()> for PersistentErrModel {
&self,
_state: &(),
_request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
- Err(tinyinference_core::Error::Model(
+ ) -> tinyinference_llm::Result<ModelResponse> {
+ Err(tinyinference_llm::Error::Model(
self.build_error().to_string(),
))
}
diff --git a/crates/openhuman-core/src/agent/harness/session/session_tests.rs b/crates/openhuman-core/src/agent/harness/session/session_tests.rs
index 5a1ac7c51f..b23b25eeeb 100644
--- a/crates/openhuman-core/src/agent/harness/session/session_tests.rs
+++ b/crates/openhuman-core/src/agent/harness/session/session_tests.rs
@@ -16,8 +16,8 @@ use anyhow::Result;
use async_trait::async_trait;
use parking_lot::Mutex;
use std::sync::Arc;
-use tinyinference_core::message::Message;
-use tinyinference_core::model::{
+use tinyinference_llm::message::Message;
+use tinyinference_llm::model::{
ChatModel, ModelProfile, ModelRequest, ModelResponse, ModelStream, ModelStreamItem,
};
@@ -37,7 +37,7 @@ impl ChatModel<()> for MockProvider {
&self,
_state: &(),
request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
+ ) -> tinyinference_llm::Result<ModelResponse> {
let mut guard = self.responses.lock();
let response = if guard.is_empty() {
ChatResponse {
@@ -56,7 +56,7 @@ impl ChatModel<()> for MockProvider {
&self,
state: &(),
request: ModelRequest,
- ) -> tinyinference_core::Result<ModelStream> {
+ ) -> tinyinference_llm::Result<ModelStream> {
let response = self.invoke(state, request).await?;
Ok(Box::pin(futures::stream::iter(vec![
ModelStreamItem::Started,
@@ -93,7 +93,7 @@ impl ChatModel<()> for RecordingProvider {
&self,
_state: &(),
request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
+ ) -> tinyinference_llm::Result<ModelResponse> {
let system_prompt = request.messages.iter().find_map(|message| match message {
Message::System(_) => Some(message.text()),
_ => None,
@@ -121,7 +121,7 @@ impl ChatModel<()> for RecordingProvider {
&self,
state: &(),
request: ModelRequest,
- ) -> tinyinference_core::Result<ModelStream> {
+ ) -> tinyinference_llm::Result<ModelStream> {
let response = self.invoke(state, request).await?;
Ok(Box::pin(futures::stream::iter(vec![
ModelStreamItem::Started,
diff --git a/crates/openhuman-core/src/agent/harness/session/transcript_history.rs b/crates/openhuman-core/src/agent/harness/session/transcript_history.rs
index 2574ba4d13..156287d297 100644
--- a/crates/openhuman-core/src/agent/harness/session/transcript_history.rs
+++ b/crates/openhuman-core/src/agent/harness/session/transcript_history.rs
@@ -154,7 +154,7 @@ use std::sync::Arc;
use async_trait::async_trait;
use tinyagents_harness::memory::ChatHistory;
use tinyagents_harness::{Result as TaResult, TinyAgentsError};
-use tinyinference_core::message::Message;
+use tinyinference_llm::message::Message;
use crate::agent::message_convert::{history_to_messages, message_to_chat_message};
use crate::agent::messages::ChatMessage;
diff --git a/crates/openhuman-core/src/agent/harness/session/transcript_history_tests.rs b/crates/openhuman-core/src/agent/harness/session/transcript_history_tests.rs
index e915615240..38d1d7c9bd 100644
--- a/crates/openhuman-core/src/agent/harness/session/transcript_history_tests.rs
+++ b/crates/openhuman-core/src/agent/harness/session/transcript_history_tests.rs
@@ -42,8 +42,8 @@ fn history(dir: &TempDir) -> SessionTranscriptHistory {
}
fn user(text: &str) -> Message {
- Message::User(tinyinference_core::message::UserMessage {
- content: vec![tinyinference_core::message::ContentBlock::Text(
+ Message::User(tinyinference_llm::message::UserMessage {
+ content: vec![tinyinference_llm::message::ContentBlock::Text(
text.to_string(),
)],
})
@@ -376,9 +376,9 @@ async fn trait_path_loses_the_provenance_that_append_turn_preserves() {
.replace(
"thread-1",
vec![Message::Assistant(
- tinyinference_core::message::AssistantMessage {
+ tinyinference_llm::message::AssistantMessage {
id: None,
- content: vec![tinyinference_core::message::ContentBlock::Text(
+ content: vec![tinyinference_llm::message::ContentBlock::Text(
"72F and sunny.".into(),
)],
tool_calls: vec![],
diff --git a/crates/openhuman-core/src/agent/harness/session/turn/core/failed_turn.rs b/crates/openhuman-core/src/agent/harness/session/turn/core/failed_turn.rs
index a77a95ce02..8d7ef651d3 100644
--- a/crates/openhuman-core/src/agent/harness/session/turn/core/failed_turn.rs
+++ b/crates/openhuman-core/src/agent/harness/session/turn/core/failed_turn.rs
@@ -9,7 +9,7 @@ use crate::agent::tinyagents::{
render_unanswered_steps, TranscriptSnapshot, TranscriptSnapshotSink,
};
use anyhow::Result;
-use tinyinference_core::message::Message;
+use tinyinference_llm::message::Message;
/// Leads the note a failed turn leaves in history, so the model (and a reader
/// of the transcript) can tell it from a reply.
diff --git a/crates/openhuman-core/src/agent/harness/session/turn/session_io/wrapup.rs b/crates/openhuman-core/src/agent/harness/session/turn/session_io/wrapup.rs
index f857d25db6..4a8a624a3c 100644
--- a/crates/openhuman-core/src/agent/harness/session/turn/session_io/wrapup.rs
+++ b/crates/openhuman-core/src/agent/harness/session/turn/session_io/wrapup.rs
@@ -7,7 +7,7 @@ use crate::agent::messages::ChatMessage;
use crate::agent::progress::AgentProgress;
use crate::inference::provider::{ChatResponse, UsageInfo, AGENT_TURN_MAX_OUTPUT_TOKENS};
use futures::StreamExt;
-use tinyinference_core::model::{ModelRequest, ModelStreamItem};
+use tinyinference_llm::model::{ModelRequest, ModelStreamItem};
impl Agent {
/// **disabled** so the model returns prose rather than another tool call.
diff --git a/crates/openhuman-core/src/agent/harness/session/turn_tests.rs b/crates/openhuman-core/src/agent/harness/session/turn_tests.rs
index a8fb46d7ac..9691ed0b9a 100644
--- a/crates/openhuman-core/src/agent/harness/session/turn_tests.rs
+++ b/crates/openhuman-core/src/agent/harness/session/turn_tests.rs
@@ -17,8 +17,8 @@ use async_trait::async_trait;
use std::collections::HashSet;
use std::sync::atomic::{AtomicUsize, Ordering};
use std::sync::Arc;
-use tinyinference_core::message::Message;
-use tinyinference_core::model::{
+use tinyinference_llm::message::Message;
+use tinyinference_llm::model::{
ChatModel, ModelProfile, ModelRequest, ModelResponse, ModelStream, ModelStreamItem,
};
use tokio::sync::Mutex as AsyncMutex;
@@ -39,7 +39,7 @@ impl ChatModel<()> for DummyProvider {
&self,
_state: &(),
_request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
+ ) -> tinyinference_llm::Result<ModelResponse> {
Ok(ModelResponse::assistant("unused"))
}
}
@@ -65,7 +65,7 @@ impl ChatModel<()> for SequenceProvider {
&self,
_state: &(),
request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
+ ) -> tinyinference_llm::Result<ModelResponse> {
self.tool_counts.lock().await.push(request.tools.len());
self.requests.lock().await.push(
request
@@ -99,7 +99,7 @@ impl ChatModel<()> for SequenceProvider {
&response, &request,
),
),
- Err(error) => Err(tinyinference_core::Error::Model(error.to_string())),
+ Err(error) => Err(tinyinference_llm::Error::Model(error.to_string())),
}
}
@@ -107,7 +107,7 @@ impl ChatModel<()> for SequenceProvider {
&self,
state: &(),
request: ModelRequest,
- ) -> tinyinference_core::Result<ModelStream> {
+ ) -> tinyinference_llm::Result<ModelStream> {
// The legacy fixture implemented `chat` but did not write provider
// deltas. Preserve that non-streaming wire behavior: the harness still
// receives the authoritative completed response, while turn-owned
diff --git a/crates/openhuman-core/src/agent/harness/subagent_runner/extract_tool.rs b/crates/openhuman-core/src/agent/harness/subagent_runner/extract_tool.rs
index 4f926a4276..a2c04495d9 100644
--- a/crates/openhuman-core/src/agent/harness/subagent_runner/extract_tool.rs
+++ b/crates/openhuman-core/src/agent/harness/subagent_runner/extract_tool.rs
@@ -35,8 +35,8 @@ use crate::agent::harness::session::transcript::{
use crate::agent::messages::ChatMessage;
use crate::agent::tinyagents::TurnModelSource;
use crate::tools::{Tool, ToolCategory, ToolResult};
-use tinyinference_core::message::Message;
-use tinyinference_core::model::ModelRequest;
+use tinyinference_llm::message::Message;
+use tinyinference_llm::model::ModelRequest;
// ── Tunables ──────────────────────────────────────────────────────────
diff --git a/crates/openhuman-core/src/agent/harness/subagent_runner/ops/checkpoint.rs b/crates/openhuman-core/src/agent/harness/subagent_runner/ops/checkpoint.rs
index f8b690868b..2d6f8c32d5 100644
--- a/crates/openhuman-core/src/agent/harness/subagent_runner/ops/checkpoint.rs
+++ b/crates/openhuman-core/src/agent/harness/subagent_runner/ops/checkpoint.rs
@@ -7,8 +7,8 @@
use crate::inference::provider::UsageInfo;
use std::sync::Arc;
-use tinyinference_core::message::Message;
-use tinyinference_core::model::{ChatModel, ModelRequest};
+use tinyinference_llm::message::Message;
+use tinyinference_llm::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/crates/openhuman-core/src/agent/harness/subagent_runner/ops/graph_failed_run_tests.rs b/crates/openhuman-core/src/agent/harness/subagent_runner/ops/graph_failed_run_tests.rs
index fe560f1024..92c4231509 100644
--- a/crates/openhuman-core/src/agent/harness/subagent_runner/ops/graph_failed_run_tests.rs
+++ b/crates/openhuman-core/src/agent/harness/subagent_runner/ops/graph_failed_run_tests.rs
@@ -15,7 +15,7 @@ impl ChatModel<()> for FailsOnThirdCallProvider {
&self,
_state: &(),
_request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
+ ) -> tinyinference_llm::Result<ModelResponse> {
let n = self.calls.fetch_add(1, Ordering::SeqCst);
if n < 2 {
Ok(tool_response(
@@ -24,7 +24,7 @@ impl ChatModel<()> for FailsOnThirdCallProvider {
serde_json::json!({ "msg": format!("round-{n}") }),
))
} else {
- Err(tinyinference_core::Error::Model(
+ Err(tinyinference_llm::Error::Model(
"400 Bad Request: provider boom".to_string(),
))
}
@@ -124,7 +124,7 @@ async fn failed_subagent_run_keeps_its_unanswered_round_out_of_history() {
#[test]
fn failed_run_history_keeps_the_original_seed_not_the_provider_bound_one() {
use crate::agent::tinyagents::TranscriptSnapshot;
- use tinyinference_core::message::Message;
+ use tinyinference_llm::message::Message;
let original = vec![ChatMessage::user("describe [IMAGE:attachment-1]")];
let snapshot = TranscriptSnapshot {
diff --git a/crates/openhuman-core/src/agent/harness/subagent_runner/ops/graph_tests.rs b/crates/openhuman-core/src/agent/harness/subagent_runner/ops/graph_tests.rs
index 4cca1178c4..3786fe4224 100644
--- a/crates/openhuman-core/src/agent/harness/subagent_runner/ops/graph_tests.rs
+++ b/crates/openhuman-core/src/agent/harness/subagent_runner/ops/graph_tests.rs
@@ -2,11 +2,11 @@ use super::*;
use crate::tools::ToolResult;
use async_trait::async_trait;
use std::sync::atomic::{AtomicUsize, Ordering};
-use tinyinference_core::message::{AssistantMessage, MessageDelta};
-use tinyinference_core::model::{
+use tinyinference_llm::message::{AssistantMessage, MessageDelta};
+use tinyinference_llm::model::{
ChatModel, ModelProfile, ModelRequest, ModelResponse, ModelStream, ModelStreamItem,
};
-use tinyinference_core::tool::ToolCall;
+use tinyinference_llm::tool::ToolCall;
fn native_tool_profile() -> &'static ModelProfile {
static PROFILE: std::sync::LazyLock<ModelProfile> = std::sync::LazyLock::new(|| ModelProfile {
@@ -67,7 +67,7 @@ impl ChatModel<()> for TwoStepProvider {
&self,
_state: &(),
_request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
+ ) -> tinyinference_llm::Result<ModelResponse> {
let n = self.calls.fetch_add(1, Ordering::SeqCst);
if n == 0 {
Ok(tool_response("1", "echo", serde_json::json!({"msg": "hi"})))
@@ -145,7 +145,7 @@ impl ChatModel<()> for ThinkingStreamProvider {
&self,
_state: &(),
_request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
+ ) -> tinyinference_llm::Result<ModelResponse> {
Ok(ModelResponse::assistant("Hello"))
}
@@ -153,7 +153,7 @@ impl ChatModel<()> for ThinkingStreamProvider {
&self,
_state: &(),
_request: ModelRequest,
- ) -> tinyinference_core::Result<ModelStream> {
+ ) -> tinyinference_llm::Result<ModelStream> {
let response = ModelResponse::assistant("Hello");
Ok(Box::pin(futures::stream::iter(vec![
ModelStreamItem::Started,
@@ -286,7 +286,7 @@ impl ChatModel<()> for AskThenAnswer {
&self,
_state: &(),
_request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
+ ) -> tinyinference_llm::Result<ModelResponse> {
let n = self.calls.fetch_add(1, Ordering::SeqCst);
if n == 0 {
Ok(tool_response(
@@ -384,7 +384,7 @@ impl ChatModel<()> for LoopForeverProvider {
&self,
_state: &(),
request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
+ ) -> tinyinference_llm::Result<ModelResponse> {
if !request.tools.is_empty() {
Ok(tool_response("n", "noop", serde_json::json!({})))
} else {
@@ -535,7 +535,7 @@ impl ChatModel<()> for SpawnAttemptProvider {
&self,
_state: &(),
_request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
+ ) -> tinyinference_llm::Result<ModelResponse> {
if self.calls.fetch_add(1, Ordering::SeqCst) == 0 {
Ok(tool_response("1", "spawn_subagent", serde_json::json!({})))
} else {
diff --git a/crates/openhuman-core/src/agent/harness/subagent_runner/ops_tests.rs b/crates/openhuman-core/src/agent/harness/subagent_runner/ops_tests.rs
index 2a1e18c16d..d52775174e 100644
--- a/crates/openhuman-core/src/agent/harness/subagent_runner/ops_tests.rs
+++ b/crates/openhuman-core/src/agent/harness/subagent_runner/ops_tests.rs
@@ -72,11 +72,11 @@ use crate::agent::harness::fork_context::with_parent_context;
use crate::agent::harness::run_queue::{QueueMode, QueuedMessage, RunQueue};
use parking_lot::Mutex;
use std::sync::Arc;
-use tinyinference_core::message::{AssistantMessage, ContentBlock, Message, MessageDelta};
-use tinyinference_core::model::{
+use tinyinference_llm::message::{AssistantMessage, ContentBlock, Message, MessageDelta};
+use tinyinference_llm::model::{
ChatModel, ModelProfile, ModelRequest, ModelResponse, ModelStream, ModelStreamItem,
};
-use tinyinference_core::tool::ToolCall;
+use tinyinference_llm::tool::ToolCall;
/// Mock provider whose response queue can be inspected by the test
/// to verify the bytes that arrive at the model.
@@ -151,7 +151,7 @@ impl ChatModel<()> for ScriptedProvider {
&self,
_state: &(),
request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
+ ) -> tinyinference_llm::Result<ModelResponse> {
Ok(self.take_response(request))
}
@@ -159,7 +159,7 @@ impl ChatModel<()> for ScriptedProvider {
&self,
_state: &(),
request: ModelRequest,
- ) -> tinyinference_core::Result<ModelStream> {
+ ) -> tinyinference_llm::Result<ModelStream> {
let response = self.take_response(request);
let reasoning = response
.message
diff --git a/crates/openhuman-core/src/agent/learning/README.md b/crates/openhuman-core/src/agent/learning/README.md
index 67fc5c8efc..208872db06 100644
--- a/crates/openhuman-core/src/agent/learning/README.md
+++ b/crates/openhuman-core/src/agent/learning/README.md
@@ -101,7 +101,7 @@ These are subscriber registrations rather than a single `bus.rs`; subscriptions
- `crate::memory` — the `Memory` trait + `MemoryCategory` for KV persistence (hooks, transcript ingest), `guard::MemoryGuard` and `ops::guard::active_memory_guard` for the facet store, and `memory::api::provider::MemoryProvider` / `api::types` for the enrichment document upsert.
- `crate::agent::hooks` — `PostTurnHook` / `TurnContext` / `ToolCallRecord` implemented by the three hooks.
- `crate::agent::harness::session::transcript` — `SessionTranscript` parsing for transcript ingestion.
-- `crate::inference::provider::create_chat_model_from_string_with_model_id` (profile summarisation) and `crate::inference::local::global` (local reflection route); `ReflectionHook` also accepts an optional `tinyinference_core::model::ChatModel` for the cloud fallback.
+- `crate::inference::provider::create_chat_model_from_string_with_model_id` (profile summarisation) and `crate::inference::local::global` (local reflection route); `ReflectionHook` also accepts an optional `tinyinference_llm::model::ChatModel` for the cloud fallback.
- `crate::config` — `Config` / `LearningConfig` / `ReflectionSource` feature flags and `config::rpc` loader.
- `crate::agent::context::prompt` — `PromptContext` / `PromptSection` / `LearnedContextData` for prompt injection.
- `crate::integrations::composio` — `composio::client` (Gmail fetch for enrichment) and `composio::profile_md` (`replace_managed_block` for `PROFILE.md`).
diff --git a/crates/openhuman-core/src/agent/learning/linkedin_enrichment/profile_markdown.rs b/crates/openhuman-core/src/agent/learning/linkedin_enrichment/profile_markdown.rs
index 42f107a71c..bafa320204 100644
--- a/crates/openhuman-core/src/agent/learning/linkedin_enrichment/profile_markdown.rs
+++ b/crates/openhuman-core/src/agent/learning/linkedin_enrichment/profile_markdown.rs
@@ -71,8 +71,8 @@ Rules:\n\
"[linkedin_enrichment] sending profile to LLM for summarisation"
);
- use tinyinference_core::message::Message;
- use tinyinference_core::model::ModelRequest;
+ use tinyinference_llm::message::Message;
+ use tinyinference_llm::model::ModelRequest;
let summary = model_chat
.invoke(
&(),
diff --git a/crates/openhuman-core/src/agent/learning/reflection.rs b/crates/openhuman-core/src/agent/learning/reflection.rs
index a41d74e5fc..676f86be01 100644
--- a/crates/openhuman-core/src/agent/learning/reflection.rs
+++ b/crates/openhuman-core/src/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 tinyinference_core::model::ChatModel<()>>>,
+ provider: Option<Arc<dyn tinyinference_llm::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 tinyinference_core::model::ChatModel<()>>,
+ provider: &Arc<dyn tinyinference_llm::model::ChatModel<()>>,
prompt: &str,
) -> anyhow::Result<String> {
- use tinyinference_core::message::Message;
- use tinyinference_core::model::ModelRequest;
+ use tinyinference_llm::message::Message;
+ use tinyinference_llm::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 tinyinference_core::model::ChatModel<()>>>,
+ provider: Option<Arc<dyn tinyinference_llm::model::ChatModel<()>>>,
) -> Self {
Self {
config,
diff --git a/crates/openhuman-core/src/agent/message_convert.rs b/crates/openhuman-core/src/agent/message_convert.rs
index d5bf57a039..dcb49485ce 100644
--- a/crates/openhuman-core/src/agent/message_convert.rs
+++ b/crates/openhuman-core/src/agent/message_convert.rs
@@ -14,10 +14,10 @@
//! resulting transcript back out, so a turn can run on the `tinyagents`
//! agent-loop while callers keep speaking openhuman's `ChatMessage` vocabulary.
-use tinyinference_core::message::{
+use tinyinference_llm::message::{
AssistantMessage, ContentBlock, ImageRef, Message, SystemMessage, ToolMessage, UserMessage,
};
-use tinyinference_core::tool::ToolCall as TaToolCall;
+use tinyinference_llm::tool::ToolCall as TaToolCall;
use crate::agent::messages::{ChatMessage, ConversationMessage, ToolResultMessage};
diff --git a/crates/openhuman-core/src/agent/message_convert_tests.rs b/crates/openhuman-core/src/agent/message_convert_tests.rs
index ed1070aa1d..4355b81204 100644
--- a/crates/openhuman-core/src/agent/message_convert_tests.rs
+++ b/crates/openhuman-core/src/agent/message_convert_tests.rs
@@ -1,5 +1,5 @@
use super::*;
-use tinyinference_core::model::ModelRequest;
+use tinyinference_llm::model::ModelRequest;
// #5359: a user turn whose text carries an inline `[IMAGE:data:…]` marker
// (what the multimodal pipeline hands this bridge) must emit a typed
diff --git a/crates/openhuman-core/src/agent/messages.rs b/crates/openhuman-core/src/agent/messages.rs
index aaf97d59a9..c04545e8ca 100644
--- a/crates/openhuman-core/src/agent/messages.rs
+++ b/crates/openhuman-core/src/agent/messages.rs
@@ -1,6 +1,6 @@
//! Durable OpenHuman transcript records.
//!
-//! Runtime model calls use [`tinyinference_core::message::Message`]. These
+//! Runtime model calls use [`tinyinference_llm::message::Message`]. These
//! compact records preserve the stable JSONL/thread storage contract used by
//! existing installations and carry OpenHuman-only message metadata.
diff --git a/crates/openhuman-core/src/agent/orchestration/agent_teams/runtime_tests.rs b/crates/openhuman-core/src/agent/orchestration/agent_teams/runtime_tests.rs
index 91c9088796..ca6f545eb2 100644
--- a/crates/openhuman-core/src/agent/orchestration/agent_teams/runtime_tests.rs
+++ b/crates/openhuman-core/src/agent/orchestration/agent_teams/runtime_tests.rs
@@ -25,7 +25,7 @@ use tinyagents_session::run_ledger::{
self, AgentTeamMemberStatus, AgentTeamMemberUpsert, AgentTeamStatus, AgentTeamTaskStatus,
AgentTeamTaskUpsert, AgentTeamUpsert,
};
-use tinyinference_core::model::{ChatModel, ModelRequest, ModelResponse};
+use tinyinference_llm::model::{ChatModel, ModelRequest, ModelResponse};
// ── Mocks (mirror workflow_runs::engine_tests) ──────────────────────────────
@@ -97,9 +97,9 @@ impl ChatModel<()> for CannedModel {
&self,
_state: &(),
_request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
+ ) -> tinyinference_llm::Result<ModelResponse> {
if self.fail {
- return Err(tinyinference_core::Error::Model(
+ return Err(tinyinference_llm::Error::Model(
"mock model forced failure".to_string(),
));
}
diff --git a/crates/openhuman-core/src/agent/orchestration/ops_tests.rs b/crates/openhuman-core/src/agent/orchestration/ops_tests.rs
index 2523f7fa04..732f9840f1 100644
--- a/crates/openhuman-core/src/agent/orchestration/ops_tests.rs
+++ b/crates/openhuman-core/src/agent/orchestration/ops_tests.rs
@@ -11,7 +11,7 @@ use std::sync::{
atomic::{AtomicUsize, Ordering},
Arc,
};
-use tinyinference_core::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
+use tinyinference_llm::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
use tokio::time::Duration;
#[derive(Default)]
@@ -135,7 +135,7 @@ impl ChatModel<()> for CodingQuestionModel {
&self,
_state: &(),
request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
+ ) -> tinyinference_llm::Result<ModelResponse> {
let flattened = request
.messages
.iter()
@@ -225,7 +225,7 @@ impl ChatModel<()> for ParallelCodingModel {
&self,
_state: &(),
request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
+ ) -> tinyinference_llm::Result<ModelResponse> {
self.state.calls.fetch_add(1, Ordering::SeqCst);
let current = self.state.active.fetch_add(1, Ordering::SeqCst) + 1;
self.record_peak(current);
@@ -439,7 +439,7 @@ impl ChatModel<()> for BlockingModel {
&self,
_state: &(),
_request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
+ ) -> tinyinference_llm::Result<ModelResponse> {
tokio::time::sleep(Duration::from_secs(60)).await;
Ok(text_response("NEVER_REACHED"))
}
diff --git a/crates/openhuman-core/src/agent/orchestration/running_subagents/steering.rs b/crates/openhuman-core/src/agent/orchestration/running_subagents/steering.rs
index 3b2611a977..52f0c265a4 100644
--- a/crates/openhuman-core/src/agent/orchestration/running_subagents/steering.rs
+++ b/crates/openhuman-core/src/agent/orchestration/running_subagents/steering.rs
@@ -7,7 +7,7 @@ use crate::agent::tinyagents::orchestration::{
DetachedTaskRegistryError, SteeringCommand, SteeringCommandKind,
};
use tinyagents_harness::ids::TaskId;
-use tinyinference_core::message::Message as TaMessage;
+use tinyinference_llm::message::Message as TaMessage;
use super::cancel::now_ms;
use super::registry::registry;
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/agent_prepare_context/scout_run.rs b/crates/openhuman-core/src/agent/orchestration/tools/agent_prepare_context/scout_run.rs
index 684e875139..3a40f8a161 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/agent_prepare_context/scout_run.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/agent_prepare_context/scout_run.rs
@@ -159,14 +159,14 @@ pub(super) fn scout_failure_signal(err: &SubagentRunError) -> String {
/// Two billing shapes reach here, both **user-state, not defects**:
/// * the managed OpenHuman backend's budget-exhausted 400
/// (`{"error":"Insufficient budget","errorCode":"USER_INSUFFICIENT_CREDITS"}`),
-/// matched by [`tinyinference_core::classification::is_budget_exhausted_message`];
+/// matched by [`tinyinference_llm::classification::is_budget_exhausted_message`];
/// * a BYO provider's insufficient-credits 402, matched by
/// [`crate::core::observability::is_insufficient_credits_message`].
///
/// Both delegate to the crate's single-source classifiers so the phrase sets
/// can't drift from the cron halt / `before_send` nets that share them.
pub(super) fn is_expected_billing_failure(message: &str) -> bool {
- tinyinference_core::classification::is_budget_exhausted_message(message)
+ tinyinference_llm::classification::is_budget_exhausted_message(message)
|| crate::core::observability::is_insufficient_credits_message(message)
}
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/agent_prepare_context_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/agent_prepare_context_tests.rs
index eee2ac3d5f..61651c8489 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/agent_prepare_context_tests.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/agent_prepare_context_tests.rs
@@ -352,7 +352,7 @@ fn parent_context_with_specs(
// The context needs *a* memory to be constructed with and never reads one
// back, which is exactly what `noop_memory` is for.
let memory: Arc<dyn crate::memory::Memory> = crate::memory::test_support::noop_memory();
- let model: Arc<dyn tinyinference_core::model::ChatModel<()>> =
+ let model: Arc<dyn tinyinference_llm::model::ChatModel<()>> =
Arc::new(tinyagents_harness::testkit::ScriptedModel::new(Vec::new()));
crate::agent::harness::fork_context::ParentExecutionContext {
workspace_descriptor: None,
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/close_subagent_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/close_subagent_tests.rs
index 11cb755f76..451d035fd1 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/close_subagent_tests.rs
+++ b/crates/openhuman-core/src/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 tinyinference_core::model::ChatModel<()>> =
+ let model: Arc<dyn tinyinference_llm::model::ChatModel<()>> =
Arc::new(tinyagents_harness::testkit::ScriptedModel::new(Vec::new()));
ParentExecutionContext {
workspace_descriptor: None,
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_parallel_agents_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_parallel_agents_tests.rs
index 4275928b78..df5f711a55 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_parallel_agents_tests.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_parallel_agents_tests.rs
@@ -24,9 +24,9 @@ use std::sync::{
atomic::{AtomicUsize, Ordering},
Arc,
};
-use tinyinference_core::message::{AssistantMessage, Message};
-use tinyinference_core::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
-use tinyinference_core::tool::ToolCall;
+use tinyinference_llm::message::{AssistantMessage, Message};
+use tinyinference_llm::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
+use tinyinference_llm::tool::ToolCall;
use tokio::time::{sleep, timeout, Duration};
const PARENT_PROMPT_CANARY: &str = "parallel-fanout-e2e-canary";
@@ -107,7 +107,7 @@ fn parent_context(max_parallel_tools: usize) -> ParentExecutionContext {
max_parallel_tools,
..Default::default()
};
- let model: Arc<dyn tinyinference_core::model::ChatModel<()>> =
+ let model: Arc<dyn tinyinference_llm::model::ChatModel<()>> =
Arc::new(tinyagents_harness::testkit::ScriptedModel::replies(vec![
"ok",
]));
@@ -325,7 +325,7 @@ impl ParallelHarnessProvider {
async fn respond_for_subagent(
&self,
flattened: &str,
- ) -> tinyinference_core::Result<ModelResponse> {
+ ) -> tinyinference_llm::Result<ModelResponse> {
let current = self
.state
.active_subagent_calls
@@ -348,7 +348,7 @@ impl ParallelHarnessProvider {
sleep(Duration::from_millis(5)).await;
}
- let response = (|| -> tinyinference_core::Result<ModelResponse> {
+ let response = (|| -> tinyinference_llm::Result<ModelResponse> {
if flattened.contains(RESEARCH_PROMPT_CANARY) {
if flattened.contains("research-step-3-ok") {
Ok(text_response(RESEARCH_DONE_CANARY))
@@ -388,7 +388,7 @@ impl ParallelHarnessProvider {
))
}
} else {
- Err(tinyinference_core::Error::Model(format!(
+ Err(tinyinference_llm::Error::Model(format!(
"unexpected subagent payload: {flattened}"
)))
}
@@ -418,7 +418,7 @@ impl ChatModel<()> for ParallelHarnessProvider {
&self,
_state: &(),
request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
+ ) -> tinyinference_llm::Result<ModelResponse> {
self.state.total_calls.fetch_add(1, Ordering::SeqCst);
let flattened = request
.messages
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_worker_thread_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_worker_thread_tests.rs
index d294422524..3a9adab531 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_worker_thread_tests.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_worker_thread_tests.rs
@@ -56,7 +56,7 @@ impl crate::memory::Memory for MockMemory {
}
fn test_parent_ctx(workspace_dir: PathBuf) -> ParentExecutionContext {
- let model: Arc<dyn tinyinference_core::model::ChatModel<()>> =
+ let model: Arc<dyn tinyinference_llm::model::ChatModel<()>> =
Arc::new(tinyagents_harness::testkit::ScriptedModel::replies(vec![
"done",
]));
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rs
index b851f6e4c2..d6dc0cb52f 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rs
@@ -14,8 +14,8 @@ use parking_lot::Mutex;
use serde_json::json;
use std::path::Path;
use std::sync::Arc;
-use tinyinference_core::message::Message;
-use tinyinference_core::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
+use tinyinference_llm::message::Message;
+use tinyinference_llm::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
const SPAWN_SUBAGENT_CANARY: &str = "tool-e2e-spawn-subagent-canary";
const ARCHETYPE_DELEGATION_CANARY: &str = "tool-e2e-archetype-delegation-canary";
@@ -507,7 +507,7 @@ impl ChatModel<()> for ScriptedModel {
&self,
_state: &(),
request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
+ ) -> tinyinference_llm::Result<ModelResponse> {
let flattened = flatten_messages(&request.messages);
self.seen.lock().push(flattened.clone());
for (needle, answer) in &self.responses {
@@ -515,7 +515,7 @@ impl ChatModel<()> for ScriptedModel {
return Ok(ModelResponse::assistant(*answer));
}
}
- Err(tinyinference_core::Error::Model(format!(
+ Err(tinyinference_llm::Error::Model(format!(
"unexpected model request: {flattened}"
)))
}
diff --git a/crates/openhuman-core/src/agent/orchestration/workflow_runs/engine_tests.rs b/crates/openhuman-core/src/agent/orchestration/workflow_runs/engine_tests.rs
index 794f6a9149..81e8c675a1 100644
--- a/crates/openhuman-core/src/agent/orchestration/workflow_runs/engine_tests.rs
+++ b/crates/openhuman-core/src/agent/orchestration/workflow_runs/engine_tests.rs
@@ -32,7 +32,7 @@ use crate::memory::{Memory, MemoryCategory, MemoryEntry, NamespaceSummary, Recal
use crate::tools::Tool;
use tinyagents_session::run_ledger::WorkflowRunStatus;
use tinyagents_session::run_ledger::{get_workflow_run, upsert_workflow_run, WorkflowRunUpsert};
-use tinyinference_core::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
+use tinyinference_llm::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
use super::super::types::{WorkflowDefinition, WorkflowPhase, WorkflowSafetyTier};
@@ -137,7 +137,7 @@ impl ChatModel<()> for PeakModel {
&self,
_state: &(),
request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
+ ) -> tinyinference_llm::Result<ModelResponse> {
self.calls.fetch_add(1, Ordering::SeqCst);
let current = self.active.fetch_add(1, Ordering::SeqCst) + 1;
self.record_peak(current);
@@ -153,7 +153,7 @@ impl ChatModel<()> for PeakModel {
if let Some(needle) = self.fail_on.lock().as_ref() {
if flattened.contains(needle.as_str()) {
- return Err(tinyinference_core::Error::Model(
+ return Err(tinyinference_llm::Error::Model(
"mock model forced failure".to_string(),
));
}
diff --git a/crates/openhuman-core/src/agent/progress_tracing/journal_projection_tests.rs b/crates/openhuman-core/src/agent/progress_tracing/journal_projection_tests.rs
index 411847775c..3cf0c65c71 100644
--- a/crates/openhuman-core/src/agent/progress_tracing/journal_projection_tests.rs
+++ b/crates/openhuman-core/src/agent/progress_tracing/journal_projection_tests.rs
@@ -3,7 +3,7 @@ use super::{SpanKind, SpanStatus, TraceContext};
use tinyagents_harness::events::AgentEvent;
use tinyagents_harness::ids::{CallId, EventId, RunId};
use tinyagents_harness::observability::AgentObservation;
-use tinyinference_core::usage::Usage;
+use tinyinference_llm::usage::Usage;
/// Wraps an event as a journalled observation stamped at `ts`.
fn obs(offset: u64, ts: u64, event: AgentEvent) -> AgentObservation {
diff --git a/crates/openhuman-core/src/agent/progress_tracing/langfuse_tests.rs b/crates/openhuman-core/src/agent/progress_tracing/langfuse_tests.rs
index 7442a1e282..6bceb23bc2 100644
--- a/crates/openhuman-core/src/agent/progress_tracing/langfuse_tests.rs
+++ b/crates/openhuman-core/src/agent/progress_tracing/langfuse_tests.rs
@@ -3,7 +3,7 @@ use std::collections::BTreeMap;
use crate::agent::progress_tracing::SpanKind;
use tinyagents_harness::ids::{CallId, EventId, RunId};
-use tinyinference_core::usage::Usage;
+use tinyinference_llm::usage::Usage;
fn span(
trace: &str,
diff --git a/crates/openhuman-core/src/agent/tinyagents/convert.rs b/crates/openhuman-core/src/agent/tinyagents/convert.rs
index e4187a6a18..ba6eefa253 100644
--- a/crates/openhuman-core/src/agent/tinyagents/convert.rs
+++ b/crates/openhuman-core/src/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 tinyinference_core::tool::ToolSchema;
+use tinyinference_llm::tool::ToolSchema;
use crate::tools::ToolSpec;
diff --git a/crates/openhuman-core/src/agent/tinyagents/embeddings.rs b/crates/openhuman-core/src/agent/tinyagents/embeddings.rs
index 5a9d0ca595..45a0779565 100644
--- a/crates/openhuman-core/src/agent/tinyagents/embeddings.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/embeddings.rs
@@ -6,8 +6,8 @@
//! (rate-limit + retry). This adapter is a **thin seam**: it wraps an
//! `Arc<dyn EmbeddingProvider>` and re-exposes it as the crate's provider-neutral
//! [`EmbeddingModel`] so the harness's retrieval surface
-//! ([`Retriever`](tinyinference_core::embeddings::Retriever) /
-//! [`VectorStore`](tinyinference_core::embeddings::VectorStore)) can drive
+//! ([`Retriever`](tinyinference_embeddings::Retriever) /
+//! [`VectorStore`](tinyinference_embeddings::VectorStore)) can drive
//! OpenHuman embeddings without cloning provider logic.
//!
//! The only real work here is bridging the batch signature: the crate trait
@@ -22,8 +22,8 @@
use std::sync::Arc;
use async_trait::async_trait;
-use tinyinference_core::embeddings::EmbeddingModel as TaEmbeddingModel;
-use tinyinference_core::{Error as TiError, Result as TaResult};
+use tinyinference_embeddings::EmbeddingModel as TaEmbeddingModel;
+use tinyinference_embeddings::{Error as TiError, Result as TaResult};
use crate::inference::embeddings::EmbeddingProvider;
diff --git a/crates/openhuman-core/src/agent/tinyagents/harness_assembly.rs b/crates/openhuman-core/src/agent/tinyagents/harness_assembly.rs
index 2273e2a919..3790e4069e 100644
--- a/crates/openhuman-core/src/agent/tinyagents/harness_assembly.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/harness_assembly.rs
@@ -12,7 +12,7 @@ use tinyagents_harness::middleware::{
use tinyagents_harness::runtime::AgentHarness;
use tinyagents_harness::steering::SteeringHandle;
use tinyagents_registry::{CapabilityRegistry, RegistryDiagnostic, RegistrySnapshot};
-use tinyinference_core::model::CapabilitySet;
+use tinyinference_llm::model::CapabilitySet;
use tokio::sync::mpsc::Sender;
use crate::agent::harness::tool_result_artifacts::ToolResultArtifactIndexStore;
diff --git a/crates/openhuman-core/src/agent/tinyagents/host/budget_gate.rs b/crates/openhuman-core/src/agent/tinyagents/host/budget_gate.rs
index d7ba20756d..855c2a4a19 100644
--- a/crates/openhuman-core/src/agent/tinyagents/host/budget_gate.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/host/budget_gate.rs
@@ -65,7 +65,7 @@ use tinyagents_harness::error::{Result, TinyAgentsError};
use tinyagents_harness::host::budget_gate::{
BudgetGate, CallEstimate, CompressionHint, ContextState, Permit,
};
-use tinyinference_core::usage::Usage;
+use tinyinference_llm::usage::Usage;
use crate::config::{Config, DEFAULT_MODEL};
use crate::cron::scheduler_gate;
diff --git a/crates/openhuman-core/src/agent/tinyagents/host/context_composer.rs b/crates/openhuman-core/src/agent/tinyagents/host/context_composer.rs
index 2142bc5f5c..e38efef794 100644
--- a/crates/openhuman-core/src/agent/tinyagents/host/context_composer.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/host/context_composer.rs
@@ -71,7 +71,7 @@ use std::sync::Arc;
use async_trait::async_trait;
use tinyagents_harness::error::{Result as TinyAgentsResult, TinyAgentsError};
use tinyagents_harness::host::{ContextComposer, TurnContextRequest};
-use tinyinference_core::message::Message;
+use tinyinference_llm::message::Message;
use crate::agent::prompts::{
load_agents_md_layers, render_connected_identities, AgentsMdContent, ConnectedIntegration,
diff --git a/crates/openhuman-core/src/agent/tinyagents/host/model_resolver.rs b/crates/openhuman-core/src/agent/tinyagents/host/model_resolver.rs
index 44edf8e1ac..ba7ef78355 100644
--- a/crates/openhuman-core/src/agent/tinyagents/host/model_resolver.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/host/model_resolver.rs
@@ -70,9 +70,7 @@ use async_trait::async_trait;
use tinyagents_harness::error::TinyAgentsError;
use tinyagents_harness::host::{ModelResolveRequest, ModelResolver};
use tinyagents_harness::Result as TaResult;
-use tinyinference_core::model::{
- ChatModel, ModelProfile, ModelRequest, ModelResponse, ModelStream,
-};
+use tinyinference_llm::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse, ModelStream};
use crate::config::Config;
use crate::inference::provider::{create_chat_model_with_model_id, role_for_model_tier};
@@ -231,7 +229,7 @@ impl<State: Send + Sync> ChatModel<State> for StatelessModel {
&self,
_state: &State,
request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
+ ) -> tinyinference_llm::Result<ModelResponse> {
self.inner.invoke(&(), request).await
}
@@ -239,7 +237,7 @@ impl<State: Send + Sync> ChatModel<State> for StatelessModel {
&self,
_state: &State,
request: ModelRequest,
- ) -> tinyinference_core::Result<ModelStream> {
+ ) -> tinyinference_llm::Result<ModelStream> {
self.inner.stream(&(), request).await
}
}
diff --git a/crates/openhuman-core/src/agent/tinyagents/host/model_resolver_tests.rs b/crates/openhuman-core/src/agent/tinyagents/host/model_resolver_tests.rs
index 841e74be0f..7b8b3da548 100644
--- a/crates/openhuman-core/src/agent/tinyagents/host/model_resolver_tests.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/host/model_resolver_tests.rs
@@ -142,7 +142,7 @@ impl ChatModel<()> for EchoModel {
&self,
_state: &(),
_request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
+ ) -> tinyinference_llm::Result<ModelResponse> {
Ok(ModelResponse::assistant(self.0))
}
}
diff --git a/crates/openhuman-core/src/agent/tinyagents/host/progress_sink_tests.rs b/crates/openhuman-core/src/agent/tinyagents/host/progress_sink_tests.rs
index eb54003da6..dfe0036e2c 100644
--- a/crates/openhuman-core/src/agent/tinyagents/host/progress_sink_tests.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/host/progress_sink_tests.rs
@@ -1,7 +1,7 @@
use super::*;
use std::sync::Arc;
use tinyagents_harness::ids::{CallId, RunId, ThreadId};
-use tinyinference_core::usage::Usage;
+use tinyinference_llm::usage::Usage;
use tokio::sync::mpsc;
fn run() -> RunId {
diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware/approval.rs b/crates/openhuman-core/src/agent/tinyagents/middleware/approval.rs
index 9d6b7ea5cb..028c8d6d8b 100644
--- a/crates/openhuman-core/src/agent/tinyagents/middleware/approval.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/middleware/approval.rs
@@ -9,7 +9,7 @@ use tinyagents_harness::context::RunContext;
use tinyagents_harness::error::Result as TaResult;
use tinyagents_harness::middleware::{MiddlewareToolOutcome, ToolHandler, ToolMiddleware};
use tinyagents_harness::tool::ToolResult as TaToolResult;
-use tinyinference_core::tool::ToolCall as TaToolCall;
+use tinyinference_llm::tool::ToolCall as TaToolCall;
use crate::security::approval::{
redact_args, summarize_action, ApprovalGate, ExecutionOutcome, GateOutcome,
diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware/arg_recovery.rs b/crates/openhuman-core/src/agent/tinyagents/middleware/arg_recovery.rs
index 0c9a4bba9d..69ab428b9f 100644
--- a/crates/openhuman-core/src/agent/tinyagents/middleware/arg_recovery.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/middleware/arg_recovery.rs
@@ -8,7 +8,7 @@ use async_trait::async_trait;
use tinyagents_harness::context::RunContext;
use tinyagents_harness::error::Result as TaResult;
use tinyagents_harness::middleware::Middleware;
-use tinyinference_core::tool::{ToolCall as TaToolCall, ToolSchema};
+use tinyinference_llm::tool::{ToolCall as TaToolCall, ToolSchema};
use crate::tools::Tool;
diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware/artifact_index_toc.rs b/crates/openhuman-core/src/agent/tinyagents/middleware/artifact_index_toc.rs
index 216461dee8..bff96e6eb7 100644
--- a/crates/openhuman-core/src/agent/tinyagents/middleware/artifact_index_toc.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/middleware/artifact_index_toc.rs
@@ -6,8 +6,8 @@ use async_trait::async_trait;
use tinyagents_harness::context::RunContext;
use tinyagents_harness::error::Result as TaResult;
use tinyagents_harness::middleware::Middleware;
-use tinyinference_core::message::Message as TaMessage;
-use tinyinference_core::model::ModelRequest;
+use tinyinference_llm::message::Message as TaMessage;
+use tinyinference_llm::model::ModelRequest;
use super::message_trim::estimate_text_tokens;
diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware/cli_rpc_only.rs b/crates/openhuman-core/src/agent/tinyagents/middleware/cli_rpc_only.rs
index b43325392a..f28288ec2b 100644
--- a/crates/openhuman-core/src/agent/tinyagents/middleware/cli_rpc_only.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/middleware/cli_rpc_only.rs
@@ -9,7 +9,7 @@ use tinyagents_harness::context::RunContext;
use tinyagents_harness::error::Result as TaResult;
use tinyagents_harness::middleware::{MiddlewareToolOutcome, ToolHandler, ToolMiddleware};
use tinyagents_harness::tool::ToolResult as TaToolResult;
-use tinyinference_core::tool::ToolCall as TaToolCall;
+use tinyinference_llm::tool::ToolCall as TaToolCall;
use crate::tools::Tool;
diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware/cost_budget.rs b/crates/openhuman-core/src/agent/tinyagents/middleware/cost_budget.rs
index fc4164bf2d..48d991befa 100644
--- a/crates/openhuman-core/src/agent/tinyagents/middleware/cost_budget.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/middleware/cost_budget.rs
@@ -7,7 +7,7 @@ use async_trait::async_trait;
use tinyagents_harness::context::RunContext;
use tinyagents_harness::error::Result as TaResult;
use tinyagents_harness::middleware::{AgentRun, BudgetTracker, Middleware};
-use tinyinference_core::model::ModelRequest;
+use tinyinference_llm::model::ModelRequest;
/// `before_model`: enforce OpenHuman's daily/monthly cost budgets **before** a
/// model call spends (issue #4249, Phase 5). Reads the global
diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware/credential_scrub.rs b/crates/openhuman-core/src/agent/tinyagents/middleware/credential_scrub.rs
index 134c525b03..c7efadd99a 100644
--- a/crates/openhuman-core/src/agent/tinyagents/middleware/credential_scrub.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/middleware/credential_scrub.rs
@@ -6,7 +6,7 @@ use async_trait::async_trait;
use tinyagents_harness::context::RunContext;
use tinyagents_harness::error::Result as TaResult;
use tinyagents_harness::middleware::{MiddlewareToolOutcome, ToolHandler, ToolMiddleware};
-use tinyinference_core::tool::ToolCall as TaToolCall;
+use tinyinference_llm::tool::ToolCall as TaToolCall;
/// Recursively scrub credential-shaped string leaves inside a JSON value.
fn scrub_json_credentials(value: serde_json::Value) -> serde_json::Value {
diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware/embedder_hooks.rs b/crates/openhuman-core/src/agent/tinyagents/middleware/embedder_hooks.rs
index f7353f3169..d407fea9a4 100644
--- a/crates/openhuman-core/src/agent/tinyagents/middleware/embedder_hooks.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/middleware/embedder_hooks.rs
@@ -7,7 +7,7 @@ use tinyagents_harness::context::RunContext;
use tinyagents_harness::error::Result as TaResult;
use tinyagents_harness::middleware::Middleware;
use tinyagents_harness::tool::ToolResult as TaToolResult;
-use tinyinference_core::tool::ToolCall as TaToolCall;
+use tinyinference_llm::tool::ToolCall as TaToolCall;
/// Delivers tool lifecycle events to hooks installed by an embedding host.
pub(crate) struct EmbedderToolHooksMiddleware {
diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware/final_call_wrap_up.rs b/crates/openhuman-core/src/agent/tinyagents/middleware/final_call_wrap_up.rs
index 1a61c61d65..62aff3b8a6 100644
--- a/crates/openhuman-core/src/agent/tinyagents/middleware/final_call_wrap_up.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/middleware/final_call_wrap_up.rs
@@ -8,8 +8,8 @@ use async_trait::async_trait;
use tinyagents_harness::context::RunContext;
use tinyagents_harness::error::Result as TaResult;
use tinyagents_harness::middleware::Middleware;
-use tinyinference_core::message::{ContentBlock, Message as TaMessage};
-use tinyinference_core::model::ModelRequest;
+use tinyinference_llm::message::{ContentBlock, Message as TaMessage};
+use tinyinference_llm::model::ModelRequest;
use crate::agent::context::CLEARED_PLACEHOLDER;
@@ -129,7 +129,7 @@ impl Middleware<()> for FinalCallWrapUpMiddleware {
turn's conclusion"
);
request.tools.clear();
- request.tool_choice = tinyinference_core::model::ToolChoice::None;
+ request.tool_choice = tinyinference_llm::model::ToolChoice::None;
// Give the concluding call back the results microcompact blanked.
//
// `MicrocompactMiddleware` replaces every tool-result body past the
diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware/loop_guards.rs b/crates/openhuman-core/src/agent/tinyagents/middleware/loop_guards.rs
index 17c7b7f219..75db4309fb 100644
--- a/crates/openhuman-core/src/agent/tinyagents/middleware/loop_guards.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/middleware/loop_guards.rs
@@ -114,7 +114,7 @@ fn has_inference_failure_envelope(result: &str) -> bool {
/// Ported from legacy `tool_loop::terminal_inference_failure_kind` (#3104).
pub(crate) fn terminal_inference_failure_kind(result: &str) -> Option<TerminalInferenceFailure> {
use crate::inference::provider::is_provider_config_rejection_message;
- use tinyinference_core::classification::is_budget_exhausted_message;
+ use tinyinference_llm::classification::is_budget_exhausted_message;
if !has_inference_failure_envelope(result) {
return None;
}
diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware/memory_protocol.rs b/crates/openhuman-core/src/agent/tinyagents/middleware/memory_protocol.rs
index 71291d635b..9b3f3c9300 100644
--- a/crates/openhuman-core/src/agent/tinyagents/middleware/memory_protocol.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/middleware/memory_protocol.rs
@@ -7,7 +7,7 @@ use tinyagents_harness::context::RunContext;
use tinyagents_harness::error::Result as TaResult;
use tinyagents_harness::middleware::{AgentRun, Middleware};
use tinyagents_harness::tool::ToolResult as TaToolResult;
-use tinyinference_core::tool::ToolCall as TaToolCall;
+use tinyinference_llm::tool::ToolCall as TaToolCall;
/// Agents are told to follow a **read-index → dedupe → write → update-index**
/// cycle around durable memory, but the contract was never enforced, so it was
diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware/message_trim.rs b/crates/openhuman-core/src/agent/tinyagents/middleware/message_trim.rs
index 10a988e78a..590f5c865c 100644
--- a/crates/openhuman-core/src/agent/tinyagents/middleware/message_trim.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/middleware/message_trim.rs
@@ -6,8 +6,8 @@ use async_trait::async_trait;
use tinyagents_harness::context::RunContext;
use tinyagents_harness::error::Result as TaResult;
use tinyagents_harness::middleware::Middleware;
-use tinyinference_core::message::{ContentBlock, Message as TaMessage};
-use tinyinference_core::model::ModelRequest;
+use tinyinference_llm::message::{ContentBlock, Message as TaMessage};
+use tinyinference_llm::model::ModelRequest;
// ── ImageAwareMessageTrimMiddleware ───────────────────────────────────────────
diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware/packed_tool_route.rs b/crates/openhuman-core/src/agent/tinyagents/middleware/packed_tool_route.rs
index e934b30d38..3336689357 100644
--- a/crates/openhuman-core/src/agent/tinyagents/middleware/packed_tool_route.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/middleware/packed_tool_route.rs
@@ -9,7 +9,7 @@ use serde_json::{json, Value};
use tinyagents_harness::context::RunContext;
use tinyagents_harness::error::Result as TaResult;
use tinyagents_harness::middleware::Middleware;
-use tinyinference_core::tool::ToolCall as TaToolCall;
+use tinyinference_llm::tool::ToolCall as TaToolCall;
use crate::tools::agent_policy::ToolPolicySession;
use crate::tools::toolpacks::{self, GroupMode, USE_SKILL};
diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware/prompt_cache.rs b/crates/openhuman-core/src/agent/tinyagents/middleware/prompt_cache.rs
index a3093d0033..f38bfd6345 100644
--- a/crates/openhuman-core/src/agent/tinyagents/middleware/prompt_cache.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/middleware/prompt_cache.rs
@@ -8,8 +8,8 @@ use sha2::{Digest, Sha256};
use tinyagents_harness::context::RunContext;
use tinyagents_harness::error::Result as TaResult;
use tinyagents_harness::middleware::Middleware;
-use tinyinference_core::message::Message as TaMessage;
-use tinyinference_core::model::{ModelRequest, PromptSegment, SegmentRole};
+use tinyinference_llm::message::Message as TaMessage;
+use tinyinference_llm::model::{ModelRequest, PromptSegment, SegmentRole};
/// Stable SHA-256 fingerprint over canonical JSON. TinyAgents' prompt builder
/// uses the same shape for `ModelRequest::prompt_fingerprint`; OpenHuman builds
diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware/repeat_progress.rs b/crates/openhuman-core/src/agent/tinyagents/middleware/repeat_progress.rs
index 19ddf13c38..5e1e232fd5 100644
--- a/crates/openhuman-core/src/agent/tinyagents/middleware/repeat_progress.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/middleware/repeat_progress.rs
@@ -16,15 +16,15 @@ use tinyagents_harness::no_progress::{
};
use tinyagents_harness::steering::{SteeringCommand, SteeringHandle};
use tinyagents_harness::tool::ToolResult as TaToolResult;
-use tinyinference_core::message::{ContentBlock, Message};
-use tinyinference_core::model::{ModelRequest, ModelResponse};
+use tinyinference_llm::message::{ContentBlock, Message};
+use tinyinference_llm::model::{ModelRequest, ModelResponse};
use super::loop_guards::is_repeat_call_exempt;
use crate::agent::context::CLEARED_PLACEHOLDER;
/// Extract the assistant's visible text (concatenated [`ContentBlock::Text`]
/// blocks) from a model response message, for the repeat-output signature.
-fn assistant_visible_text(message: &tinyinference_core::message::AssistantMessage) -> String {
+fn assistant_visible_text(message: &tinyinference_llm::message::AssistantMessage) -> String {
let mut out = String::new();
for block in &message.content {
if let ContentBlock::Text(t) = block {
diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware/repeated_failure.rs b/crates/openhuman-core/src/agent/tinyagents/middleware/repeated_failure.rs
index d8fecbf38f..033176b791 100644
--- a/crates/openhuman-core/src/agent/tinyagents/middleware/repeated_failure.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/middleware/repeated_failure.rs
@@ -12,8 +12,8 @@ use tinyagents_harness::middleware::Middleware;
use tinyagents_harness::no_progress::{NoProgress, NoProgressTracker, ToolAttempt};
use tinyagents_harness::steering::{SteeringCommand, SteeringHandle};
use tinyagents_harness::tool::ToolResult as TaToolResult;
-use tinyinference_core::message::Message as TaMessage;
-use tinyinference_core::tool::ToolCall as TaToolCall;
+use tinyinference_llm::message::Message as TaMessage;
+use tinyinference_llm::tool::ToolCall as TaToolCall;
use super::loop_guards::{
is_recoverable_tool_failure, is_repeat_call_exempt, recoverable_identical_halt_summary,
diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware/tool_exposure.rs b/crates/openhuman-core/src/agent/tinyagents/middleware/tool_exposure.rs
index de04adbed8..8d1cf8c1c5 100644
--- a/crates/openhuman-core/src/agent/tinyagents/middleware/tool_exposure.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/middleware/tool_exposure.rs
@@ -11,8 +11,8 @@ use tinyagents_harness::error::Result as TaResult;
use tinyagents_harness::middleware::{
ContextualToolSelectionMiddleware, Middleware, ToolAllowlistMiddleware,
};
-use tinyinference_core::model::ModelRequest;
-use tinyinference_core::tool::ToolSchema;
+use tinyinference_llm::model::ModelRequest;
+use tinyinference_llm::tool::ToolSchema;
/// SHADOW tool-exposure middleware (issue #4249, 01.3 — dynamic exposure).
///
diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware/tool_output.rs b/crates/openhuman-core/src/agent/tinyagents/middleware/tool_output.rs
index 502014926c..fd5ae37fd4 100644
--- a/crates/openhuman-core/src/agent/tinyagents/middleware/tool_output.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/middleware/tool_output.rs
@@ -12,7 +12,7 @@ use tinyagents_harness::error::Result as TaResult;
use tinyagents_harness::events::AgentEvent;
use tinyagents_harness::middleware::Middleware;
use tinyagents_harness::tool::{ToolPolicy as TaToolPolicy, ToolResult as TaToolResult};
-use tinyinference_core::tool::ToolCall as TaToolCall;
+use tinyinference_llm::tool::ToolCall as TaToolCall;
use crate::agent::harness::tool_result_artifacts::{
apply_per_result_persistence, artifact_read_target, page_artifact_read, ArtifactRead,
diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware/tool_policy.rs b/crates/openhuman-core/src/agent/tinyagents/middleware/tool_policy.rs
index 2dac8872aa..f03a19a9f9 100644
--- a/crates/openhuman-core/src/agent/tinyagents/middleware/tool_policy.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/middleware/tool_policy.rs
@@ -10,7 +10,7 @@ use tinyagents_harness::context::RunContext;
use tinyagents_harness::error::Result as TaResult;
use tinyagents_harness::middleware::{MiddlewareToolOutcome, ToolHandler, ToolMiddleware};
use tinyagents_harness::tool::ToolResult as TaToolResult;
-use tinyinference_core::tool::ToolCall as TaToolCall;
+use tinyinference_llm::tool::ToolCall as TaToolCall;
use crate::agent::tinyagents::policy_denial::PolicyDenial;
use crate::tools::Tool;
diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware/turn_context.rs b/crates/openhuman-core/src/agent/tinyagents/middleware/turn_context.rs
index 6209ca2731..a01a87cc44 100644
--- a/crates/openhuman-core/src/agent/tinyagents/middleware/turn_context.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/middleware/turn_context.rs
@@ -12,8 +12,8 @@ use tinyagents_harness::error::Result as TaResult;
use tinyagents_harness::middleware::Middleware;
use tinyagents_harness::runtime::AgentHarness;
use tinyagents_harness::tool::{ToolPolicy as TaToolPolicy, ToolResult as TaToolResult};
-use tinyinference_core::message::Message;
-use tinyinference_core::model::{ModelRequest, ModelResponse};
+use tinyinference_llm::message::Message;
+use tinyinference_llm::model::{ModelRequest, ModelResponse};
use crate::agent::harness::tool_result_artifacts::ToolResultArtifactStore;
use crate::agent::tinyagents::payload_summarizer::PayloadSummarizer;
@@ -370,7 +370,7 @@ impl Middleware<()> for HandoffMiddleware {
&self,
_ctx: &mut RunContext<()>,
_state: &(),
- call: &mut tinyinference_core::tool::ToolCall,
+ call: &mut tinyinference_llm::tool::ToolCall,
) -> TaResult<()> {
if crate::agent::harness::tool_result_artifacts::artifact_read_target(
&call.name,
diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware_loop_guard_tests.rs b/crates/openhuman-core/src/agent/tinyagents/middleware_loop_guard_tests.rs
index 3ad426bb86..892579271c 100644
--- a/crates/openhuman-core/src/agent/tinyagents/middleware_loop_guard_tests.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/middleware_loop_guard_tests.rs
@@ -75,7 +75,7 @@ async fn cost_budget_is_a_noop_without_a_global_tracker() {
/// must be inert (no panic, `Ok`) when no shadow tracker is installed.
#[tokio::test]
async fn cost_budget_shadow_after_agent_never_fails_the_run() {
- use tinyinference_core::usage::Usage;
+ use tinyinference_llm::usage::Usage;
// No shadow tracker: after_agent is a silent no-op.
let plain = CostBudgetMiddleware::new();
diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware_tests.rs b/crates/openhuman-core/src/agent/tinyagents/middleware_tests.rs
index 1f0f948d76..1f93bbcae1 100644
--- a/crates/openhuman-core/src/agent/tinyagents/middleware_tests.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/middleware_tests.rs
@@ -17,9 +17,9 @@ use async_trait::async_trait;
use tinyagents_harness::middleware::{AgentRun, BudgetTracker, Middleware};
use tinyagents_harness::steering::{SteeringCommand, SteeringHandle};
use tinyagents_harness::tool::{ToolPolicy as TaToolPolicy, ToolResult as TaToolResult};
-use tinyinference_core::message::{ContentBlock, Message as TaMessage};
-use tinyinference_core::model::{ModelResponse, SegmentRole};
-use tinyinference_core::tool::{ToolCall as TaToolCall, ToolSchema};
+use tinyinference_llm::message::{ContentBlock, Message as TaMessage};
+use tinyinference_llm::model::{ModelResponse, SegmentRole};
+use tinyinference_llm::tool::{ToolCall as TaToolCall, ToolSchema};
use crate::agent::context::CLEARED_PLACEHOLDER;
use crate::agent::tinyagents::payload_summarizer::{
@@ -31,7 +31,7 @@ use tinyagents_harness::context::{RunConfig, RunContext};
use tinyagents_harness::no_progress::{
DEFAULT_REPEAT_CALL_THRESHOLD, DEFAULT_REPEAT_OUTPUT_THRESHOLD,
};
-use tinyinference_core::model::ModelRequest;
+use tinyinference_llm::model::ModelRequest;
fn ctx() -> RunContext<()> {
RunContext::new(RunConfig::new("mw-test"), ())
@@ -301,7 +301,7 @@ fn body_failure_result(name: &str, extra: serde_json::Value) -> TaToolResult {
fn repeated_success_response(tool: &str, args: serde_json::Value) -> ModelResponse {
ModelResponse {
- message: tinyinference_core::message::AssistantMessage {
+ message: tinyinference_llm::message::AssistantMessage {
id: None,
content: vec![ContentBlock::Text("working".to_string())],
tool_calls: vec![TaToolCall::new("repeat-1", tool, args)],
diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware_wrap_up_toc_tests.rs b/crates/openhuman-core/src/agent/tinyagents/middleware_wrap_up_toc_tests.rs
index 64e84302e4..29baafd2d8 100644
--- a/crates/openhuman-core/src/agent/tinyagents/middleware_wrap_up_toc_tests.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/middleware_wrap_up_toc_tests.rs
@@ -177,7 +177,7 @@ async fn wrap_up_withdraws_tools_and_appends_the_instruction_on_the_last_call()
let mut request = ModelRequest {
messages: vec![TaMessage::user("hi")],
tools: vec![ToolSchema::new("echo", "echo", serde_json::json!({}))],
- tool_choice: tinyinference_core::model::ToolChoice::Required,
+ tool_choice: tinyinference_llm::model::ToolChoice::Required,
..Default::default()
};
@@ -190,7 +190,7 @@ async fn wrap_up_withdraws_tools_and_appends_the_instruction_on_the_last_call()
assert!(
matches!(
request.tool_choice,
- tinyinference_core::model::ToolChoice::None
+ tinyinference_llm::model::ToolChoice::None
),
"a Required choice with no tools is a provider 400"
);
diff --git a/crates/openhuman-core/src/agent/tinyagents/model.rs b/crates/openhuman-core/src/agent/tinyagents/model.rs
index f540ca63d1..f4ecb4c960 100644
--- a/crates/openhuman-core/src/agent/tinyagents/model.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/model.rs
@@ -3,12 +3,12 @@
use std::sync::{Arc, Mutex};
use async_trait::async_trait;
-use tinyinference_core::message::{AssistantMessage, ContentBlock, MessageDelta};
-use tinyinference_core::model::{
+use tinyinference_llm::message::{AssistantMessage, ContentBlock, MessageDelta};
+use tinyinference_llm::model::{
ChatModel, ModelProfile, ModelRequest, ModelResponse, ModelStream, ModelStreamItem,
};
-use tinyinference_core::tool::{ToolCall as TaToolCall, ToolDelta};
-use tinyinference_core::usage::Usage;
+use tinyinference_llm::tool::{ToolCall as TaToolCall, ToolDelta};
+use tinyinference_llm::usage::Usage;
use tokio::sync::mpsc::UnboundedSender;
use crate::agent::messages::ChatMessage;
@@ -454,7 +454,7 @@ impl ChatModel<()> for RouteRecordingModel {
&self,
state: &(),
request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
+ ) -> tinyinference_llm::Result<ModelResponse> {
self.record_route();
self.inner.invoke(state, request).await
}
@@ -463,7 +463,7 @@ impl ChatModel<()> for RouteRecordingModel {
&self,
state: &(),
request: ModelRequest,
- ) -> tinyinference_core::Result<ModelStream> {
+ ) -> tinyinference_llm::Result<ModelStream> {
self.record_route();
self.inner.stream(state, request).await
}
@@ -519,7 +519,7 @@ impl ChatModel<()> for ProfileOverrideModel {
&self,
state: &(),
request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
+ ) -> tinyinference_llm::Result<ModelResponse> {
self.inner
.invoke(state, self.pin_request_options(request))
.await
@@ -529,7 +529,7 @@ impl ChatModel<()> for ProfileOverrideModel {
&self,
state: &(),
request: ModelRequest,
- ) -> tinyinference_core::Result<ModelStream> {
+ ) -> tinyinference_llm::Result<ModelStream> {
self.inner
.stream(state, self.pin_request_options(request))
.await
@@ -569,7 +569,7 @@ impl ChatModel<()> for MaxTokensModel {
&self,
state: &(),
request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
+ ) -> tinyinference_llm::Result<ModelResponse> {
self.inner.invoke(state, self.cap(request)).await
}
@@ -577,7 +577,7 @@ impl ChatModel<()> for MaxTokensModel {
&self,
state: &(),
request: ModelRequest,
- ) -> tinyinference_core::Result<ModelStream> {
+ ) -> tinyinference_llm::Result<ModelStream> {
self.inner.stream(state, self.cap(request)).await
}
}
diff --git a/crates/openhuman-core/src/agent/tinyagents/model_g1_usage_tests_tests.rs b/crates/openhuman-core/src/agent/tinyagents/model_g1_usage_tests_tests.rs
index b75dcd4fac..44e3b62303 100644
--- a/crates/openhuman-core/src/agent/tinyagents/model_g1_usage_tests_tests.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/model_g1_usage_tests_tests.rs
@@ -122,7 +122,7 @@ fn tool_enabled_response_still_extracts_tool_call_markup() {
fn tool_request() -> ModelRequest {
ModelRequest {
- tools: vec![tinyinference_core::tool::ToolSchema::new(
+ tools: vec![tinyinference_llm::tool::ToolSchema::new(
"lookup",
"looks up a record",
serde_json::json!({
diff --git a/crates/openhuman-core/src/agent/tinyagents/model_route_recording_tests_tests.rs b/crates/openhuman-core/src/agent/tinyagents/model_route_recording_tests_tests.rs
index 631097897d..eda475617b 100644
--- a/crates/openhuman-core/src/agent/tinyagents/model_route_recording_tests_tests.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/model_route_recording_tests_tests.rs
@@ -11,7 +11,7 @@ impl ChatModel<()> for SuccessfulModel {
&self,
_state: &(),
_request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
+ ) -> tinyinference_llm::Result<ModelResponse> {
Ok(ModelResponse::assistant("ok"))
}
}
@@ -79,7 +79,7 @@ impl ChatModel<()> for IdentifiedModel {
&self,
_state: &(),
_request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
+ ) -> tinyinference_llm::Result<ModelResponse> {
Ok(ModelResponse::assistant("ok"))
}
}
diff --git a/crates/openhuman-core/src/agent/tinyagents/observability.rs b/crates/openhuman-core/src/agent/tinyagents/observability.rs
index 335a97cd76..0b02f0c62f 100644
--- a/crates/openhuman-core/src/agent/tinyagents/observability.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/observability.rs
@@ -19,7 +19,7 @@ use std::sync::Arc;
#[cfg(test)]
use tinyagents_harness::events::AgentEvent;
#[cfg(test)]
-use tinyinference_core::usage::Usage;
+use tinyinference_llm::usage::Usage;
#[cfg(test)]
use crate::agent::progress::AgentProgress;
diff --git a/crates/openhuman-core/src/agent/tinyagents/observability/cap_pauser_tests.rs b/crates/openhuman-core/src/agent/tinyagents/observability/cap_pauser_tests.rs
index aa5ec32fd1..5139902058 100644
--- a/crates/openhuman-core/src/agent/tinyagents/observability/cap_pauser_tests.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/observability/cap_pauser_tests.rs
@@ -12,9 +12,9 @@ use tinyagents_harness::steering::SteeringPolicy;
use tinyagents_harness::subagent::SubAgent;
use tinyagents_harness::testkit::{FakeTool, ScriptedModel, SlowModel};
use tinyagents_harness::tool::ToolResult;
-use tinyinference_core::message::{AssistantMessage, Message};
-use tinyinference_core::model::{ChatModel, ModelResponse};
-use tinyinference_core::tool::ToolCall;
+use tinyinference_llm::message::{AssistantMessage, Message};
+use tinyinference_llm::model::{ChatModel, ModelResponse};
+use tinyinference_llm::tool::ToolCall;
const CAP: usize = 3;
diff --git a/crates/openhuman-core/src/agent/tinyagents/observability/event_bridge.rs b/crates/openhuman-core/src/agent/tinyagents/observability/event_bridge.rs
index d2a94baa38..a530e37ae7 100644
--- a/crates/openhuman-core/src/agent/tinyagents/observability/event_bridge.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/observability/event_bridge.rs
@@ -7,7 +7,7 @@ use std::sync::{Arc, Mutex};
use tokio::sync::mpsc::Sender;
-use tinyinference_core::usage::Usage;
+use tinyinference_llm::usage::Usage;
use crate::agent::progress::AgentProgress;
use crate::inference::provider::UsageInfo;
diff --git a/crates/openhuman-core/src/agent/tinyagents/retriever.rs b/crates/openhuman-core/src/agent/tinyagents/retriever.rs
index ac7896cd10..8a582b8fea 100644
--- a/crates/openhuman-core/src/agent/tinyagents/retriever.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/retriever.rs
@@ -44,7 +44,7 @@ use std::sync::{Arc, OnceLock};
use serde_json::json;
use tinyagents_harness::events::{AgentEvent, EventSink};
-use tinyinference_core::embeddings::{
+use tinyinference_embeddings::{
EmbeddingModel as TaEmbeddingModel, InMemoryVectorStore, Retriever, ScoredDoc,
};
diff --git a/crates/openhuman-core/src/agent/tinyagents/routes.rs b/crates/openhuman-core/src/agent/tinyagents/routes.rs
index 65dcd80de1..7fbf27ffe0 100644
--- a/crates/openhuman-core/src/agent/tinyagents/routes.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/routes.rs
@@ -8,7 +8,7 @@ use tinyagents_harness::events::AgentEvent;
use tinyagents_harness::middleware::{MiddlewareModelOutcome, ModelHandler, ModelMiddleware};
use tinyagents_harness::retry::FallbackPolicy;
use tinyagents_registry::{ModelRouter, WorkloadRoute};
-use tinyinference_core::model::{CapabilitySet, ModelRequest};
+use tinyinference_llm::model::{CapabilitySet, ModelRequest};
use crate::config::{
MODEL_AGENTIC_V1, MODEL_BURST_V1, MODEL_CHAT_V1, MODEL_CODING_V1, MODEL_REASONING_V1,
diff --git a/crates/openhuman-core/src/agent/tinyagents/steering_forwarder.rs b/crates/openhuman-core/src/agent/tinyagents/steering_forwarder.rs
index 845ead6d01..9631899d72 100644
--- a/crates/openhuman-core/src/agent/tinyagents/steering_forwarder.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/steering_forwarder.rs
@@ -29,7 +29,7 @@ use std::sync::Arc;
use std::time::Duration;
use tinyagents_harness::steering::{SteeringCommand, SteeringHandle};
-use tinyinference_core::message::Message as TaMessage;
+use tinyinference_llm::message::Message as TaMessage;
use crate::agent::harness::run_queue::{QueueMode, QueuedMessage, RunQueue};
use crate::core::bus::BUS;
diff --git a/crates/openhuman-core/src/agent/tinyagents/stop_hooks.rs b/crates/openhuman-core/src/agent/tinyagents/stop_hooks.rs
index 290d57b0d6..0340bc8b8b 100644
--- a/crates/openhuman-core/src/agent/tinyagents/stop_hooks.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/stop_hooks.rs
@@ -28,7 +28,7 @@ use async_trait::async_trait;
use tinyagents_harness::context::RunContext;
use tinyagents_harness::middleware::Middleware;
use tinyagents_harness::steering::{SteeringCommand, SteeringHandle};
-use tinyinference_core::model::ModelResponse;
+use tinyinference_llm::model::ModelResponse;
use crate::agent::cost::TurnCost;
use crate::agent::stop_hooks::{StopDecision, StopHook, TurnState};
diff --git a/crates/openhuman-core/src/agent/tinyagents/summarize.rs b/crates/openhuman-core/src/agent/tinyagents/summarize.rs
index 0d2de4b90b..13226b351a 100644
--- a/crates/openhuman-core/src/agent/tinyagents/summarize.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/summarize.rs
@@ -31,10 +31,10 @@ use tinyagents_harness::error::{Result as TaResult, TinyAgentsError};
use tinyagents_harness::summarization::{
estimate_tokens, CompressionProvenance, SummarizationPolicy, Summarizer, SummaryRecord,
};
-use tinyinference_core::message::Message as TaMessage;
+use tinyinference_llm::message::Message as TaMessage;
-use tinyinference_core::message::Message as HarnessMessage;
-use tinyinference_core::model::{ChatModel, ModelRequest};
+use tinyinference_llm::message::Message as HarnessMessage;
+use tinyinference_llm::model::{ChatModel, ModelRequest};
/// Fraction of the model's context window at which summarization fires.
///
diff --git a/crates/openhuman-core/src/agent/tinyagents/tinyagents_tests.rs b/crates/openhuman-core/src/agent/tinyagents/tinyagents_tests.rs
index d80b44ce48..5adb8de2cc 100644
--- a/crates/openhuman-core/src/agent/tinyagents/tinyagents_tests.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/tinyagents_tests.rs
@@ -68,7 +68,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 tinyinference_core::model::ChatModel<()>> =
+ let model: Arc<dyn tinyinference_llm::model::ChatModel<()>> =
Arc::new(tinyagents_harness::testkit::ScriptedModel::replies(vec![
"done",
]));
diff --git a/crates/openhuman-core/src/agent/tinyagents/tools.rs b/crates/openhuman-core/src/agent/tinyagents/tools.rs
index 6514d22429..adf83e3212 100644
--- a/crates/openhuman-core/src/agent/tinyagents/tools.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/tools.rs
@@ -14,7 +14,7 @@ use tinyagents_harness::tool::{
SandboxMode, Tool, ToolAccess, ToolExecutionContext, ToolPolicy, ToolResult as TaToolResult,
ToolRuntime, ToolSideEffects, ToolTimeout as TaToolTimeout, WorkspaceAccess,
};
-use tinyinference_core::tool::{ToolCall as TaToolCall, ToolSchema};
+use tinyinference_llm::tool::{ToolCall as TaToolCall, ToolSchema};
use tinytools::ToolRunContext;
/// A captured early-exit: a sub-agent invoked an early-exit tool (e.g.
diff --git a/crates/openhuman-core/src/agent/tinyagents/turn_models.rs b/crates/openhuman-core/src/agent/tinyagents/turn_models.rs
index 13ebd79935..1bf3bd9df0 100644
--- a/crates/openhuman-core/src/agent/tinyagents/turn_models.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/turn_models.rs
@@ -23,7 +23,7 @@ pub(crate) fn tinyagents_depth_error(
}
}
-/// The per-turn crate [`ChatModel`](tinyinference_core::model::ChatModel) set,
+/// The per-turn crate [`ChatModel`](tinyinference_llm::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).
///
@@ -258,7 +258,7 @@ impl TurnModelSource {
/// does not expose (common for deterministic scripted tests).
pub(crate) fn from_model_with_profile(
model: TurnChatModel,
- profile: tinyinference_core::model::ModelProfile,
+ profile: tinyinference_llm::model::ModelProfile,
) -> Self {
Self::from_model(Arc::new(ProfileOverrideModel::new(model, profile)))
}
@@ -430,7 +430,7 @@ impl TurnModelSource {
Err(anyhow::anyhow!("turn model source is missing a model"))
}
- /// Build a standalone summarizer [`ChatModel`](tinyinference_core::model::ChatModel)
+ /// Build a standalone summarizer [`ChatModel`](tinyinference_llm::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
@@ -439,7 +439,7 @@ impl TurnModelSource {
&self,
model: &str,
temperature: f64,
- ) -> anyhow::Result<Arc<dyn tinyinference_core::model::ChatModel<()>>> {
+ ) -> anyhow::Result<Arc<dyn tinyinference_llm::model::ChatModel<()>>> {
if let Some(direct) = &self.direct_model {
let profile = direct.profile().cloned().unwrap_or_default();
return Ok(Arc::new(
diff --git a/crates/openhuman-core/src/agent/tools/delegate.rs b/crates/openhuman-core/src/agent/tools/delegate.rs
index 3fa4f272d3..1fc83fe4a4 100644
--- a/crates/openhuman-core/src/agent/tools/delegate.rs
+++ b/crates/openhuman-core/src/agent/tools/delegate.rs
@@ -11,8 +11,8 @@ use serde_json::json;
use std::collections::HashMap;
use std::sync::Arc;
use std::time::Duration;
-use tinyinference_core::message::Message;
-use tinyinference_core::model::{ChatModel, ModelRequest};
+use tinyinference_llm::message::Message;
+use tinyinference_llm::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/crates/openhuman-core/src/agent/triage/evaluator_tests.rs b/crates/openhuman-core/src/agent/triage/evaluator_tests.rs
index c83b640519..7f3e92ce6d 100644
--- a/crates/openhuman-core/src/agent/triage/evaluator_tests.rs
+++ b/crates/openhuman-core/src/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::agent::tinyagents::TurnModelSource {
- let model: StdArc<dyn tinyinference_core::model::ChatModel<()>> =
+ let model: StdArc<dyn tinyinference_llm::model::ChatModel<()>> =
StdArc::new(tinyagents_harness::testkit::ScriptedModel::new(Vec::new()));
crate::agent::tinyagents::TurnModelSource::from_model(model)
}
diff --git a/crates/openhuman-core/src/api/rest.rs b/crates/openhuman-core/src/api/rest.rs
index 3bdf1b6540..ccfb98f54c 100644
--- a/crates/openhuman-core/src/api/rest.rs
+++ b/crates/openhuman-core/src/api/rest.rs
@@ -821,7 +821,7 @@ impl BackendOAuthClient {
let is_transient_infra =
crate::core::observability::is_transient_http_status_code(status_code);
let is_budget_exhausted = status_code == 400
- && tinyinference_core::classification::is_budget_exhausted_message(&text);
+ && tinyinference_llm::classification::is_budget_exhausted_message(&text);
if is_budget_exhausted {
tracing::info!(
method = method.as_str(),
diff --git a/crates/openhuman-core/src/bin/library_profile/mock.rs b/crates/openhuman-core/src/bin/library_profile/mock.rs
index cdc5d71cb9..f08bc41b9c 100644
--- a/crates/openhuman-core/src/bin/library_profile/mock.rs
+++ b/crates/openhuman-core/src/bin/library_profile/mock.rs
@@ -7,9 +7,9 @@ use std::time::Duration;
use async_trait::async_trait;
use openhuman_core::inference::provider::types::{ChatResponse, ToolCall};
-use tinyinference_core::message::{AssistantMessage, ContentBlock, Message};
-use tinyinference_core::model::{ChatModel, ModelRequest, ModelResponse};
-use tinyinference_core::tool::ToolCall as TinyAgentsToolCall;
+use tinyinference_llm::message::{AssistantMessage, ContentBlock, Message};
+use tinyinference_llm::model::{ChatModel, ModelRequest, ModelResponse};
+use tinyinference_llm::tool::ToolCall as TinyAgentsToolCall;
/// A plain `ChatResponse` carrying only text (no tool calls).
pub fn response(text: &str) -> ChatResponse {
@@ -319,7 +319,7 @@ impl ChatModel<()> for SubagentMock {
&self,
_state: &(),
request: ModelRequest,
- ) -> Result<ModelResponse, tinyinference_core::Error> {
+ ) -> Result<ModelResponse, tinyinference_llm::Error> {
Ok(model_response(
self.dispatch(&joined_request(&request)).await,
))
@@ -376,7 +376,7 @@ impl ChatModel<()> for LatencyMock {
&self,
_state: &(),
request: ModelRequest,
- ) -> Result<ModelResponse, tinyinference_core::Error> {
+ ) -> Result<ModelResponse, tinyinference_llm::Error> {
self.latency.sleep_sampled().await;
let joined = joined_request(&request);
record(&self.prompts, &joined);
@@ -406,7 +406,7 @@ impl ChatModel<()> for PlainTextMock {
&self,
_state: &(),
request: ModelRequest,
- ) -> Result<ModelResponse, tinyinference_core::Error> {
+ ) -> Result<ModelResponse, tinyinference_llm::Error> {
let joined = joined_request(&request);
record(&self.prompts, &joined);
Ok(model_response(response(&self.text)))
@@ -492,7 +492,7 @@ impl ChatModel<()> for SkillRunMock {
&self,
_state: &(),
request: ModelRequest,
- ) -> Result<ModelResponse, tinyinference_core::Error> {
+ ) -> Result<ModelResponse, tinyinference_llm::Error> {
Ok(model_response(self.reply(&joined_request(&request))))
}
}
diff --git a/crates/openhuman-core/src/bin/rss_bench.rs b/crates/openhuman-core/src/bin/rss_bench.rs
index 1366839d58..9d8dd0b341 100644
--- a/crates/openhuman-core/src/bin/rss_bench.rs
+++ b/crates/openhuman-core/src/bin/rss_bench.rs
@@ -39,7 +39,7 @@ use std::process::Stdio;
use std::sync::Arc;
use std::time::Duration;
use tempfile::TempDir;
-use tinyinference_core::model::{ChatModel, ModelRequest, ModelResponse};
+use tinyinference_llm::model::{ChatModel, ModelRequest, ModelResponse};
/// Roster sizes measured by default: the 1-agent baseline and the
/// representative 8-agent company roster from #5046.
@@ -62,7 +62,7 @@ impl ChatModel<()> for MockModel {
&self,
_state: &(),
_request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
+ ) -> tinyinference_llm::Result<ModelResponse> {
Ok(ModelResponse::assistant("ok"))
}
}
diff --git a/crates/openhuman-core/src/channels/context_tests.rs b/crates/openhuman-core/src/channels/context_tests.rs
index 22e462b281..208aa6f8f5 100644
--- a/crates/openhuman-core/src/channels/context_tests.rs
+++ b/crates/openhuman-core/src/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 tinyinference_core::model::ChatModel<()>> =
+ let model: Arc<dyn tinyinference_llm::model::ChatModel<()>> =
Arc::new(tinyagents_harness::testkit::ScriptedModel::replies(vec![
"ok",
]));
diff --git a/crates/openhuman-core/src/channels/routes_tests.rs b/crates/openhuman-core/src/channels/routes_tests.rs
index b2197585de..e8fdf7df62 100644
--- a/crates/openhuman-core/src/channels/routes_tests.rs
+++ b/crates/openhuman-core/src/channels/routes_tests.rs
@@ -113,7 +113,7 @@ impl Channel for RecordingChannel {
}
fn runtime_context(workspace_dir: PathBuf) -> ChannelRuntimeContext {
- let model: Arc<dyn tinyinference_core::model::ChatModel<()>> =
+ let model: Arc<dyn tinyinference_llm::model::ChatModel<()>> =
Arc::new(tinyagents_harness::testkit::ScriptedModel::replies(vec![
"ok",
]));
diff --git a/crates/openhuman-core/src/channels/runtime/test_support.rs b/crates/openhuman-core/src/channels/runtime/test_support.rs
index 53ca695f03..4d6bd65d62 100644
--- a/crates/openhuman-core/src/channels/runtime/test_support.rs
+++ b/crates/openhuman-core/src/channels/runtime/test_support.rs
@@ -26,7 +26,7 @@ use std::path::PathBuf;
use std::sync::atomic::{AtomicUsize, Ordering};
use std::sync::{Arc, Mutex};
use std::time::Duration;
-use tinyinference_core::model::{ChatModel, ModelRequest, ModelResponse};
+use tinyinference_llm::model::{ChatModel, ModelRequest, ModelResponse};
use tinymemory_api::types::{MemoryCategory, MemoryEntry};
#[derive(Debug, Clone)]
@@ -247,7 +247,7 @@ impl ChatModel<()> for HarnessModel {
&self,
_state: &(),
request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
+ ) -> tinyinference_llm::Result<ModelResponse> {
let message = request
.messages
.last()
diff --git a/crates/openhuman-core/src/channels/tests/common.rs b/crates/openhuman-core/src/channels/tests/common.rs
index 50a4a50a73..0b024a18ea 100644
--- a/crates/openhuman-core/src/channels/tests/common.rs
+++ b/crates/openhuman-core/src/channels/tests/common.rs
@@ -5,9 +5,9 @@ use std::sync::atomic::{AtomicUsize, Ordering};
use std::sync::{Arc, Mutex};
use std::time::Duration;
use tempfile::TempDir;
-use tinyinference_core::message::{AssistantMessage, Message};
-use tinyinference_core::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
-use tinyinference_core::tool::ToolCall;
+use tinyinference_llm::message::{AssistantMessage, Message};
+use tinyinference_llm::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
+use tinyinference_llm::tool::ToolCall;
fn message_role(message: &Message) -> &'static str {
match message {
@@ -93,7 +93,7 @@ impl ChatModel<()> for DummyModel {
&self,
_state: &(),
_request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
+ ) -> tinyinference_llm::Result<ModelResponse> {
Ok(ModelResponse::assistant("ok"))
}
}
@@ -182,7 +182,7 @@ impl ChatModel<()> for SlowModel {
&self,
_state: &(),
request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
+ ) -> tinyinference_llm::Result<ModelResponse> {
tokio::time::sleep(self.delay).await;
let message = request
.messages
@@ -207,7 +207,7 @@ impl ChatModel<()> for ToolCallingModel {
&self,
_state: &(),
request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
+ ) -> tinyinference_llm::Result<ModelResponse> {
let has_tool_results = request.messages.iter().any(|message| {
matches!(message, Message::Tool(_)) || message.text().contains("[Tool results]")
});
@@ -246,7 +246,7 @@ impl ChatModel<()> for IterativeToolModel {
&self,
_state: &(),
request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
+ ) -> tinyinference_llm::Result<ModelResponse> {
let completed_iterations = Self::completed_tool_iterations(&request.messages);
if completed_iterations >= self.required_tool_iterations {
Ok(ModelResponse::assistant(format!(
@@ -273,7 +273,7 @@ impl ChatModel<()> for HistoryCaptureModel {
&self,
_state: &(),
request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
+ ) -> tinyinference_llm::Result<ModelResponse> {
let snapshot = request
.messages
.iter()
@@ -312,7 +312,7 @@ impl ChatModel<()> for ModelCaptureModel {
&self,
_state: &(),
_request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
+ ) -> tinyinference_llm::Result<ModelResponse> {
self.call_count.fetch_add(1, Ordering::SeqCst);
self.models
.lock()
diff --git a/crates/openhuman-core/src/channels/tests/discord_integration.rs b/crates/openhuman-core/src/channels/tests/discord_integration.rs
index e6c952ba64..f0910e6156 100644
--- a/crates/openhuman-core/src/channels/tests/discord_integration.rs
+++ b/crates/openhuman-core/src/channels/tests/discord_integration.rs
@@ -34,7 +34,7 @@ use crate::agent::bus::{mock_agent_run_turn, AgentTurnResponse};
use std::collections::HashMap;
use std::sync::atomic::{AtomicUsize, Ordering};
use std::sync::{Arc, Mutex};
-use tinyinference_core::model::{ChatModel, ModelRequest, ModelResponse};
+use tinyinference_llm::model::{ChatModel, ModelRequest, ModelResponse};
// ── Test helpers ────────────────────────────────────────────────────────────
@@ -93,7 +93,7 @@ impl ChatModel<()> for FixedResponseModel {
&self,
_state: &(),
_request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
+ ) -> tinyinference_llm::Result<ModelResponse> {
Ok(ModelResponse::assistant(self.response))
}
}
diff --git a/crates/openhuman-core/src/channels/tests/runtime_tool_calls.rs b/crates/openhuman-core/src/channels/tests/runtime_tool_calls.rs
index ab5267b898..ded49250d2 100644
--- a/crates/openhuman-core/src/channels/tests/runtime_tool_calls.rs
+++ b/crates/openhuman-core/src/channels/tests/runtime_tool_calls.rs
@@ -12,7 +12,7 @@ use crate::inference::provider;
use std::collections::HashMap;
use std::sync::atomic::Ordering;
use std::sync::{Arc, Mutex};
-use tinyinference_core::model::ChatModel;
+use tinyinference_llm::model::ChatModel;
#[tokio::test]
async fn process_channel_message_executes_native_tool_calls() {
diff --git a/crates/openhuman-core/src/channels/tests/telegram_integration.rs b/crates/openhuman-core/src/channels/tests/telegram_integration.rs
index 2e20f82fa2..a2f560a13d 100644
--- a/crates/openhuman-core/src/channels/tests/telegram_integration.rs
+++ b/crates/openhuman-core/src/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 tinyinference_core::model::{ChatModel, ModelRequest, ModelResponse};
+use tinyinference_llm::model::{ChatModel, ModelRequest, ModelResponse};
// ── Test helpers ────────────────────────────────────────────────────────────
@@ -69,7 +69,7 @@ impl ChatModel<()> for FixedResponseModel {
&self,
_state: &(),
_request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
+ ) -> tinyinference_llm::Result<ModelResponse> {
Ok(ModelResponse::assistant(self.response))
}
}
diff --git a/crates/openhuman-core/src/config/migrations/migrate_legacy_embedding_provider.rs b/crates/openhuman-core/src/config/migrations/migrate_legacy_embedding_provider.rs
index c11ed3bd7e..b992281226 100644
--- a/crates/openhuman-core/src/config/migrations/migrate_legacy_embedding_provider.rs
+++ b/crates/openhuman-core/src/config/migrations/migrate_legacy_embedding_provider.rs
@@ -55,7 +55,7 @@ use crate::config::Config;
use crate::inference::embeddings::{
DEFAULT_CLOUD_EMBEDDING_DIMENSIONS, DEFAULT_CLOUD_EMBEDDING_MODEL,
};
-use tinyinference_core::embeddings::{DEFAULT_OLLAMA_DIMENSIONS, DEFAULT_OLLAMA_MODEL};
+use tinyinference_embeddings::{DEFAULT_OLLAMA_DIMENSIONS, DEFAULT_OLLAMA_MODEL};
/// The removed provider value that must not reach the embedding factory.
const REMOVED_PROVIDER: &str = "fastembed";
diff --git a/crates/openhuman-core/src/config/schema/load/env_overlay.rs b/crates/openhuman-core/src/config/schema/load/env_overlay.rs
index 4649c2caa5..cecdf0de9f 100644
--- a/crates/openhuman-core/src/config/schema/load/env_overlay.rs
+++ b/crates/openhuman-core/src/config/schema/load/env_overlay.rs
@@ -59,7 +59,7 @@ impl Config {
set_runtime_proxy_config(self.proxy.clone());
- tinyinference_core::embeddings::set_rate_limit(self.memory.embedding_rate_limit_per_min);
+ tinyinference_embeddings::set_rate_limit(self.memory.embedding_rate_limit_per_min);
// Launch flags are process-local and intentionally win over both the
// persisted file and ordinary environment overlays. They are applied
diff --git a/crates/openhuman-core/src/core/observability.rs b/crates/openhuman-core/src/core/observability.rs
index 29ef87049b..ce753c1aa0 100644
--- a/crates/openhuman-core/src/core/observability.rs
+++ b/crates/openhuman-core/src/core/observability.rs
@@ -648,7 +648,7 @@ pub fn expected_error_kind(message: &str) -> Option<ExpectedErrorKind> {
if is_local_ai_capability_unavailable_message(&lower) {
return Some(ExpectedErrorKind::LocalAiCapabilityUnavailable);
}
- if tinyinference_core::classification::is_budget_exhausted_message(message) {
+ if tinyinference_llm::classification::is_budget_exhausted_message(message) {
return Some(ExpectedErrorKind::BudgetExhausted);
}
if is_prompt_injection_blocked_message(&lower) {
@@ -3445,7 +3445,7 @@ fn event_contains_budget_exhausted_message(event: &sentry::protocol::Event<'_>)
if event
.message
.as_deref()
- .is_some_and(tinyinference_core::classification::is_budget_exhausted_message)
+ .is_some_and(tinyinference_llm::classification::is_budget_exhausted_message)
{
return true;
}
@@ -3454,7 +3454,7 @@ fn event_contains_budget_exhausted_message(event: &sentry::protocol::Event<'_>)
exception
.value
.as_deref()
- .is_some_and(tinyinference_core::classification::is_budget_exhausted_message)
+ .is_some_and(tinyinference_llm::classification::is_budget_exhausted_message)
})
}
diff --git a/crates/openhuman-core/src/cron/scheduler/failure_classification.rs b/crates/openhuman-core/src/cron/scheduler/failure_classification.rs
index 31b21d2a42..e4338c6790 100644
--- a/crates/openhuman-core/src/cron/scheduler/failure_classification.rs
+++ b/crates/openhuman-core/src/cron/scheduler/failure_classification.rs
@@ -193,7 +193,7 @@ pub(super) fn is_budget_exhausted_failure(
return false;
}
let signal = last_agent_error.unwrap_or(last_output);
- tinyinference_core::classification::is_budget_exhausted_message(signal)
+ tinyinference_llm::classification::is_budget_exhausted_message(signal)
}
/// TAURI-RUST-HCK — a cron **agent** job pinned to a provider with no
diff --git a/crates/openhuman-core/src/flows/tinyflows/caps/llm.rs b/crates/openhuman-core/src/flows/tinyflows/caps/llm.rs
index 74b96ba75f..62a04a07c1 100644
--- a/crates/openhuman-core/src/flows/tinyflows/caps/llm.rs
+++ b/crates/openhuman-core/src/flows/tinyflows/caps/llm.rs
@@ -15,7 +15,7 @@ use tinyflows::error::{EngineError, Result};
use super::*;
use crate::config::Config;
use crate::inference::provider::{create_chat_model_with_model_id, role_for_model_tier};
-use tinyinference_core::model::ModelRequest;
+use tinyinference_llm::model::ModelRequest;
/// [`LlmProvider`] adapter over OpenHuman's inference stack
/// (`crates/openhuman-core/src/inference/provider/`).
diff --git a/crates/openhuman-core/src/flows/tinyflows/caps/ops_schema_and_structured_output_tests.rs b/crates/openhuman-core/src/flows/tinyflows/caps/ops_schema_and_structured_output_tests.rs
index 8ea45235d3..87346c36e8 100644
--- a/crates/openhuman-core/src/flows/tinyflows/caps/ops_schema_and_structured_output_tests.rs
+++ b/crates/openhuman-core/src/flows/tinyflows/caps/ops_schema_and_structured_output_tests.rs
@@ -166,10 +166,10 @@ fn resolve_completion_model_leaves_managed_tier_and_hint_node_models_untouched()
#[test]
fn crate_model_response_preserves_flow_completion_contract() {
- use tinyinference_core::message::{AssistantMessage, ContentBlock};
- use tinyinference_core::model::ModelResponse;
- use tinyinference_core::tool::ToolCall;
- use tinyinference_core::usage::Usage;
+ use tinyinference_llm::message::{AssistantMessage, ContentBlock};
+ use tinyinference_llm::model::ModelResponse;
+ use tinyinference_llm::tool::ToolCall;
+ use tinyinference_llm::usage::Usage;
let usage = Usage::new(11, 7);
let response = ModelResponse {
diff --git a/crates/openhuman-core/src/flows/tinyflows/caps/prompt.rs b/crates/openhuman-core/src/flows/tinyflows/caps/prompt.rs
index 696d94b53c..743d6f2b9c 100644
--- a/crates/openhuman-core/src/flows/tinyflows/caps/prompt.rs
+++ b/crates/openhuman-core/src/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: &tinyinference_core::model::ModelResponse,
+ response: &tinyinference_llm::model::ModelResponse,
) -> Value {
json!({
"text": response.text(),
diff --git a/crates/openhuman-core/src/inference/README.md b/crates/openhuman-core/src/inference/README.md
index 4d13466fe1..1c87d06248 100644
--- a/crates/openhuman-core/src/inference/README.md
+++ b/crates/openhuman-core/src/inference/README.md
@@ -10,7 +10,7 @@ compatibility aliases in `crates/openhuman-core/src/core/legacy_aliases.rs`.
## Responsibilities
-- Resolve workload names (`chat`, `reasoning`, `agentic`, `coding`, `memory`, `embeddings`, `heartbeat`, `learning`, etc.) and provider strings (`openhuman`, `cloud`, `ollama:<model>`, `lmstudio:<model>`, `claude_agent_sdk:<model>`, `claude-code:<model>`, `<slug>:<model>[@<temp>]`) to a concrete `Arc<dyn tinyinference_core::ChatModel<()>>` + model id.
+- Resolve workload names (`chat`, `reasoning`, `agentic`, `coding`, `memory`, `embeddings`, `heartbeat`, `learning`, etc.) and provider strings (`openhuman`, `cloud`, `ollama:<model>`, `lmstudio:<model>`, `claude_agent_sdk:<model>`, `claude-code:<model>`, `<slug>:<model>[@<temp>]`) to a concrete `Arc<dyn tinyinference_llm::ChatModel<()>>` + model id.
- Manage the local AI runtime: detect/spawn/adopt `ollama serve`, probe LM Studio over HTTP (never spawned), select OpenHuman-owned artifact paths, invoke TinyInference's Ollama/Piper installers, and enforce a minimum-context-window floor. Local STT (whisper.cpp) was retired; STT is now cloud/engine-configurable via `voice_server.stt_engine` (see `config/migrations/retire_local_whisper_stt.rs`).
- Provide chat, vision (multimodal), summarization, embeddings, sentiment, and "should react" inference operations.
- Preserve product-specific config-rejection, billing, and authentication policy while TinyInference owns provider-failure classification and TinyAgents owns model-call retry execution.
@@ -29,9 +29,10 @@ compatibility aliases in `crates/openhuman-core/src/core/legacy_aliases.rs`.
| `mod.rs` | Domain root; module decls + re-exports; wires `inference.*` controller schemas/controllers. |
| `ops.rs` | Canonical handler file — `inference_*` business logic returning `RpcOutcome<T>`; delegates to `local`, `provider`, `sentiment`, `device`, `presets`, `openai_oauth`. Includes Sentry-noise suppression for expected provider/user-config failures. |
| `schemas.rs` + `schemas/` (`catalog.rs`, `prompt_handlers.rs`, `oauth_handlers.rs`, `claude_code_handlers.rs`, `settings_handlers.rs`) | `inference.*` controller schemas + `handle_*` fns + param DTOs. |
-| `tinyinference_core::{classification,completion,device,sanitize,sentiment}` | Reusable parsing, hardware detection, diagnostics, and error sanitization called directly by the host. |
-| `tinyinference_core::model::model_id_supports_vision` | Upstream capability hint used directly for local model ids when the runtime cannot return an authoritative profile. |
-| `tinyinference_core::model::effective_temperature` | Applies unsupported-model glob patterns and overrides before provider serialization. |
+| `tinyinference_llm::{classification,completion,sentiment}` | Reusable language-model parsing and classification called directly by the host. |
+| `tinyinference_local::device`; `tinyinference_core::sanitize` | Shared hardware detection and credential-safe diagnostic formatting. |
+| `tinyinference_llm::model::model_id_supports_vision` | Upstream capability hint used directly for local model ids when the runtime cannot return an authoritative profile. |
+| `tinyinference_llm::model::effective_temperature` | Applies unsupported-model glob patterns and overrides before provider serialization. |
| `types.rs` | Serde DTOs: `LocalAiStatus`, `LocalAiAssetsStatus`, `LocalAiDownloadsProgress`, `LocalAiEmbeddingResult`, `LocalAiSpeechResult`, `LocalAiTtsResult`, etc. |
| `model_context.rs` | Known model context-window sizes (`context_window_for_model`) for pre-dispatch budgeting. |
| `config/ops/local_ai_presets.rs` | OpenHuman `LocalAiConfig` mapping for `tinyinference_local::presets`; reusable tiers, recommendations, and preset data live upstream. |
@@ -40,19 +41,19 @@ compatibility aliases in `crates/openhuman-core/src/core/legacy_aliases.rs`.
| `local/core.rs` | `LocalAiService` singleton (`global`/`try_global`), `model_artifact_path`. |
| `local/ops.rs` + `local/ops/` (`runtime_ops.rs`, `chat.rs`, `agent_chat.rs`, `reactions.rs`, `turn_guards.rs`) | Local RPC entrypoints (`local_ai_status/prompt/summarize/vision_prompt/embed/should_react`, `ReactionDecision`); re-exported as `local::rpc`. |
| `local/schemas.rs` | Local-runtime `inference.*` controller schemas + handlers. |
-| `tinyinference_core::local` | Ollama/LM Studio wire types, URL handling, model requirements, runtime profiles, provider selection, process flags, spawn-marker persistence, Ollama installation, and Piper binary/voice installation. |
+| `tinyinference_local` | Ollama/LM Studio wire types, URL handling, model requirements, runtime profiles, provider selection, process flags, spawn-marker persistence, Ollama installation, and Piper binary/voice installation. |
| `local/service/` | `LocalAiService` impl split: `bootstrap`, `assets`, `lm_studio`, `model_rpc`, `public_infer`, `speech`, `transcription`, `vision_embed`, `spawn_marker`, `ollama_admin/`. |
| `local/service/ollama_admin/` | Ollama daemon lifecycle split by concern: `binary`, `diagnostics`, `health`, `model_pull`, `server`, `util` (`test_ollama_connection`). |
| `provider/` | Native TinyAgents model construction plus host provider configuration, auth, error taxonomy, DTOs, and RPC helpers (was `providers/`). See `provider/README.md`. |
| `provider/types.rs` | Host request/response, streaming delta, tool-call, and usage DTOs retained at product/RPC boundaries. |
| `provider/factory.rs` + `provider/factory/` (`routing.rs`, `tiers.rs`, `turn_model.rs`, `subprocess_providers.rs`, `access_gates.rs`, `chat_model.rs`, `cloud_slug.rs`, `credentials.rs`, `local_runtime.rs`, `managed_backend.rs`, `primary_cloud.rs`) | `create_chat_model*`, `provider_for_role`, provider-string grammar, access gates, and local/cloud/CLI model construction; `BYOK_INCOMPLETE_SENTINEL`. |
-| `tinyinference_core::providers::{openai,anthropic}` | OpenAI-compatible and Anthropic model builders, including Codex metadata and local-runtime construction. |
+| `tinyinference_llm::providers::{openai,anthropic}` | OpenAI-compatible and Anthropic model builders, including Codex metadata and local-runtime construction. |
| `provider/openhuman_backend_model.rs` | Managed OpenHuman backend `ChatModel` with session JWT, billing metadata, and thread context. |
| `provider/openai_codex.rs` | `pub(crate)` Codex routing metadata (`OpenAiCodexRouting`, `resolve_openai_codex_routing`): re-targets the `openai` slug at the ChatGPT Codex backend with account/originator headers when Codex OAuth tokens exist. Not a `ChatModel` itself. |
| `tinyagents_harness::providers::claude_agent_sdk` | Claude Agent SDK subprocess provider and prompt-guided tool adapter. |
| `tinyagents_harness::providers::claude_code` | Claude Code CLI provider (`claude-code:<model>`), stream-json parser/driver, auth probes, settings, and subprocess lifecycle. OpenHuman supplies only its MCP endpoint and product routing. |
-| `provider/error_classify.rs` | OpenHuman policy layered on the reusable classifiers in `tinyinference_core::classification`. |
-| `tinyinference_core::providers::openai::AuthStyle` | Wire auth style consumed directly by crate-native builders. |
+| `provider/error_classify.rs` | OpenHuman policy layered on the reusable classifiers in `tinyinference_llm::classification`. |
+| `tinyinference_llm::providers::openai::AuthStyle` | Wire auth style consumed directly by crate-native builders. |
| `provider/ops/` | Host HTTP policy, model catalog RPC, and provider configuration; reusable sanitization lives in `tinyinference_core::sanitize`. |
| `provider/schemas.rs` | Defines a `providers.list_models` controller that is **not** wired into `core/all.rs`; the live method is `inference.list_models` (`openhuman.providers_list_models` survives only as a legacy alias). |
| `voice/` | Inference implementations imported by `crate::voice`. |
diff --git a/crates/openhuman-core/src/inference/embeddings/README.md b/crates/openhuman-core/src/inference/embeddings/README.md
index e51f05b4be..20a76a3b50 100644
--- a/crates/openhuman-core/src/inference/embeddings/README.md
+++ b/crates/openhuman-core/src/inference/embeddings/README.md
@@ -2,7 +2,7 @@
Host policy and RPC surface for vector embeddings. Concrete OpenAI-compatible,
Cohere, Voyage, Ollama, cloud-transport, retry, and rate-limit implementations
-live in `tinyinference_core::embeddings` (vendored at
+live in `tinyinference_embeddings` (vendored at
`vendor/tinyagents/vendor/tinyinference`); this domain selects and adapts
those models for OpenHuman.
@@ -52,4 +52,4 @@ stores fixed 1024-dimension vectors (`EMBEDDING_DIM` in tinymemory-core's
(`rpc/settings.rs`, `rpc/api_keys.rs`, `rpc/embed.rs`, `rpc/probe.rs`, `rpc/served_models.rs`).
- See `mod.rs` for the current provider set (Managed default via the backend's
`POST /openai/v1/embeddings`, Voyage, OpenAI, Cohere, Ollama, Custom, Noop)
- and `tinyinference_core::embeddings` for their concrete implementations.
+ and `tinyinference_embeddings` for their concrete implementations.
diff --git a/crates/openhuman-core/src/inference/embeddings/cloud_adapter.rs b/crates/openhuman-core/src/inference/embeddings/cloud_adapter.rs
index f658dc49ff..eea72e75d3 100644
--- a/crates/openhuman-core/src/inference/embeddings/cloud_adapter.rs
+++ b/crates/openhuman-core/src/inference/embeddings/cloud_adapter.rs
@@ -4,7 +4,7 @@ use std::path::PathBuf;
use std::sync::Arc;
use async_trait::async_trait;
-use tinyinference_core::embeddings::{
+use tinyinference_embeddings::{
BearerResolver, CloudEmbeddingModel, DEFAULT_CLOUD_DIMENSIONS, DEFAULT_CLOUD_MODEL,
};
@@ -32,10 +32,10 @@ impl OpenHumanCloudEmbedding {
let bearer: BearerResolver = Arc::new(move || {
let auth = AuthService::new(&state_dir, secrets_encrypt);
auth.get_provider_bearer_token(APP_SESSION_PROVIDER, None)
- .map_err(|error| tinyinference_core::Error::Embedding(error.to_string()))?
+ .map_err(|error| tinyinference_embeddings::Error::Embedding(error.to_string()))?
.filter(|token| !token.trim().is_empty())
.ok_or_else(|| {
- tinyinference_core::Error::Validation(
+ tinyinference_embeddings::Error::Validation(
"No backend session for cloud embeddings: log in to OpenHuman".into(),
)
})
diff --git a/crates/openhuman-core/src/inference/embeddings/factory.rs b/crates/openhuman-core/src/inference/embeddings/factory.rs
index 192d6073ec..918421b121 100644
--- a/crates/openhuman-core/src/inference/embeddings/factory.rs
+++ b/crates/openhuman-core/src/inference/embeddings/factory.rs
@@ -8,7 +8,7 @@ use super::cloud::{
};
use super::provider_trait::{EmbeddingProvider, TinyAgentsEmbeddingProvider};
use crate::config::Config;
-use tinyinference_core::embeddings::{
+use tinyinference_embeddings::{
model_supports_dimensions, CohereEmbeddingModel, NoopEmbeddingModel, OllamaEmbeddingModel,
OpenAiEmbeddingModel, VoyageEmbeddingModel,
};
@@ -105,7 +105,7 @@ pub fn create_embedding_provider(
"",
model,
dims,
- tinyinference_core::embeddings::VOYAGE_API_BASE,
+ tinyinference_embeddings::VOYAGE_API_BASE,
),
)),
"ollama" => {
@@ -159,7 +159,7 @@ pub fn create_embedding_provider_with_credentials(
api_key,
model,
dims,
- tinyinference_core::embeddings::VOYAGE_API_BASE,
+ tinyinference_embeddings::VOYAGE_API_BASE,
),
)),
"ollama" => {
diff --git a/crates/openhuman-core/src/inference/embeddings/mod.rs b/crates/openhuman-core/src/inference/embeddings/mod.rs
index e0fbc50ea8..ed32dc822b 100644
--- a/crates/openhuman-core/src/inference/embeddings/mod.rs
+++ b/crates/openhuman-core/src/inference/embeddings/mod.rs
@@ -46,7 +46,7 @@ pub use schemas::{
all_controller_schemas as all_embeddings_controller_schemas,
all_registered_controllers as all_embeddings_registered_controllers,
};
-pub use tinyinference_core::embeddings::{DEFAULT_OLLAMA_DIMENSIONS, DEFAULT_OLLAMA_MODEL};
+pub use tinyinference_embeddings::{DEFAULT_OLLAMA_DIMENSIONS, DEFAULT_OLLAMA_MODEL};
/// The **intended** embedding selection — `(provider, model, dimensions)`.
///
diff --git a/crates/openhuman-core/src/inference/embeddings/mod_tests.rs b/crates/openhuman-core/src/inference/embeddings/mod_tests.rs
index 2d3dcb51e1..ef32126737 100644
--- a/crates/openhuman-core/src/inference/embeddings/mod_tests.rs
+++ b/crates/openhuman-core/src/inference/embeddings/mod_tests.rs
@@ -5,7 +5,7 @@
//! `embeddings` module.
use super::*;
-use tinyinference_core::embeddings::{DEFAULT_OLLAMA_DIMENSIONS, DEFAULT_OLLAMA_MODEL};
+use tinyinference_embeddings::{DEFAULT_OLLAMA_DIMENSIONS, DEFAULT_OLLAMA_MODEL};
// ── Trait default method ─────────────────────────────────
diff --git a/crates/openhuman-core/src/inference/embeddings/provider_trait.rs b/crates/openhuman-core/src/inference/embeddings/provider_trait.rs
index 478cc57b00..758222f549 100644
--- a/crates/openhuman-core/src/inference/embeddings/provider_trait.rs
+++ b/crates/openhuman-core/src/inference/embeddings/provider_trait.rs
@@ -27,7 +27,7 @@
//!
//! The engine keeps its own copy for its own factory. That is not duplication of
//! *state*: the adapter is a stateless newtype over a boxed trait object, both
-//! sides wrap the same `tinyinference_core::embeddings::EmbeddingModel` (one
+//! sides wrap the same `tinyinference_embeddings::EmbeddingModel` (one
//! crate — the root `[patch.crates-io]` points every consumer at
//! `vendor/tinyagents`), and both produce the same
//! `tinymemory_api::host::EmbeddingProvider`. Nothing reads the other's output,
@@ -39,7 +39,7 @@
//! before this move and one written after land in the same embedding space.
use async_trait::async_trait;
-use tinyinference_core::embeddings::EmbeddingModel;
+use tinyinference_embeddings::EmbeddingModel;
pub use tinymemory_api::host::{format_embedding_signature, EmbeddingProvider};
diff --git a/crates/openhuman-core/src/inference/embeddings/rpc/probe.rs b/crates/openhuman-core/src/inference/embeddings/rpc/probe.rs
index 396b447101..6ccae0f7eb 100644
--- a/crates/openhuman-core/src/inference/embeddings/rpc/probe.rs
+++ b/crates/openhuman-core/src/inference/embeddings/rpc/probe.rs
@@ -3,7 +3,7 @@
use crate::rpc::RpcOutcome;
-use tinyinference_core::embeddings::model_supports_dimensions;
+use tinyinference_embeddings::model_supports_dimensions;
/// Send one OpenAI-compatible embedding request without requesting or
/// validating a vector width. This is intentionally separate from the live
diff --git a/crates/openhuman-core/src/inference/http/server.rs b/crates/openhuman-core/src/inference/http/server.rs
index 33063af0fc..99f5a6de94 100644
--- a/crates/openhuman-core/src/inference/http/server.rs
+++ b/crates/openhuman-core/src/inference/http/server.rs
@@ -33,8 +33,8 @@ use serde_json::json;
use std::collections::HashSet;
use std::sync::atomic::{AtomicBool, Ordering};
use std::sync::Arc;
-use tinyinference_core::message::Message;
-use tinyinference_core::model::{ModelRequest, ModelStreamItem};
+use tinyinference_llm::message::Message;
+use tinyinference_llm::model::{ModelRequest, ModelStreamItem};
use tracing::{debug, warn};
use super::types::{
@@ -130,7 +130,7 @@ async fn chat_completions_handler(
// check on the outbound body, so this is belt-and-suspenders for logging.
let temperature = {
let raw = req.temperature.unwrap_or(config.default_temperature);
- let suppressed = tinyinference_core::model::effective_temperature(
+ let suppressed = tinyinference_llm::model::effective_temperature(
&model_id,
Some(raw),
None,
diff --git a/crates/openhuman-core/src/inference/local/README.md b/crates/openhuman-core/src/inference/local/README.md
index 3f42795a0c..9d8c1a1067 100644
--- a/crates/openhuman-core/src/inference/local/README.md
+++ b/crates/openhuman-core/src/inference/local/README.md
@@ -9,12 +9,12 @@ single-crate layout); see `../README.md` for the wider `inference` domain.
| File / dir | Role |
| --- | --- |
-| `mod.rs` | Exposes the host service and RPC surface; reusable local-runtime APIs are consumed directly from `tinyinference_core::local`. |
+| `mod.rs` | Exposes the host service and RPC surface; reusable local-runtime APIs are consumed directly from `tinyinference_local`. |
| `core.rs` | `LocalAiService` singleton (`global`/`try_global`), `model_artifact_path`. |
| `ops.rs` + `ops/` (`runtime_ops.rs`, `chat.rs`, `agent_chat.rs`, `reactions.rs`, `turn_guards.rs`) | RPC entry points: `local_ai_status/prompt/summarize/vision_prompt/embed/transcribe[_bytes]/tts/chat`, `agent_chat[_simple]`, `local_ai_should_react` (`ReactionDecision`), assets/downloads status. |
| `schemas.rs` | Local-runtime `inference.*` controller schemas + handlers (see RPC below); exported as `all_local_inference_controller_schemas` / `all_local_inference_registered_controllers`. |
| `install.rs`, `install_piper.rs`, `voice_install_common.rs` | Ollama/Piper download and install; shared download-progress plumbing. No Whisper install any more — local STT was retired (`config/migrations/retire_local_whisper_stt.rs`). |
-| `tinyinference_core::local` | Ollama/LM Studio wire contracts, URL validation, model requirements, profiles, provider selection, subprocess flags, and spawn markers. |
+| `tinyinference_local` | Ollama/LM Studio wire contracts, URL validation, model requirements, profiles, provider selection, subprocess flags, and spawn markers. |
| `service/` | `LocalAiService` impl, split by concern (below). |
## `service/` split
diff --git a/crates/openhuman-core/src/inference/local/ops/agent_chat.rs b/crates/openhuman-core/src/inference/local/ops/agent_chat.rs
index c2984fae05..42e1edd25d 100644
--- a/crates/openhuman-core/src/inference/local/ops/agent_chat.rs
+++ b/crates/openhuman-core/src/inference/local/ops/agent_chat.rs
@@ -283,8 +283,8 @@ pub async fn agent_chat_simple(
);
let run = model.invoke(
&(),
- tinyinference_core::model::ModelRequest::new(vec![
- tinyinference_core::message::Message::user(message.to_string()),
+ tinyinference_llm::model::ModelRequest::new(vec![
+ tinyinference_llm::message::Message::user(message.to_string()),
])
.with_model(default_model.clone())
.with_temperature(effective.default_temperature),
diff --git a/crates/openhuman-core/src/inference/local/service/model_rpc.rs b/crates/openhuman-core/src/inference/local/service/model_rpc.rs
index dc7ed777ee..48d97c12ed 100644
--- a/crates/openhuman-core/src/inference/local/service/model_rpc.rs
+++ b/crates/openhuman-core/src/inference/local/service/model_rpc.rs
@@ -5,10 +5,10 @@
//! neutral `ChatModel` interface.
use crate::config::Config;
-use tinyinference_core::message::Message;
-use tinyinference_core::model::{ChatModel, ModelRequest};
-use tinyinference_core::providers::openai::OpenAiModel;
-use tinyinference_core::providers::{ProviderKind, ProviderSpec};
+use tinyinference_llm::message::Message;
+use tinyinference_llm::model::{ChatModel, ModelRequest};
+use tinyinference_llm::providers::openai::OpenAiModel;
+use tinyinference_llm::providers::{ProviderKind, ProviderSpec};
use tinyinference_local::lm_studio::lm_studio_base_url;
use tinyinference_local::ollama::{ollama_base_url_from_override, redact_ollama_base_url};
use tinyinference_local::provider::{provider_from_name, LocalAiProvider};
@@ -140,7 +140,7 @@ pub(super) async fn invoke(
}
fn model_outcome(
- response: tinyinference_core::model::ModelResponse,
+ response: tinyinference_llm::model::ModelResponse,
allow_empty: bool,
) -> Result<ModelRpcOutcome, String> {
let mut reply = response.text();
@@ -150,7 +150,7 @@ fn model_outcome(
.content
.iter()
.filter_map(|block| match block {
- tinyinference_core::message::ContentBlock::Thinking { text, .. } => {
+ tinyinference_llm::message::ContentBlock::Thinking { text, .. } => {
Some(text.as_str())
}
_ => None,
diff --git a/crates/openhuman-core/src/inference/local/service/model_rpc_tests.rs b/crates/openhuman-core/src/inference/local/service/model_rpc_tests.rs
index 7a0aeb55cd..3b02ef86d8 100644
--- a/crates/openhuman-core/src/inference/local/service/model_rpc_tests.rs
+++ b/crates/openhuman-core/src/inference/local/service/model_rpc_tests.rs
@@ -1,8 +1,8 @@
use super::{local_model, model_outcome, throughput};
use crate::config::Config;
-use tinyinference_core::message::{AssistantMessage, ContentBlock};
-use tinyinference_core::model::ModelResponse;
-use tinyinference_core::usage::Usage;
+use tinyinference_llm::message::{AssistantMessage, ContentBlock};
+use tinyinference_llm::model::ModelResponse;
+use tinyinference_llm::usage::Usage;
#[test]
fn throughput_reads_ollama_timing_metadata() {
diff --git a/crates/openhuman-core/src/inference/local/service/ollama_admin/diagnostics.rs b/crates/openhuman-core/src/inference/local/service/ollama_admin/diagnostics.rs
index bb30acc149..5252c00092 100644
--- a/crates/openhuman-core/src/inference/local/service/ollama_admin/diagnostics.rs
+++ b/crates/openhuman-core/src/inference/local/service/ollama_admin/diagnostics.rs
@@ -16,8 +16,7 @@ use super::super::LocalAiService;
use super::health::OllamaHealthStatus;
use super::util::lm_studio_models_error_means_unreachable;
-const MIN_CONTEXT_TOKENS: u64 =
- tinyinference_core::embeddings::RECOMMENDED_OLLAMA_CONTEXT_TOKENS as u64;
+const MIN_CONTEXT_TOKENS: u64 = tinyinference_embeddings::RECOMMENDED_OLLAMA_CONTEXT_TOKENS as u64;
impl LocalAiService {
/// Run full diagnostics: check Ollama server health, list installed models,
diff --git a/crates/openhuman-core/src/inference/local/service/public_infer.rs b/crates/openhuman-core/src/inference/local/service/public_infer.rs
index 54ee87d730..648ad94b2e 100644
--- a/crates/openhuman-core/src/inference/local/service/public_infer.rs
+++ b/crates/openhuman-core/src/inference/local/service/public_infer.rs
@@ -1,6 +1,6 @@
use crate::config::Config;
-use tinyinference_core::completion::sanitize_inline_completion;
-use tinyinference_core::message::Message;
+use tinyinference_llm::completion::sanitize_inline_completion;
+use tinyinference_llm::message::Message;
use tinyinference_local::models as model_ids;
use super::LocalAiService;
diff --git a/crates/openhuman-core/src/inference/local/service/vision_embed.rs b/crates/openhuman-core/src/inference/local/service/vision_embed.rs
index 11398faeff..a43e690ff2 100644
--- a/crates/openhuman-core/src/inference/local/service/vision_embed.rs
+++ b/crates/openhuman-core/src/inference/local/service/vision_embed.rs
@@ -2,7 +2,7 @@ use crate::agent::multimodal;
use crate::config::ops::local_ai_presets;
use crate::config::Config;
use crate::inference::types::LocalAiEmbeddingResult;
-use tinyinference_core::embeddings::{
+use tinyinference_embeddings::{
EmbeddingModel, OllamaEmbeddingModel, DEFAULT_OLLAMA_DIMENSIONS,
RECOMMENDED_OLLAMA_CONTEXT_TOKENS,
};
diff --git a/crates/openhuman-core/src/inference/model_context.rs b/crates/openhuman-core/src/inference/model_context.rs
index 12ac2b5f5c..975119d8a8 100644
--- a/crates/openhuman-core/src/inference/model_context.rs
+++ b/crates/openhuman-core/src/inference/model_context.rs
@@ -51,7 +51,7 @@ pub fn context_window_for_model(model: &str) -> Option<u64> {
return Some(u64::from(price.context_window));
}
- if let Some(window) = tinyinference_core::model::context_window_for_model_id(normalized) {
+ if let Some(window) = tinyinference_llm::model::context_window_for_model_id(normalized) {
tracing::debug!(
model = normalized,
context_window = window,
diff --git a/crates/openhuman-core/src/inference/ops.rs b/crates/openhuman-core/src/inference/ops.rs
index f90297bfc8..5b0e23c200 100644
--- a/crates/openhuman-core/src/inference/ops.rs
+++ b/crates/openhuman-core/src/inference/ops.rs
@@ -9,9 +9,9 @@ use crate::inference::provider as providers;
use crate::inference::{LocalAiEmbeddingResult, LocalAiStatus};
use crate::rpc::RpcOutcome;
use serde_json::{json, Value};
-use tinyinference_core::message::Message;
-use tinyinference_core::model::ModelRequest;
-use tinyinference_core::sentiment::{parse_sentiment_response, SentimentResult};
+use tinyinference_llm::message::Message;
+use tinyinference_llm::model::ModelRequest;
+use tinyinference_llm::sentiment::{parse_sentiment_response, SentimentResult};
use tinyinference_local::device::detect_device_profile;
use tinyinference_local::presets;
use tracing::{debug, error, warn};
diff --git a/crates/openhuman-core/src/inference/provider/README.md b/crates/openhuman-core/src/inference/provider/README.md
index 37119775ff..79e1493cd3 100644
--- a/crates/openhuman-core/src/inference/provider/README.md
+++ b/crates/openhuman-core/src/inference/provider/README.md
@@ -20,26 +20,26 @@ domain.
gates before building a model.
- **Models** — `OpenHumanBackendModel` + `PROVIDER_LABEL`
(`openhuman_backend_model.rs`); OpenAI-compatible and Anthropic builders live
- in `tinyinference_core::providers` and are called directly.
+ in `tinyinference_llm::providers` and are called directly.
- **DTOs** (`types.rs`) — `ChatRequest`, `ChatResponse`, `ProviderDelta`,
`ToolCall`, `UsageInfo`, `AGENT_TURN_MAX_OUTPUT_TOKENS`.
- **Error classifiers** — reusable classifiers live in
- `tinyinference_core::classification`; this directory retains OpenHuman managed-backend and telemetry policy.
+ `tinyinference_llm::classification`; this directory retains OpenHuman managed-backend and telemetry policy.
## Transports
| Transport | File | Provider-string prefix |
| --- | --- | --- |
| Managed OpenHuman backend | `openhuman_backend_model.rs` | `openhuman` / `cloud` (session JWT + billing metadata) |
-| OpenAI-compatible (BYOK cloud slugs, local runtimes) | `tinyinference_core::providers::openai` | `<slug>:<model>`, `ollama:<model>`, `lmstudio:<model>`, `mlx:<model>`, `omlx:<model>`, `local-openai:<model>` |
-| Anthropic Messages API (prompt caching) | `tinyinference_core::providers::anthropic` | `<slug>:<model>` whose endpoint is the first-party Messages API and native tool calling is on |
-| Codex OAuth / Responses API | `openai_codex.rs` host OAuth selection plus `tinyinference_core::providers::openai::codex` metadata | the `openai` cloud slug once Codex OAuth tokens exist |
+| OpenAI-compatible (BYOK cloud slugs, local runtimes) | `tinyinference_llm::providers::openai` | `<slug>:<model>`, `ollama:<model>`, `lmstudio:<model>`, `mlx:<model>`, `omlx:<model>`, `local-openai:<model>` |
+| Anthropic Messages API (prompt caching) | `tinyinference_llm::providers::anthropic` | `<slug>:<model>` whose endpoint is the first-party Messages API and native tool calling is on |
+| Codex OAuth / Responses API | `openai_codex.rs` host OAuth selection plus `tinyinference_llm::providers::openai::codex` metadata | the `openai` cloud slug once Codex OAuth tokens exist |
| Claude Agent SDK subprocess | `tinyagents_harness::providers::claude_agent_sdk` | `claude_agent_sdk` / `claude_agent_sdk:<model>` |
| Claude Code CLI subprocess | `claude_code/` — see its own [README](claude_code/README.md) | `claude-code:<model>` |
## Calls into
-- `tinyinference_core::model::ChatModel` (`vendor/tinyagents/vendor/tinyinference`)
+- `tinyinference_llm::model::ChatModel` (`vendor/tinyagents/vendor/tinyinference`)
— the trait every transport implements.
- `crate::config` — cloud-provider schema (`AuthStyle`, slug reservation),
`Config::claude_agent_sdk`, abstract tier model constants.
diff --git a/crates/openhuman-core/src/inference/provider/error_classify.rs b/crates/openhuman-core/src/inference/provider/error_classify.rs
index 26e6e59526..88eff917b3 100644
--- a/crates/openhuman-core/src/inference/provider/error_classify.rs
+++ b/crates/openhuman-core/src/inference/provider/error_classify.rs
@@ -1,6 +1,6 @@
//! OpenHuman-specific policy layered on TinyInference's provider-neutral classifier.
-use tinyinference_core::failure::{
+use tinyinference_llm::failure::{
classify_provider_failure, parse_retry_after_ms as parse_inference_retry_after,
ProviderFailureClass,
};
diff --git a/crates/openhuman-core/src/inference/provider/factory.rs b/crates/openhuman-core/src/inference/provider/factory.rs
index df507f9a00..e2d2bf5be4 100644
--- a/crates/openhuman-core/src/inference/provider/factory.rs
+++ b/crates/openhuman-core/src/inference/provider/factory.rs
@@ -121,12 +121,12 @@ use crate::inference::provider::ProviderRuntimeOptions;
use crate::security::credentials::AuthService;
use std::sync::Arc;
use tinyagents_harness::providers::claude_agent_sdk::ClaudeAgentSdkProvider;
-use tinyinference_core::model::{ChatModel, ModelRequest, ModelResponse, ModelStream};
-use tinyinference_core::providers::openai::codex::{
+use tinyinference_llm::model::{ChatModel, ModelRequest, ModelResponse, ModelStream};
+use tinyinference_llm::providers::openai::codex::{
openai_codex_client_version, openai_codex_user_agent, OPENAI_CODEX_ACCOUNT_HEADER,
OPENAI_CODEX_ORIGINATOR, OPENAI_CODEX_ORIGINATOR_HEADER,
};
-use tinyinference_core::providers::openai::AuthStyle as CompatAuthStyle;
+use tinyinference_llm::providers::openai::AuthStyle as CompatAuthStyle;
/// Sentinel meaning "use the OpenHuman backend session JWT".
pub const PROVIDER_OPENHUMAN: &str = "openhuman";
diff --git a/crates/openhuman-core/src/inference/provider/factory/chat_model.rs b/crates/openhuman-core/src/inference/provider/factory/chat_model.rs
index 3634d14c50..db319d0c22 100644
--- a/crates/openhuman-core/src/inference/provider/factory/chat_model.rs
+++ b/crates/openhuman-core/src/inference/provider/factory/chat_model.rs
@@ -247,7 +247,7 @@ pub(super) struct DefaultTemperatureChatModel {
#[async_trait::async_trait]
impl ChatModel<()> for DefaultTemperatureChatModel {
- fn profile(&self) -> Option<&tinyinference_core::model::ModelProfile> {
+ fn profile(&self) -> Option<&tinyinference_llm::model::ModelProfile> {
self.inner.profile()
}
@@ -259,7 +259,7 @@ impl ChatModel<()> for DefaultTemperatureChatModel {
&self,
state: &(),
mut request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
+ ) -> tinyinference_llm::Result<ModelResponse> {
if request.temperature.is_none() {
request.temperature = Some(self.temperature);
}
@@ -270,7 +270,7 @@ impl ChatModel<()> for DefaultTemperatureChatModel {
&self,
state: &(),
mut request: ModelRequest,
- ) -> tinyinference_core::Result<ModelStream> {
+ ) -> tinyinference_llm::Result<ModelStream> {
if request.temperature.is_none() {
request.temperature = Some(self.temperature);
}
diff --git a/crates/openhuman-core/src/inference/provider/factory/cloud_slug.rs b/crates/openhuman-core/src/inference/provider/factory/cloud_slug.rs
index 1c48cf13bd..0482533135 100644
--- a/crates/openhuman-core/src/inference/provider/factory/cloud_slug.rs
+++ b/crates/openhuman-core/src/inference/provider/factory/cloud_slug.rs
@@ -7,10 +7,10 @@ use crate::inference::provider::factory::access_gates::verify_backend_session_ac
#[cfg(not(test))]
use crate::inference::provider::factory::access_gates::verify_session_active;
use crate::inference::provider::fallback_diagnostics;
-use tinyinference_core::providers::anthropic::{
+use tinyinference_llm::providers::anthropic::{
build_anthropic_model, endpoint_is_anthropic_messages, AnthropicConfig,
};
-use tinyinference_core::providers::openai::{
+use tinyinference_llm::providers::openai::{
build_openai_model, endpoint_is_openrouter, OpenAiConfig,
};
@@ -23,7 +23,7 @@ pub(super) struct CloudSlugResolution<'a> {
entry: &'a crate::config::schema::cloud_providers::CloudProviderCreds,
effective_model: String,
key: String,
- codex: tinyinference_core::providers::openai::codex::OpenAiCodexRouting,
+ codex: tinyinference_llm::providers::openai::codex::OpenAiCodexRouting,
}
pub(super) fn resolve_cloud_slug<'a>(
diff --git a/crates/openhuman-core/src/inference/provider/factory/local_runtime.rs b/crates/openhuman-core/src/inference/provider/factory/local_runtime.rs
index 5082362638..e29bd07884 100644
--- a/crates/openhuman-core/src/inference/provider/factory/local_runtime.rs
+++ b/crates/openhuman-core/src/inference/provider/factory/local_runtime.rs
@@ -3,7 +3,7 @@
use super::*;
use crate::inference::provider::factory::access_gates::verify_provider_session;
-use tinyinference_core::providers::openai::build_local_runtime_chat_model;
+use tinyinference_llm::providers::openai::build_local_runtime_chat_model;
/// Local OpenAI-compatible runtimes (Ollama / LM Studio / MLX / OMLX /
/// local-openai) as a crate-native [`ChatModel`] (issue #4727).
diff --git a/crates/openhuman-core/src/inference/provider/factory/managed_backend.rs b/crates/openhuman-core/src/inference/provider/factory/managed_backend.rs
index e9905d4f04..eb24074be9 100644
--- a/crates/openhuman-core/src/inference/provider/factory/managed_backend.rs
+++ b/crates/openhuman-core/src/inference/provider/factory/managed_backend.rs
@@ -233,11 +233,11 @@ pub(crate) fn make_openhuman_backend_model(
role: &str,
config: &Config,
) -> anyhow::Result<(
- std::sync::Arc<dyn tinyinference_core::model::ChatModel<()>>,
+ std::sync::Arc<dyn tinyinference_llm::model::ChatModel<()>>,
String,
)> {
let (model_client, model) = resolve_managed_backend(role, config)?;
- let chat: std::sync::Arc<dyn tinyinference_core::model::ChatModel<()>> =
+ let chat: std::sync::Arc<dyn tinyinference_llm::model::ChatModel<()>> =
std::sync::Arc::new(model_client);
Ok((chat, model))
}
diff --git a/crates/openhuman-core/src/inference/provider/factory_crate_native_tests.rs b/crates/openhuman-core/src/inference/provider/factory_crate_native_tests.rs
index 9acd6a6184..3bdca7f937 100644
--- a/crates/openhuman-core/src/inference/provider/factory_crate_native_tests.rs
+++ b/crates/openhuman-core/src/inference/provider/factory_crate_native_tests.rs
@@ -75,8 +75,8 @@ 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::testkit::ScriptedModel;
- use tinyinference_core::message::Message;
- use tinyinference_core::model::ModelRequest;
+ use tinyinference_llm::message::Message;
+ use tinyinference_llm::model::ModelRequest;
let _guard = crate::inference::inference_test_guard();
@@ -99,8 +99,8 @@ async fn create_chat_model_uses_native_test_override() {
async fn one_shot_chat_models_preserve_factory_temperature_as_request_default() {
use async_trait::async_trait;
use std::sync::{Arc, Mutex};
- use tinyinference_core::message::Message;
- use tinyinference_core::model::{ModelRequest, ModelResponse};
+ use tinyinference_llm::message::Message;
+ use tinyinference_llm::model::{ModelRequest, ModelResponse};
struct TemperatureProbe {
seen: Arc<Mutex<Vec<Option<f64>>>>,
@@ -112,7 +112,7 @@ async fn one_shot_chat_models_preserve_factory_temperature_as_request_default()
&self,
_state: &(),
request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
+ ) -> tinyinference_llm::Result<ModelResponse> {
self.seen
.lock()
.expect("probe lock")
diff --git a/crates/openhuman-core/src/inference/provider/factory_test_provider_override_tests.rs b/crates/openhuman-core/src/inference/provider/factory_test_provider_override_tests.rs
index 79e172e7fc..5d02af2982 100644
--- a/crates/openhuman-core/src/inference/provider/factory_test_provider_override_tests.rs
+++ b/crates/openhuman-core/src/inference/provider/factory_test_provider_override_tests.rs
@@ -1,5 +1,5 @@
use std::sync::{Arc, Mutex, OnceLock};
-use tinyinference_core::model::ChatModel;
+use tinyinference_llm::model::ChatModel;
static OVERRIDE: OnceLock<Mutex<Option<Arc<dyn ChatModel<()>>>>> = OnceLock::new();
fn cell() -> &'static Mutex<Option<Arc<dyn ChatModel<()>>>> {
diff --git a/crates/openhuman-core/src/inference/provider/openai_codex.rs b/crates/openhuman-core/src/inference/provider/openai_codex.rs
index 897294aa1f..21f76e3958 100644
--- a/crates/openhuman-core/src/inference/provider/openai_codex.rs
+++ b/crates/openhuman-core/src/inference/provider/openai_codex.rs
@@ -1,5 +1,5 @@
use crate::config::Config;
-use tinyinference_core::providers::openai::codex::{
+use tinyinference_llm::providers::openai::codex::{
OpenAiCodexRouting, OPENAI_CODEX_BACKEND_BASE_URL,
};
diff --git a/crates/openhuman-core/src/inference/provider/openhuman_backend_model.rs b/crates/openhuman-core/src/inference/provider/openhuman_backend_model.rs
index 32a3d5e7a2..9e86798faf 100644
--- a/crates/openhuman-core/src/inference/provider/openhuman_backend_model.rs
+++ b/crates/openhuman-core/src/inference/provider/openhuman_backend_model.rs
@@ -28,12 +28,12 @@ use serde_json::Value;
use std::path::PathBuf;
use std::time::Duration;
-use tinyinference_core::message::Message;
-use tinyinference_core::model::{
+use tinyinference_llm::message::Message;
+use tinyinference_llm::model::{
ChatModel, Modalities, ModelProfile, ModelRequest, ModelResponse, ModelStream, ProviderError,
};
-use tinyinference_core::providers::openai::OpenAiModel;
-use tinyinference_core::Error as TiError;
+use tinyinference_llm::providers::openai::OpenAiModel;
+use tinyinference_llm::Error as TiError;
use super::ProviderRuntimeOptions;
use crate::agent::tinyagents::thread_context;
@@ -211,7 +211,7 @@ impl OpenHumanBackendModel {
/// Resolve the current JWT + base URL and build a fresh crate `OpenAiModel`
/// (Bearer). Rebuilt per call because the session JWT rotates.
- fn build_wire_model(&self) -> tinyinference_core::Result<OpenAiModel> {
+ fn build_wire_model(&self) -> tinyinference_llm::Result<OpenAiModel> {
let token = self
.resolve_bearer()
.map_err(|e| TiError::Model(e.to_string()))?;
@@ -553,7 +553,7 @@ impl ChatModel<()> for OpenHumanBackendModel {
&self,
state: &(),
request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
+ ) -> tinyinference_llm::Result<ModelResponse> {
let model = self.build_wire_model()?;
let response = match model.invoke(state, with_thread_id(request)).await {
Ok(response) => response,
@@ -570,7 +570,7 @@ impl ChatModel<()> for OpenHumanBackendModel {
&self,
state: &(),
request: ModelRequest,
- ) -> tinyinference_core::Result<ModelStream> {
+ ) -> tinyinference_llm::Result<ModelStream> {
let model = self.build_wire_model()?;
// NOTE (streaming billing parity): the crate SSE parser sets `raw: None`
// on the terminal `Completed` response, so the `openhuman.billing` envelope
diff --git a/crates/openhuman-core/src/inference/provider/openhuman_backend_model_tests.rs b/crates/openhuman-core/src/inference/provider/openhuman_backend_model_tests.rs
index c2348d4fd6..c900d3f0d3 100644
--- a/crates/openhuman-core/src/inference/provider/openhuman_backend_model_tests.rs
+++ b/crates/openhuman-core/src/inference/provider/openhuman_backend_model_tests.rs
@@ -1,6 +1,6 @@
use super::*;
use crate::inference::provider::ProviderRuntimeOptions;
-use tinyinference_core::message::Message;
+use tinyinference_llm::message::Message;
fn backend() -> OpenHumanBackendModel {
OpenHumanBackendModel::new(
@@ -53,8 +53,8 @@ fn resolve_model_normalizes_blank_and_trims_non_empty_values() {
#[test]
fn project_managed_usage_recovers_charged_and_cached() {
use crate::agent::tinyagents::model::usage_info_from_response;
- use tinyinference_core::message::AssistantMessage;
- use tinyinference_core::usage::Usage;
+ use tinyinference_llm::message::AssistantMessage;
+ use tinyinference_llm::usage::Usage;
let raw = serde_json::json!({
"openhuman": {
@@ -99,8 +99,8 @@ fn project_managed_usage_recovers_charged_and_cached() {
#[test]
fn project_managed_usage_is_noop_without_envelope() {
use crate::agent::tinyagents::model::usage_info_from_response;
- use tinyinference_core::message::AssistantMessage;
- use tinyinference_core::usage::Usage;
+ use tinyinference_llm::message::AssistantMessage;
+ use tinyinference_llm::usage::Usage;
let response = ModelResponse {
message: AssistantMessage {
diff --git a/crates/openhuman-core/src/inference/provider/ops/http_error/quota_and_credits.rs b/crates/openhuman-core/src/inference/provider/ops/http_error/quota_and_credits.rs
index 267ae628c3..885188e087 100644
--- a/crates/openhuman-core/src/inference/provider/ops/http_error/quota_and_credits.rs
+++ b/crates/openhuman-core/src/inference/provider/ops/http_error/quota_and_credits.rs
@@ -5,7 +5,7 @@
/// user-state error that should be demoted from Sentry to an info log.
pub fn is_budget_exhausted_http_400(status: reqwest::StatusCode, body: &str) -> bool {
status == reqwest::StatusCode::BAD_REQUEST
- && tinyinference_core::classification::is_budget_exhausted_message(body)
+ && tinyinference_llm::classification::is_budget_exhausted_message(body)
}
pub fn log_budget_exhausted_http_400(
diff --git a/crates/openhuman-core/src/inference/provider/ops/models.rs b/crates/openhuman-core/src/inference/provider/ops/models.rs
index 80fc0bd0e0..cb62c3f0b7 100644
--- a/crates/openhuman-core/src/inference/provider/ops/models.rs
+++ b/crates/openhuman-core/src/inference/provider/ops/models.rs
@@ -14,17 +14,17 @@
//! [`ModelInfo`] entries.
use super::super::openai_codex::resolve_openai_codex_routing;
-use tinyinference_core::providers::openai::codex::{
+use tinyinference_core::sanitize::sanitize_api_error;
+use tinyinference_llm::providers::openai::codex::{
openai_codex_client_version, openai_codex_user_agent, OpenAiCodexRouting,
OPENAI_CODEX_ACCOUNT_HEADER, OPENAI_CODEX_ORIGINATOR, OPENAI_CODEX_ORIGINATOR_HEADER,
};
-use tinyinference_core::sanitize::sanitize_api_error;
mod catalog_listing;
mod local_runtime;
mod managed_provider;
mod openrouter;
-use tinyinference_core::catalog::{
+use tinyinference_llm::catalog::{
merge_openai_codex_model_hints, parse_models_response, ModelInfo,
};
diff --git a/crates/openhuman-core/src/inference/provider/ops_tests.rs b/crates/openhuman-core/src/inference/provider/ops_tests.rs
index 241ba082d5..75145384b9 100644
--- a/crates/openhuman-core/src/inference/provider/ops_tests.rs
+++ b/crates/openhuman-core/src/inference/provider/ops_tests.rs
@@ -15,8 +15,8 @@ use std::sync::{
Arc, Mutex,
};
use tempfile::TempDir;
-use tinyinference_core::providers::openai::codex::openai_codex_client_version;
use tinyinference_core::sanitize::{sanitize_api_error, MAX_API_ERROR_CHARS};
+use tinyinference_llm::providers::openai::codex::openai_codex_client_version;
#[derive(Clone)]
struct ModelProbeState {
diff --git a/crates/openhuman-core/src/inference/provider/ops_tests_models_parsing_tests.rs b/crates/openhuman-core/src/inference/provider/ops_tests_models_parsing_tests.rs
index 9792e80620..41059dba43 100644
--- a/crates/openhuman-core/src/inference/provider/ops_tests_models_parsing_tests.rs
+++ b/crates/openhuman-core/src/inference/provider/ops_tests_models_parsing_tests.rs
@@ -1,5 +1,5 @@
use super::*;
-use tinyinference_core::catalog::{
+use tinyinference_llm::catalog::{
merge_openai_codex_model_hints, parse_models_response, ModelInfo,
};
diff --git a/crates/openhuman-core/src/memory/tree/health/taxonomy.rs b/crates/openhuman-core/src/memory/tree/health/taxonomy.rs
index 486bae50ab..aba9ac2f22 100644
--- a/crates/openhuman-core/src/memory/tree/health/taxonomy.rs
+++ b/crates/openhuman-core/src/memory/tree/health/taxonomy.rs
@@ -37,7 +37,7 @@
//! `classify_embed_error{,_str}` — the parser that turns an embed-stage error
//! *string* into a [`PipelineFailure`]. It rode the same `pub use` and has no
//! host caller: it reads the wording of `OpenAiEmbedding::embed`,
-//! `OpenHumanCloudEmbedding::embed` and `tinyinference_core::embeddings::ollama`,
+//! `OpenHumanCloudEmbedding::embed` and `tinyinference_embeddings::ollama`,
//! all of which run inside whichever engine ran the embed stage. Classifying
//! there is the point — the driver hands this host a code, not a message — so
//! the classifier stays with the stage and a copy here would be a second table
diff --git a/crates/openhuman-core/src/memory/tree/tree_runtime/ops.rs b/crates/openhuman-core/src/memory/tree/tree_runtime/ops.rs
index 21bab2799f..a9761bb4bc 100644
--- a/crates/openhuman-core/src/memory/tree/tree_runtime/ops.rs
+++ b/crates/openhuman-core/src/memory/tree/tree_runtime/ops.rs
@@ -312,7 +312,7 @@ pub(crate) fn create_provider(
config: &Config,
) -> Result<
(
- std::sync::Arc<dyn tinyinference_core::model::ChatModel<()>>,
+ std::sync::Arc<dyn tinyinference_llm::model::ChatModel<()>>,
String,
),
String,
diff --git a/crates/openhuman-core/src/modules/memory_host.rs b/crates/openhuman-core/src/modules/memory_host.rs
index 208802d71c..b8c2c31b75 100644
--- a/crates/openhuman-core/src/modules/memory_host.rs
+++ b/crates/openhuman-core/src/modules/memory_host.rs
@@ -39,7 +39,7 @@ use crate::core::bus::BUS;
use std::sync::Arc;
use tinybus::ObjectPath;
use tinyconnectors_bus::{ComposioConnection, ComposioExecuteResponse};
-use tinyinference_core::model::{ModelRequest, ModelResponse};
+use tinyinference_llm::model::{ModelRequest, ModelResponse};
use tinymemory_api::host::{MemoryEvent, SpacyResponse};
const EMBEDDING_NAME: &str = "ai.tinyhumans.tinymemory.EmbeddingHost";
@@ -129,7 +129,7 @@ impl ChatCallbacks {
fn resolve_chat_model(
role: &str,
config: &Config,
-) -> anyhow::Result<std::sync::Arc<dyn tinyinference_core::model::ChatModel<()>>> {
+) -> anyhow::Result<std::sync::Arc<dyn tinyinference_llm::model::ChatModel<()>>> {
if role == "summarization" {
let (model, _) = crate::memory::tree::tree_runtime::ops::create_provider(config)
.map_err(anyhow::Error::msg)?;
diff --git a/crates/openhuman-core/src/modules/memory_host_tests.rs b/crates/openhuman-core/src/modules/memory_host_tests.rs
index a0c088442a..d04cebb88c 100644
--- a/crates/openhuman-core/src/modules/memory_host_tests.rs
+++ b/crates/openhuman-core/src/modules/memory_host_tests.rs
@@ -345,13 +345,13 @@ async fn embed_takes_its_four_arguments_in_the_order_the_module_sends_them() {
struct StubModel;
#[async_trait::async_trait]
-impl tinyinference_core::model::ChatModel<()> for StubModel {
+impl tinyinference_llm::model::ChatModel<()> for StubModel {
async fn invoke(
&self,
_state: &(),
- _request: tinyinference_core::model::ModelRequest,
- ) -> tinyinference_core::Result<tinyinference_core::model::ModelResponse> {
- Ok(tinyinference_core::model::ModelResponse::assistant("stub"))
+ _request: tinyinference_llm::model::ModelRequest,
+ ) -> tinyinference_llm::Result<tinyinference_llm::model::ModelResponse> {
+ Ok(tinyinference_llm::model::ModelResponse::assistant("stub"))
}
}
diff --git a/crates/openhuman-core/src/modules/ops.rs b/crates/openhuman-core/src/modules/ops.rs
index 588deb94a4..366d6f853c 100644
--- a/crates/openhuman-core/src/modules/ops.rs
+++ b/crates/openhuman-core/src/modules/ops.rs
@@ -509,7 +509,7 @@ fn module_config(config: &Config, id: &str) -> serde_json::Value {
"cloud_embedding_dimensions":
crate::inference::embeddings::DEFAULT_CLOUD_EMBEDDING_DIMENSIONS,
"models_supporting_dimensions":
- tinyinference_core::embeddings::MODELS_SUPPORTING_DIMENSIONS,
+ tinyinference_embeddings::MODELS_SUPPORTING_DIMENSIONS,
// The periodic composio and workspace-source sync loops run INSIDE the
// module now (tinymemory#100), and these three are what let them run at
// all. Without the cadence the module answers manual-only and skips
diff --git a/crates/openhuman-core/src/skills/e2e_plumbing_tests.rs b/crates/openhuman-core/src/skills/e2e_plumbing_tests.rs
index f38ba7616c..165996bd49 100644
--- a/crates/openhuman-core/src/skills/e2e_plumbing_tests.rs
+++ b/crates/openhuman-core/src/skills/e2e_plumbing_tests.rs
@@ -39,9 +39,9 @@ use crate::skills::registry::get_workflow;
use crate::skills::run_log;
use crate::skills::runtime::await_run_outcome;
use crate::tools::traits::Tool;
-use tinyinference_core::message::AssistantMessage;
-use tinyinference_core::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
-use tinyinference_core::tool::ToolCall;
+use tinyinference_llm::message::AssistantMessage;
+use tinyinference_llm::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
+use tinyinference_llm::tool::ToolCall;
// ── Mock LLM ─────────────────────────────────────────────────────────────
// Minimal scripted model: pops queued ModelResponses in order. Mirrors the
@@ -49,7 +49,7 @@ use tinyinference_core::tool::ToolCall;
// `agent/harness/subagent_runner/ops_tests.rs`; kept local so this file is
// self-contained).
struct ScriptedModel {
- responses: Mutex<Vec<tinyinference_core::Result<ModelResponse>>>,
+ responses: Mutex<Vec<tinyinference_llm::Result<ModelResponse>>>,
}
#[async_trait]
@@ -58,7 +58,7 @@ impl ChatModel<()> for ScriptedModel {
&self,
_state: &(),
_request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
+ ) -> tinyinference_llm::Result<ModelResponse> {
self.responses.lock().remove(0)
}
}
diff --git a/crates/openhuman-core/src/skills/e2e_run_tests.rs b/crates/openhuman-core/src/skills/e2e_run_tests.rs
index caff79d3e2..f6443ef08b 100644
--- a/crates/openhuman-core/src/skills/e2e_run_tests.rs
+++ b/crates/openhuman-core/src/skills/e2e_run_tests.rs
@@ -41,9 +41,9 @@ use crate::skills::schemas::resolve_workspace_dir;
use crate::threads::todos::ops as board_ops;
use crate::threads::todos::ops::{BoardLocation, CardPatch};
use crate::tools::traits::Tool;
-use tinyinference_core::message::AssistantMessage;
-use tinyinference_core::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
-use tinyinference_core::tool::ToolCall;
+use tinyinference_llm::message::AssistantMessage;
+use tinyinference_llm::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
+use tinyinference_llm::tool::ToolCall;
/// Serialize this module's tests (each touches process-global state).
fn serial() -> &'static tokio::sync::Mutex<()> {
@@ -118,7 +118,7 @@ impl ChatModel<()> for MockLlm {
&self,
_state: &(),
request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
+ ) -> tinyinference_llm::Result<ModelResponse> {
let convo: String = request
.messages
.iter()
@@ -445,8 +445,8 @@ impl ChatModel<()> for FailingLlm {
&self,
_state: &(),
_request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
- Err(tinyinference_core::Error::Model(
+ ) -> tinyinference_llm::Result<ModelResponse> {
+ Err(tinyinference_llm::Error::Model(
"simulated provider failure: model unavailable".to_string(),
))
}
diff --git a/crates/openhuman-core/src/threads/ops_conversion_tests.rs b/crates/openhuman-core/src/threads/ops_conversion_tests.rs
index e71482a5ce..2b01b726cc 100644
--- a/crates/openhuman-core/src/threads/ops_conversion_tests.rs
+++ b/crates/openhuman-core/src/threads/ops_conversion_tests.rs
@@ -68,7 +68,7 @@ fn build_title_request_sends_no_per_request_model_override() {
fn build_title_request_carries_the_system_prompt_and_rendered_user_prompt() {
// Pins the rest of the request so the `model` assertion above cannot be
// satisfied by an empty or malformed request.
- use tinyinference_core::message::Message;
+ use tinyinference_llm::message::Message;
let request = crate::threads::title::build_title_request("hi there", "hello back");
diff --git a/crates/openhuman-core/src/threads/title.rs b/crates/openhuman-core/src/threads/title.rs
index 8f506ef4fd..a7e9e226db 100644
--- a/crates/openhuman-core/src/threads/title.rs
+++ b/crates/openhuman-core/src/threads/title.rs
@@ -5,8 +5,8 @@
use std::hash::{Hash, Hasher};
-use tinyinference_core::message::Message;
-use tinyinference_core::model::ModelRequest;
+use tinyinference_llm::message::Message;
+use tinyinference_llm::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.";
diff --git a/crates/openhuman-core/src/web_chat/web_errors/budget.rs b/crates/openhuman-core/src/web_chat/web_errors/budget.rs
index 600c7f6337..057544fd08 100644
--- a/crates/openhuman-core/src/web_chat/web_errors/budget.rs
+++ b/crates/openhuman-core/src/web_chat/web_errors/budget.rs
@@ -34,7 +34,7 @@ pub(crate) fn is_inference_budget_exceeded_error(message: &str) -> bool {
// (issue #3088). Without this, an Ollama user with zero credits and
// routing still on Managed sees an opaque "provider error" and has no
// way to self-diagnose that they must top up or switch routing.
- tinyinference_core::classification::is_budget_exhausted_message(message)
+ tinyinference_llm::classification::is_budget_exhausted_message(message)
}
pub(crate) fn inference_budget_exceeded_user_message() -> &'static str {
diff --git a/crates/openhuman-core/src/web_chat/web_errors/classify.rs b/crates/openhuman-core/src/web_chat/web_errors/classify.rs
index c54850e1ce..3f3c8f3104 100644
--- a/crates/openhuman-core/src/web_chat/web_errors/classify.rs
+++ b/crates/openhuman-core/src/web_chat/web_errors/classify.rs
@@ -259,7 +259,7 @@ pub(crate) fn classify_inference_error(err: &str) -> ClassifiedError {
provider: None,
fallback_available: None,
}
- } else if tinyinference_core::providers::openai::is_chat_template_rejection_message(err) {
+ } else if tinyinference_llm::providers::openai::is_chat_template_rejection_message(err) {
// #5291: a local runtime (LM Studio / llama.cpp / Ollama) rendered the
// request through the model's OWN Jinja chat template and the template
// raised — `No user query found in messages.` on Qwen 3, against the
diff --git a/tests/agent_builder_public.rs b/tests/agent_builder_public.rs
index 9ed24dd669..08d9856ba7 100644
--- a/tests/agent_builder_public.rs
+++ b/tests/agent_builder_public.rs
@@ -7,7 +7,7 @@ use openhuman_core::memory::{Memory, MemoryCategory, MemoryEntry};
use openhuman_core::tools::{Tool, ToolResult};
use std::collections::HashSet;
use std::sync::Arc;
-use tinyinference_core::model::{ChatModel, ModelRequest, ModelResponse};
+use tinyinference_llm::model::{ChatModel, ModelRequest, ModelResponse};
struct StubModel;
@@ -17,7 +17,7 @@ impl ChatModel<()> for StubModel {
&self,
_state: &(),
_request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
+ ) -> tinyinference_llm::Result<ModelResponse> {
Ok(ModelResponse::assistant("ok"))
}
}
diff --git a/tests/agent_harness_e2e.rs b/tests/agent_harness_e2e.rs
index 38d82570d1..66c10aa0d0 100644
--- a/tests/agent_harness_e2e.rs
+++ b/tests/agent_harness_e2e.rs
@@ -2373,12 +2373,12 @@ mod streaming_support {
use std::sync::atomic::{AtomicUsize, Ordering};
use std::sync::{Arc, Mutex};
use tempfile::TempDir;
- use tinyinference_core::message::{AssistantMessage, ContentBlock};
- use tinyinference_core::model::{
+ use tinyinference_llm::message::{AssistantMessage, ContentBlock};
+ use tinyinference_llm::model::{
ChatModel, ModelProfile, ModelRequest, ModelResponse, ModelStream, ModelStreamItem,
};
- use tinyinference_core::tool::ToolCall;
- use tinyinference_core::usage::Usage;
+ use tinyinference_llm::tool::ToolCall;
+ use tinyinference_llm::usage::Usage;
// ── ScriptedProvider ────────────────────────────────────────────────────
// Copied (minimal) from tests/agent_session_turn_raw_coverage_e2e.rs:76-152.
@@ -2390,13 +2390,13 @@ mod streaming_support {
}
impl ScriptedProvider {
- fn pop_response(&self) -> tinyinference_core::Result<ModelResponse> {
+ fn pop_response(&self) -> tinyinference_llm::Result<ModelResponse> {
self.responses
.lock()
.unwrap()
.pop_front()
.unwrap_or_else(|| Ok(text_response_s("default scripted final")))
- .map_err(|error| tinyinference_core::Error::Model(error.to_string()))
+ .map_err(|error| tinyinference_llm::Error::Model(error.to_string()))
}
}
@@ -2410,7 +2410,7 @@ mod streaming_support {
&self,
_state: &(),
_request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
+ ) -> tinyinference_llm::Result<ModelResponse> {
self.pop_response()
}
@@ -2418,7 +2418,7 @@ mod streaming_support {
&self,
_state: &(),
_request: ModelRequest,
- ) -> tinyinference_core::Result<ModelStream> {
+ ) -> tinyinference_llm::Result<ModelStream> {
let response = self.pop_response()?;
let mut items = vec![ModelStreamItem::Started];
items.extend(self.stream_events.iter().cloned());
@@ -2678,8 +2678,8 @@ async fn streaming_tool_call_accumulation() {
agent_with_s, native_tool_response_s, text_response_s, workspace_s, EchoTool,
ScriptedProvider,
};
- use tinyinference_core::model::{ModelProfile, ModelStreamItem};
- use tinyinference_core::tool::ToolDelta;
+ use tinyinference_llm::model::{ModelProfile, ModelStreamItem};
+ use tinyinference_llm::tool::ToolDelta;
let _lock = env_lock();
let (_temp, workspace_path) = workspace_s("stream-accum");
@@ -3021,10 +3021,10 @@ fn sse_tool_args_router() -> Router {
/// accumulation in its SSE transport is what assembles the final tool call.
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
async fn provider_sse_tool_args_accumulation() {
- use tinyinference_core::message::Message;
- use tinyinference_core::model::{ChatModel, ModelRequest, ModelStreamItem};
- use tinyinference_core::providers::openai::{AuthStyle, OpenAiModel};
- use tinyinference_core::tool::ToolSchema;
+ use tinyinference_llm::message::Message;
+ use tinyinference_llm::model::{ChatModel, ModelRequest, ModelStreamItem};
+ use tinyinference_llm::providers::openai::{AuthStyle, OpenAiModel};
+ use tinyinference_llm::tool::ToolSchema;
let _lock = env_lock();
@@ -4160,7 +4160,7 @@ mod tool_policy_boundary_placement {
use std::sync::{Arc, Mutex};
use super::streaming_support::ScriptedProvider;
- use tinyinference_core::model::{ChatModel, ModelProfile};
+ use tinyinference_llm::model::{ChatModel, ModelProfile};
struct StubMemory;
diff --git a/tests/agent_turn_overrides_e2e.rs b/tests/agent_turn_overrides_e2e.rs
index 461a16e76c..f97ed3138f 100644
--- a/tests/agent_turn_overrides_e2e.rs
+++ b/tests/agent_turn_overrides_e2e.rs
@@ -43,8 +43,8 @@ use openhuman_core::threads::goals::{runtime as goal_runtime, store as goal_stor
use openhuman_core::tools::{
PermissionLevel, Tool, ToolContent, ToolResult, ToolScope as RuntimeToolScope,
};
-use tinyinference_core::message::Message;
-use tinyinference_core::model::{
+use tinyinference_llm::message::Message;
+use tinyinference_llm::model::{
ChatModel, ModelProfile, ModelRequest, ModelResponse, ModelStream, ModelStreamItem,
};
@@ -164,7 +164,7 @@ impl ChatModel<()> for ScriptedModel {
&self,
_state: &(),
request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
+ ) -> tinyinference_llm::Result<ModelResponse> {
self.capture(&request);
Ok(self.pop())
}
@@ -173,7 +173,7 @@ impl ChatModel<()> for ScriptedModel {
&self,
_state: &(),
request: ModelRequest,
- ) -> tinyinference_core::Result<ModelStream> {
+ ) -> tinyinference_llm::Result<ModelStream> {
self.capture(&request);
let items = vec![
ModelStreamItem::Started,
diff --git a/tests/calendar_grounding_e2e.rs b/tests/calendar_grounding_e2e.rs
index 2cbf0367d6..f0f484f82b 100644
--- a/tests/calendar_grounding_e2e.rs
+++ b/tests/calendar_grounding_e2e.rs
@@ -6,9 +6,9 @@ use openhuman_core::tools::{PermissionLevel, Tool, ToolResult};
use parking_lot::Mutex;
use serde_json::json;
use std::sync::Arc;
-use tinyinference_core::message::{AssistantMessage, Message};
-use tinyinference_core::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
-use tinyinference_core::tool::ToolCall;
+use tinyinference_llm::message::{AssistantMessage, Message};
+use tinyinference_llm::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
+use tinyinference_llm::tool::ToolCall;
struct MockCalendarModel {
captured_messages: Arc<Mutex<Vec<Message>>>,
@@ -26,7 +26,7 @@ impl ChatModel<()> for MockCalendarModel {
&self,
_state: &(),
request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
+ ) -> tinyinference_llm::Result<ModelResponse> {
let mut count = self.iter_count.lock();
*count += 1;
diff --git a/tests/composio_list_tools_stack_overflow_regression.rs b/tests/composio_list_tools_stack_overflow_regression.rs
index 78a67b25d8..ce686bef3b 100644
--- a/tests/composio_list_tools_stack_overflow_regression.rs
+++ b/tests/composio_list_tools_stack_overflow_regression.rs
@@ -119,9 +119,9 @@ use parking_lot::Mutex;
use serde_json::json;
use std::sync::Arc;
use tempfile::tempdir;
-use tinyinference_core::message::AssistantMessage;
-use tinyinference_core::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
-use tinyinference_core::tool::ToolCall;
+use tinyinference_llm::message::AssistantMessage;
+use tinyinference_llm::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
+use tinyinference_llm::tool::ToolCall;
// ── env serialisation (config-rs reads process env) ──────────────────
@@ -204,7 +204,7 @@ impl ChatModel<()> for StubModel {
&self,
_state: &(),
_request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
+ ) -> tinyinference_llm::Result<ModelResponse> {
let mut count = self.iter.lock();
*count += 1;
if *count == 1 {
diff --git a/tests/inference_provider_e2e.rs b/tests/inference_provider_e2e.rs
index 2559d739e8..6eb4f5232c 100644
--- a/tests/inference_provider_e2e.rs
+++ b/tests/inference_provider_e2e.rs
@@ -22,9 +22,9 @@ use wiremock::{Mock, MockServer, ResponseTemplate};
use openhuman_core::core::auth::{init_rpc_token, CORE_TOKEN_ENV_VAR};
use openhuman_core::core::jsonrpc::build_core_http_router;
-use tinyinference_core::message::Message;
-use tinyinference_core::model::{ChatModel, ModelRequest, ModelStreamItem};
-use tinyinference_core::providers::openai::{AuthStyle, OpenAiModel};
+use tinyinference_llm::message::Message;
+use tinyinference_llm::model::{ChatModel, ModelRequest, ModelStreamItem};
+use tinyinference_llm::providers::openai::{AuthStyle, OpenAiModel};
// ── Environment serialisation lock ───────────────────────────────────────────
//
@@ -548,7 +548,7 @@ async fn openai_compat_bearer_auth_sends_authorization_header() {
#[test]
fn temperature_helper_suppresses_o1_by_default_config() {
use openhuman_core::config::Config;
- use tinyinference_core::model::effective_temperature;
+ use tinyinference_llm::model::effective_temperature;
let config = Config::default();
diff --git a/tests/json_rpc_e2e.rs b/tests/json_rpc_e2e.rs
index 0453970831..50f53ee5cf 100644
--- a/tests/json_rpc_e2e.rs
+++ b/tests/json_rpc_e2e.rs
@@ -17,8 +17,8 @@ use futures_util::StreamExt;
use serde_json::{json, Value};
use sha2::{Digest, Sha256};
use tempfile::tempdir;
-use tinyinference_core::message::Message;
-use tinyinference_core::model::ModelRequest;
+use tinyinference_llm::message::Message;
+use tinyinference_llm::model::ModelRequest;
use openhuman_core::core::auth::{init_rpc_token, CORE_TOKEN_ENV_VAR};
use openhuman_core::core::jsonrpc::build_core_http_router;
diff --git a/tests/raw_coverage/agent_archivist_debug_round21_raw_coverage_e2e.rs b/tests/raw_coverage/agent_archivist_debug_round21_raw_coverage_e2e.rs
index 6e299b0056..b2bfd09cba 100644
--- a/tests/raw_coverage/agent_archivist_debug_round21_raw_coverage_e2e.rs
+++ b/tests/raw_coverage/agent_archivist_debug_round21_raw_coverage_e2e.rs
@@ -28,10 +28,10 @@ use std::collections::VecDeque;
use std::path::{Path, PathBuf};
use std::sync::{Arc, OnceLock};
use tempfile::TempDir;
-use tinyinference_core::message::{AssistantMessage, ContentBlock};
-use tinyinference_core::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
-use tinyinference_core::tool::ToolCall;
-use tinyinference_core::usage::Usage;
+use tinyinference_llm::message::{AssistantMessage, ContentBlock};
+use tinyinference_llm::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
+use tinyinference_llm::tool::ToolCall;
+use tinyinference_llm::usage::Usage;
struct ScriptedModel {
responses: Mutex<VecDeque<anyhow::Result<ModelResponse>>>,
@@ -67,7 +67,7 @@ impl ChatModel<()> for ScriptedModel {
&self,
_state: &(),
request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
+ ) -> tinyinference_llm::Result<ModelResponse> {
self.requests.lock().push(
request
.messages
@@ -80,7 +80,7 @@ impl ChatModel<()> for ScriptedModel {
.lock()
.pop_front()
.unwrap_or_else(|| Ok(text_response("fallback final")))
- .map_err(|error| tinyinference_core::Error::Model(error.to_string()))
+ .map_err(|error| tinyinference_llm::Error::Model(error.to_string()))
}
}
diff --git a/tests/raw_coverage/agent_harness_leftovers_raw_coverage_e2e.rs b/tests/raw_coverage/agent_harness_leftovers_raw_coverage_e2e.rs
index 6921c60391..1392affb29 100644
--- a/tests/raw_coverage/agent_harness_leftovers_raw_coverage_e2e.rs
+++ b/tests/raw_coverage/agent_harness_leftovers_raw_coverage_e2e.rs
@@ -25,10 +25,10 @@ use std::collections::{HashSet, VecDeque};
use std::path::{Path, PathBuf};
use std::sync::Arc;
use tempfile::TempDir;
-use tinyinference_core::message::{AssistantMessage, ContentBlock, Message};
-use tinyinference_core::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
-use tinyinference_core::tool::ToolCall;
-use tinyinference_core::usage::Usage;
+use tinyinference_llm::message::{AssistantMessage, ContentBlock, Message};
+use tinyinference_llm::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
+use tinyinference_llm::tool::ToolCall;
+use tinyinference_llm::usage::Usage;
struct ScriptedModel {
responses: Mutex<VecDeque<anyhow::Result<ModelResponse>>>,
@@ -70,7 +70,7 @@ impl ChatModel<()> for ScriptedModel {
&self,
_state: &(),
request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
+ ) -> tinyinference_llm::Result<ModelResponse> {
self.requests.lock().push(CapturedRequest {
messages: request.messages,
tool_names: request.tools.iter().map(|tool| tool.name.clone()).collect(),
@@ -79,7 +79,7 @@ impl ChatModel<()> for ScriptedModel {
.lock()
.pop_front()
.unwrap_or_else(|| Ok(text_response("fallback final")))
- .map_err(|error| tinyinference_core::Error::Model(error.to_string()))
+ .map_err(|error| tinyinference_llm::Error::Model(error.to_string()))
}
}
diff --git a/tests/raw_coverage/agent_harness_raw_coverage_e2e.rs b/tests/raw_coverage/agent_harness_raw_coverage_e2e.rs
index 0fd3fa2585..dc408cff3b 100644
--- a/tests/raw_coverage/agent_harness_raw_coverage_e2e.rs
+++ b/tests/raw_coverage/agent_harness_raw_coverage_e2e.rs
@@ -18,10 +18,10 @@ use parking_lot::Mutex;
use serde_json::json;
use std::path::{Path, PathBuf};
use std::sync::Arc;
-use tinyinference_core::message::{AssistantMessage, ContentBlock, Message};
-use tinyinference_core::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
-use tinyinference_core::tool::ToolCall;
-use tinyinference_core::usage::Usage;
+use tinyinference_llm::message::{AssistantMessage, ContentBlock, Message};
+use tinyinference_llm::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
+use tinyinference_llm::tool::ToolCall;
+use tinyinference_llm::usage::Usage;
struct ScriptedModel {
responses: Mutex<Vec<ModelResponse>>,
@@ -57,7 +57,7 @@ impl ChatModel<()> for ScriptedModel {
&self,
_state: &(),
request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
+ ) -> tinyinference_llm::Result<ModelResponse> {
self.requests.lock().push(request.messages);
let mut responses = self.responses.lock();
Ok(if responses.is_empty() {
diff --git a/tests/raw_coverage/agent_large_round25_raw_coverage_e2e.rs b/tests/raw_coverage/agent_large_round25_raw_coverage_e2e.rs
index 78a988b893..a66b1b760e 100644
--- a/tests/raw_coverage/agent_large_round25_raw_coverage_e2e.rs
+++ b/tests/raw_coverage/agent_large_round25_raw_coverage_e2e.rs
@@ -18,10 +18,10 @@ use serde_json::json;
use std::collections::VecDeque;
use std::path::PathBuf;
use std::sync::{Arc, OnceLock};
-use tinyinference_core::message::{AssistantMessage, ContentBlock, Message};
-use tinyinference_core::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
-use tinyinference_core::tool::ToolCall;
-use tinyinference_core::usage::Usage;
+use tinyinference_llm::message::{AssistantMessage, ContentBlock, Message};
+use tinyinference_llm::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
+use tinyinference_llm::tool::ToolCall;
+use tinyinference_llm::usage::Usage;
struct EnvGuard {
key: &'static str,
@@ -105,7 +105,7 @@ impl ChatModel<()> for ScriptedModel {
&self,
_state: &(),
request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
+ ) -> tinyinference_llm::Result<ModelResponse> {
// Route extraction calls — identified
// by the extraction system prompt — to the fixed extracted answer so they
// do not consume the agent-turn response queue, and record them separately
diff --git a/tests/raw_coverage/agent_prompts_subagent_raw_coverage_e2e.rs b/tests/raw_coverage/agent_prompts_subagent_raw_coverage_e2e.rs
index 1d20c16cc1..ad05efb83f 100644
--- a/tests/raw_coverage/agent_prompts_subagent_raw_coverage_e2e.rs
+++ b/tests/raw_coverage/agent_prompts_subagent_raw_coverage_e2e.rs
@@ -25,10 +25,10 @@ use std::collections::{HashSet, VecDeque};
use std::path::{Path, PathBuf};
use std::sync::Arc;
use std::time::Duration;
-use tinyinference_core::message::{AssistantMessage, ContentBlock};
-use tinyinference_core::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
-use tinyinference_core::tool::ToolCall;
-use tinyinference_core::usage::Usage;
+use tinyinference_llm::message::{AssistantMessage, ContentBlock};
+use tinyinference_llm::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
+use tinyinference_llm::tool::ToolCall;
+use tinyinference_llm::usage::Usage;
struct ScriptedModel {
responses: Mutex<VecDeque<anyhow::Result<ModelResponse>>>,
@@ -93,7 +93,7 @@ impl ChatModel<()> for ScriptedModel {
&self,
_state: &(),
request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
+ ) -> tinyinference_llm::Result<ModelResponse> {
self.requests.lock().push(
request
.messages
@@ -106,13 +106,13 @@ impl ChatModel<()> for ScriptedModel {
tokio::time::sleep(delay).await;
}
if let Some(message) = &self.always_fail {
- return Err(tinyinference_core::Error::Model(message.clone()));
+ return Err(tinyinference_llm::Error::Model(message.clone()));
}
self.responses
.lock()
.pop_front()
.unwrap_or_else(|| Ok(text_response("fallback final")))
- .map_err(|error| tinyinference_core::Error::Model(error.to_string()))
+ .map_err(|error| tinyinference_llm::Error::Model(error.to_string()))
}
}
diff --git a/tests/raw_coverage/agent_round26_raw_coverage_e2e.rs b/tests/raw_coverage/agent_round26_raw_coverage_e2e.rs
index cdaa76dd0f..afd3807e13 100644
--- a/tests/raw_coverage/agent_round26_raw_coverage_e2e.rs
+++ b/tests/raw_coverage/agent_round26_raw_coverage_e2e.rs
@@ -22,9 +22,9 @@ use serde_json::json;
use std::collections::{HashSet, VecDeque};
use std::path::PathBuf;
use std::sync::{Arc, OnceLock};
-use tinyinference_core::message::Message;
-use tinyinference_core::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
-use tinyinference_core::usage::Usage;
+use tinyinference_llm::message::Message;
+use tinyinference_llm::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
+use tinyinference_llm::usage::Usage;
struct EnvGuard {
key: &'static str,
@@ -95,7 +95,7 @@ impl ChatModel<()> for ScriptedModel {
&self,
_state: &(),
request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
+ ) -> tinyinference_llm::Result<ModelResponse> {
self.requests.lock().push(CapturedRequest {
messages: request.messages,
tool_names: request.tools.iter().map(|tool| tool.name.clone()).collect(),
diff --git a/tests/raw_coverage/agent_session_round24_raw_coverage_e2e.rs b/tests/raw_coverage/agent_session_round24_raw_coverage_e2e.rs
index 6c49f813aa..b44cc1ef85 100644
--- a/tests/raw_coverage/agent_session_round24_raw_coverage_e2e.rs
+++ b/tests/raw_coverage/agent_session_round24_raw_coverage_e2e.rs
@@ -22,12 +22,12 @@ use std::path::{Path, PathBuf};
use std::sync::atomic::{AtomicUsize, Ordering};
use std::sync::{Arc, LazyLock};
use tempfile::TempDir;
-use tinyinference_core::message::{AssistantMessage, Message, MessageDelta};
-use tinyinference_core::model::{
+use tinyinference_llm::message::{AssistantMessage, Message, MessageDelta};
+use tinyinference_llm::model::{
ChatModel, ModelProfile, ModelRequest, ModelResponse, ModelStream, ModelStreamItem,
};
-use tinyinference_core::tool::ToolCall;
-use tinyinference_core::usage::Usage;
+use tinyinference_llm::tool::ToolCall;
+use tinyinference_llm::usage::Usage;
use tokio::time::{sleep, Duration, Instant};
static NO_FILTER: LazyLock<HashSet<String>> = LazyLock::new(HashSet::new);
@@ -110,12 +110,12 @@ impl ChatModel<()> for ScriptedModel {
&self,
_state: &(),
request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
+ ) -> tinyinference_llm::Result<ModelResponse> {
self.capture(&request, false);
self.pop_response()
}
- async fn stream(&self, _state: &(), request: ModelRequest) -> tinyinference_core::Result<ModelStream> {
+ async fn stream(&self, _state: &(), request: ModelRequest) -> tinyinference_llm::Result<ModelStream> {
self.capture(&request, true);
let response = self.pop_response()?;
let mut items = vec![ModelStreamItem::Started];
@@ -134,12 +134,12 @@ impl ScriptedModel {
});
}
- fn pop_response(&self) -> tinyinference_core::Result<ModelResponse> {
+ fn pop_response(&self) -> tinyinference_llm::Result<ModelResponse> {
self.responses
.lock()
.pop_front()
.unwrap_or_else(|| Ok(text_response("fallback final", None)))
- .map_err(|error| tinyinference_core::Error::Model(error.to_string()))
+ .map_err(|error| tinyinference_llm::Error::Model(error.to_string()))
}
}
diff --git a/tests/raw_coverage/agent_session_turn_raw_coverage_e2e.rs b/tests/raw_coverage/agent_session_turn_raw_coverage_e2e.rs
index 02c0906e48..0bc31ff0fd 100644
--- a/tests/raw_coverage/agent_session_turn_raw_coverage_e2e.rs
+++ b/tests/raw_coverage/agent_session_turn_raw_coverage_e2e.rs
@@ -31,12 +31,12 @@ use std::path::PathBuf;
use std::sync::atomic::{AtomicBool, AtomicUsize, Ordering};
use std::sync::{Arc, Mutex, OnceLock};
use tempfile::TempDir;
-use tinyinference_core::message::{AssistantMessage, ContentBlock, Message, MessageDelta};
-use tinyinference_core::model::{
+use tinyinference_llm::message::{AssistantMessage, ContentBlock, Message, MessageDelta};
+use tinyinference_llm::model::{
ChatModel, ModelProfile, ModelRequest, ModelResponse, ModelStream, ModelStreamItem,
};
-use tinyinference_core::tool::{ToolCall, ToolDelta};
-use tinyinference_core::usage::Usage;
+use tinyinference_llm::tool::{ToolCall, ToolDelta};
+use tinyinference_llm::usage::Usage;
use tokio::sync::{Mutex as AsyncMutex, Notify};
use tokio::time::{timeout, Duration};
@@ -167,12 +167,12 @@ impl ChatModel<()> for ScriptedModel {
&self,
_state: &(),
request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
+ ) -> tinyinference_llm::Result<ModelResponse> {
self.capture(&request, false);
self.pop_response()
}
- async fn stream(&self, _state: &(), request: ModelRequest) -> tinyinference_core::Result<ModelStream> {
+ async fn stream(&self, _state: &(), request: ModelRequest) -> tinyinference_llm::Result<ModelStream> {
self.capture(&request, true);
let response = self.pop_response()?;
let mut items = vec![ModelStreamItem::Started];
@@ -193,16 +193,16 @@ impl ScriptedModel {
});
}
- fn pop_response(&self) -> tinyinference_core::Result<ModelResponse> {
+ fn pop_response(&self) -> tinyinference_llm::Result<ModelResponse> {
if let Some(message) = self.always_fail {
- return Err(tinyinference_core::Error::Model(message.to_string()));
+ return Err(tinyinference_llm::Error::Model(message.to_string()));
}
self.responses
.lock()
.unwrap()
.pop_front()
.unwrap_or_else(|| Ok(text_response("default scripted final")))
- .map_err(|error| tinyinference_core::Error::Model(error.to_string()))
+ .map_err(|error| tinyinference_llm::Error::Model(error.to_string()))
}
}
diff --git a/tests/raw_coverage/agent_tool_loop_raw_coverage_e2e.rs b/tests/raw_coverage/agent_tool_loop_raw_coverage_e2e.rs
index 9377da0920..1a7f141875 100644
--- a/tests/raw_coverage/agent_tool_loop_raw_coverage_e2e.rs
+++ b/tests/raw_coverage/agent_tool_loop_raw_coverage_e2e.rs
@@ -17,12 +17,12 @@ use serde_json::json;
use std::collections::{HashSet, VecDeque};
use std::path::PathBuf;
use std::sync::{Arc, Mutex};
-use tinyinference_core::message::{AssistantMessage, ContentBlock, Message, MessageDelta};
-use tinyinference_core::model::{
+use tinyinference_llm::message::{AssistantMessage, ContentBlock, Message, MessageDelta};
+use tinyinference_llm::model::{
ChatModel, ModelProfile, ModelRequest, ModelResponse, ModelStream, ModelStreamItem,
};
-use tinyinference_core::tool::{ToolCall, ToolDelta};
-use tinyinference_core::usage::Usage;
+use tinyinference_llm::tool::{ToolCall, ToolDelta};
+use tinyinference_llm::usage::Usage;
#[derive(Clone, Debug)]
struct CapturedTurn {
@@ -80,12 +80,12 @@ impl ChatModel<()> for ScriptedModel {
&self,
_state: &(),
request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
+ ) -> tinyinference_llm::Result<ModelResponse> {
self.capture(request);
self.pop_response()
}
- async fn stream(&self, _state: &(), request: ModelRequest) -> tinyinference_core::Result<ModelStream> {
+ async fn stream(&self, _state: &(), request: ModelRequest) -> tinyinference_llm::Result<ModelStream> {
self.capture(request);
let response = self.pop_response()?;
let mut items = vec![ModelStreamItem::Started];
@@ -103,16 +103,16 @@ impl ScriptedModel {
});
}
- fn pop_response(&self) -> tinyinference_core::Result<ModelResponse> {
+ fn pop_response(&self) -> tinyinference_llm::Result<ModelResponse> {
if let Some(message) = &self.always_fail {
- return Err(tinyinference_core::Error::Model(message.clone()));
+ return Err(tinyinference_llm::Error::Model(message.clone()));
}
self.responses
.lock()
.unwrap()
.pop_front()
.unwrap_or_else(|| Ok(ModelResponse::assistant("")))
- .map_err(|error| tinyinference_core::Error::Model(error.to_string()))
+ .map_err(|error| tinyinference_llm::Error::Model(error.to_string()))
}
}
diff --git a/tests/raw_coverage/agent_turn_builder_leftovers_raw_coverage_e2e.rs b/tests/raw_coverage/agent_turn_builder_leftovers_raw_coverage_e2e.rs
index 7c6949286d..c972172506 100644
--- a/tests/raw_coverage/agent_turn_builder_leftovers_raw_coverage_e2e.rs
+++ b/tests/raw_coverage/agent_turn_builder_leftovers_raw_coverage_e2e.rs
@@ -16,10 +16,10 @@ use std::path::{Path, PathBuf};
use std::sync::atomic::{AtomicUsize, Ordering};
use std::sync::Arc;
use tempfile::TempDir;
-use tinyinference_core::message::{AssistantMessage, ContentBlock, Message};
-use tinyinference_core::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
-use tinyinference_core::tool::ToolCall;
-use tinyinference_core::usage::Usage;
+use tinyinference_llm::message::{AssistantMessage, ContentBlock, Message};
+use tinyinference_llm::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
+use tinyinference_llm::tool::ToolCall;
+use tinyinference_llm::usage::Usage;
use tokio::time::{sleep, Duration, Instant};
struct EnvGuard {
@@ -92,7 +92,7 @@ impl ChatModel<()> for ScriptedModel {
&self,
_state: &(),
request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
+ ) -> tinyinference_llm::Result<ModelResponse> {
self.requests.lock().push(CapturedRequest {
messages: request.messages,
tool_names: request.tools.iter().map(|tool| tool.name.clone()).collect(),
@@ -101,7 +101,7 @@ impl ChatModel<()> for ScriptedModel {
.lock()
.pop_front()
.unwrap_or_else(|| Ok(text_response("fallback final", None)))
- .map_err(|error| tinyinference_core::Error::Model(error.to_string()))
+ .map_err(|error| tinyinference_llm::Error::Model(error.to_string()))
}
}
diff --git a/tests/raw_coverage/agent_turn_toolloop_round22_raw_coverage_e2e.rs b/tests/raw_coverage/agent_turn_toolloop_round22_raw_coverage_e2e.rs
index c6b338f555..3954c3a6e9 100644
--- a/tests/raw_coverage/agent_turn_toolloop_round22_raw_coverage_e2e.rs
+++ b/tests/raw_coverage/agent_turn_toolloop_round22_raw_coverage_e2e.rs
@@ -11,12 +11,12 @@ use openhuman_core::tools::{PermissionLevel, Tool, ToolContent, ToolResult, Tool
use serde_json::json;
use std::collections::VecDeque;
use std::sync::{Arc, Mutex, OnceLock};
-use tinyinference_core::message::{AssistantMessage, ContentBlock, Message, MessageDelta};
-use tinyinference_core::model::{
+use tinyinference_llm::message::{AssistantMessage, ContentBlock, Message, MessageDelta};
+use tinyinference_llm::model::{
ChatModel, ModelProfile, ModelRequest, ModelResponse, ModelStream, ModelStreamItem,
};
-use tinyinference_core::tool::ToolCall;
-use tinyinference_core::usage::Usage;
+use tinyinference_llm::tool::ToolCall;
+use tinyinference_llm::usage::Usage;
#[derive(Clone, Debug)]
struct CapturedRequest {
@@ -61,12 +61,12 @@ impl ChatModel<()> for ScriptedModel {
&self,
_state: &(),
request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
+ ) -> tinyinference_llm::Result<ModelResponse> {
self.capture(&request, false);
self.pop_response()
}
- async fn stream(&self, _state: &(), request: ModelRequest) -> tinyinference_core::Result<ModelStream> {
+ async fn stream(&self, _state: &(), request: ModelRequest) -> tinyinference_llm::Result<ModelStream> {
self.capture(&request, true);
let response = self.pop_response()?;
let mut items = vec![ModelStreamItem::Started];
@@ -85,13 +85,13 @@ impl ScriptedModel {
});
}
- fn pop_response(&self) -> tinyinference_core::Result<ModelResponse> {
+ fn pop_response(&self) -> tinyinference_llm::Result<ModelResponse> {
self.responses
.lock()
.unwrap()
.pop_front()
.unwrap_or_else(|| Ok(text_response("script exhausted fallback")))
- .map_err(|error| tinyinference_core::Error::Model(error.to_string()))
+ .map_err(|error| tinyinference_llm::Error::Model(error.to_string()))
}
}
diff --git a/tests/raw_coverage/inference_agent_raw_coverage_e2e.rs b/tests/raw_coverage/inference_agent_raw_coverage_e2e.rs
index a43c3b7ddf..5f80e7da8c 100644
--- a/tests/raw_coverage/inference_agent_raw_coverage_e2e.rs
+++ b/tests/raw_coverage/inference_agent_raw_coverage_e2e.rs
@@ -141,8 +141,8 @@ use openhuman_core::inference::provider::{
use openhuman_core::inference::provider::{
ChatResponse, ProviderRuntimeOptions, ToolCall, UsageInfo,
};
-use tinyinference_core::model::{effective_temperature, model_id_glob_match};
-use tinyinference_core::sentiment::parse_sentiment_response;
+use tinyinference_llm::model::{effective_temperature, model_id_glob_match};
+use tinyinference_llm::sentiment::parse_sentiment_response;
use openhuman_core::inference::voice::cloud_transcribe::{
transcribe_cloud, CloudTranscribeOptions,
};
@@ -173,7 +173,7 @@ use openhuman_core::agent::tinyagents::thread_context::{current_thread_id, with_
use openhuman_core::threads::todos::ops::BoardLocation;
use openhuman_core::inference::tokenjuice::AgentTokenjuiceCompression;
use openhuman_core::tools::{Tool, ToolResult, ToolSpec};
-use tinyinference_core::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
+use tinyinference_llm::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
static ENV_LOCK: &std::sync::OnceLock<std::sync::Mutex<()>> = &crate::SHARED_ENV_LOCK;
@@ -249,7 +249,7 @@ impl ChatModel<()> for EchoModel {
&self,
_state: &(),
request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
+ ) -> tinyinference_llm::Result<ModelResponse> {
Ok(ModelResponse::assistant(
request
.messages
@@ -1989,8 +1989,8 @@ async fn inference_provider_factory_and_classifiers_cover_user_state_edges() {
#[tokio::test]
async fn inference_openhuman_backend_provider_covers_authless_and_streaming_edges() {
- use tinyinference_core::message::Message;
- use tinyinference_core::model::{ChatModel, ModelRequest};
+ use tinyinference_llm::message::Message;
+ use tinyinference_llm::model::{ChatModel, ModelRequest};
let state_dir = tempdir().expect("openhuman provider state");
let provider = OpenHumanBackendModel::new(
diff --git a/tests/raw_coverage/inference_provider_admin_round22_raw_coverage_e2e.rs b/tests/raw_coverage/inference_provider_admin_round22_raw_coverage_e2e.rs
index 97788fdbcc..ac9d1cae1b 100644
--- a/tests/raw_coverage/inference_provider_admin_round22_raw_coverage_e2e.rs
+++ b/tests/raw_coverage/inference_provider_admin_round22_raw_coverage_e2e.rs
@@ -15,8 +15,8 @@ use axum::routing::{get, post};
use axum::{Json, Router};
use serde_json::{json, Value};
use tempfile::{tempdir, TempDir};
-use tinyinference_core::message::Message;
-use tinyinference_core::model::ModelRequest;
+use tinyinference_llm::message::Message;
+use tinyinference_llm::model::ModelRequest;
use openhuman_core::config::schema::cloud_providers::{
AuthStyle as CloudAuthStyle, CloudProviderCreds,
diff --git a/tests/raw_coverage/tools_agent_credentials_state_raw_coverage_e2e.rs b/tests/raw_coverage/tools_agent_credentials_state_raw_coverage_e2e.rs
index 37197091da..66c28b7ca4 100644
--- a/tests/raw_coverage/tools_agent_credentials_state_raw_coverage_e2e.rs
+++ b/tests/raw_coverage/tools_agent_credentials_state_raw_coverage_e2e.rs
@@ -45,10 +45,10 @@ use openhuman_core::tools::{
use parking_lot::Mutex as ParkingMutex;
use serde_json::{json, Value};
use tempfile::{Builder, TempDir};
-use tinyinference_core::message::{AssistantMessage, ContentBlock, Message};
-use tinyinference_core::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
-use tinyinference_core::tool::ToolCall;
-use tinyinference_core::usage::Usage;
+use tinyinference_llm::message::{AssistantMessage, ContentBlock, Message};
+use tinyinference_llm::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
+use tinyinference_llm::tool::ToolCall;
+use tinyinference_llm::usage::Usage;
static ROUND16_ENV_LOCK: &OnceLock<Mutex<()>> = &crate::SHARED_ENV_LOCK;
@@ -139,7 +139,7 @@ impl ChatModel<()> for ScriptedModel {
&self,
_state: &(),
request: ModelRequest,
- ) -> tinyinference_core::Result<ModelResponse> {
+ ) -> tinyinference_llm::Result<ModelResponse> {
self.requests.lock().push(request.messages);
Ok(self.responses.lock().remove(0))
}
diff --git a/vendor/tinyagents b/vendor/tinyagents
index 580c6bbc2e..89d64c6090 160000
--- a/vendor/tinyagents
+++ b/vendor/tinyagents
@@ -1 +1 @@
-Subproject commit 580c6bbc2e68b2e27fa6ddc39e26b59ace636b0c
+Subproject commit 89d64c60905aa65ef96a5f7221f8d5f211a856d2
diff --git a/vendor/tinymemory b/vendor/tinymemory
index e3ee33b5e5..46f92206bc 160000
--- a/vendor/tinymemory
+++ b/vendor/tinymemory
@@ -1 +1 @@
-Subproject commit e3ee33b5e558e0322f57a9ec0a840a9b513171a7
+Subproject commit 46f92206bcd8b344ba87607d8c379d4373cda89f