Skip to content

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

fix(agent): preserve extracted test imports

Steven Enamakel2fc44f9fa394
diff --git a/crates/openhuman-core/src/agent/session_host/driver_tests.rs b/crates/openhuman-core/src/agent/session_host/driver_tests.rs
index 390f1b2009..1d360f867c 100644
--- a/crates/openhuman-core/src/agent/session_host/driver_tests.rs
+++ b/crates/openhuman-core/src/agent/session_host/driver_tests.rs
@@ -94,7 +94,11 @@ fn graph_failure_copies_snapshot_usage_and_failed_tool_outcome_to_sidecar() {
.as_ref()
.expect("accepted route reaches sidecar");
assert_eq!(
- (&route.provider, &route.model, &route.route),
+ (
+ route.provider.as_str(),
+ route.model.as_str(),
+ route.route.as_str()
+ ),
("openhuman", "chat-concrete", "chat-v1")
);
assert_eq!(observed.tool_calls, 1);
diff --git a/crates/openhuman-core/src/agent/tinyagents/turn_runner_tests.rs b/crates/openhuman-core/src/agent/tinyagents/turn_runner_tests.rs
index d5e103ec2a..6014a970ae 100644
--- a/crates/openhuman-core/src/agent/tinyagents/turn_runner_tests.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/turn_runner_tests.rs
@@ -1,6 +1,7 @@
use super::*;
use crate::agent::tinyagents::TurnModelSource;
use std::sync::Arc;
+use tinyagents_harness::host::{ContextComposer, TurnContextRequest};
fn hosted_base() -> Arc<crate::agent::tinyagents::host::OpenHumanHostBase> {
Arc::new(crate::agent::tinyagents::host::OpenHumanHostBase {