Skip to content

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

refactor(core): clean up test imports and simplify iteration cap logic

Steven Enamakel57fcb84b72ca
diff --git a/crates/openhuman-core/src/cron/tools/collapsed_tests.rs b/crates/openhuman-core/src/cron/tools/collapsed_tests.rs
index 58ccb9f2f5..4aef29eeef 100644
--- a/crates/openhuman-core/src/cron/tools/collapsed_tests.rs
+++ b/crates/openhuman-core/src/cron/tools/collapsed_tests.rs
@@ -1,7 +1,7 @@
use super::*;
use crate::agent::tinyagents::host::OpenHumanRunContext;
-use crate::security::turn_origin::AgentTurnOrigin;
use crate::core::runtime::{ComponentSet, CoreContext, DomainSet};
+use crate::security::turn_origin::AgentTurnOrigin;
use tinyagents_harness::{context::RunConfig, ids::CallId, tool::ToolExecutionContext};
fn tool() -> CronTool {
diff --git a/crates/openhuman-core/src/cron/tools/update_tests.rs b/crates/openhuman-core/src/cron/tools/update_tests.rs
index 7a09f23a0e..c633f40459 100644
--- a/crates/openhuman-core/src/cron/tools/update_tests.rs
+++ b/crates/openhuman-core/src/cron/tools/update_tests.rs
@@ -1,7 +1,7 @@
use super::*;
use crate::agent::tinyagents::host::OpenHumanRunContext;
-use crate::security::turn_origin::AgentTurnOrigin;
use crate::config::Config;
+use crate::security::turn_origin::AgentTurnOrigin;
use tempfile::TempDir;
use tinyagents_harness::{context::RunConfig, ids::CallId, tool::ToolExecutionContext};
use tinyflows_bus::schedule::types::{DeliveryConfig, JobOrigin, Schedule, SessionTarget};
diff --git a/crates/openhuman-core/src/flows/ops/inference_readiness.rs b/crates/openhuman-core/src/flows/ops/inference_readiness.rs
index f67d7b6590..873ca9410c 100644
--- a/crates/openhuman-core/src/flows/ops/inference_readiness.rs
+++ b/crates/openhuman-core/src/flows/ops/inference_readiness.rs
@@ -34,9 +34,7 @@ pub(super) async fn agent_node_role(
};
let effective_iteration_cap = definition
.as_ref()
- .map(|definition| {
- u32::try_from(definition.max_iterations).unwrap_or(u32::MAX)
- })
+ .map(|definition| u32::try_from(definition.max_iterations).unwrap_or(u32::MAX))
.unwrap_or(1);
let override_model = match crate::modules::tinyflows::portability_proxy(config).await {
Ok(proxy) => proxy