Skip to content

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

feat(tinyhumans): add managed model inference tests

Steven Enamakel6972eb2876cd
diff --git a/crates/openhuman-tinyhumans/Cargo.toml b/crates/openhuman-tinyhumans/Cargo.toml
index ffafeeee96..7d6d304d04 100644
--- a/crates/openhuman-tinyhumans/Cargo.toml
+++ b/crates/openhuman-tinyhumans/Cargo.toml
@@ -114,6 +114,9 @@ reqwest = { version = "0.12", default-features = false, features = ["json", "mul
axum = { version = "0.8", default-features = false, features = ["http1", "json", "tokio", "query", "ws", "macros"] }
tempfile = "3"
tinybus = { path = "../../vendor/tinybus/crates/tinybus", default-features = false }
+# The managed-model stream tests replay SSE through the real harness loop.
+tinyagents-harness = { path = "../../vendor/tinyagents/crates/tinyagents-harness", default-features = false }
+futures = "0.3"
tokio = { version = "1", features = ["full", "test-util"] }
wiremock = "0.6"
tokio-util = { version = "0.7", features = ["rt", "io"] }
diff --git a/crates/openhuman-tinyhumans/src/inference/managed_model_tests.rs b/crates/openhuman-tinyhumans/src/inference/managed_model_tests.rs
index 4d8fd3cd67..8a2a0ca757 100644
--- a/crates/openhuman-tinyhumans/src/inference/managed_model_tests.rs
+++ b/crates/openhuman-tinyhumans/src/inference/managed_model_tests.rs
@@ -1,9 +1,8 @@
use super::*;
use super::super::managed_reasoning::{apply_reasoning_hint, with_thread_id};
-use super::super::managed_session::managed_bearer;
-use super::super::managed_usage::project_managed_usage;
use openhuman_embed::__host::inference_registry::REASONING_OFF_METADATA_KEY;
-use tinyinference_llm::model::{ChatModel, ModelResponse};
+use serde_json::Value;
+use tinyinference_llm::model::ChatModel;
/// Mirror of the core's `without_reasoning` hint: the metadata flag the managed
/// model turns into `reasoning: { enabled: false }`.