The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
refactor(tests): adjust argument borrowing in test helpers
Steven Enamakel61fbd37ccc7c
diff --git a/crates/openhuman-core/src/agent/session_host/test_support.rs b/crates/openhuman-core/src/agent/session_host/test_support.rsindex 965b81d79c..9af122d432 100644--- a/crates/openhuman-core/src/agent/session_host/test_support.rs+++ b/crates/openhuman-core/src/agent/session_host/test_support.rs@@ -27,7 +27,7 @@ pub(crate) fn with_fixture_model_name(builder: SessionHostBuilder) -> SessionHos/// are thread-local, so each test opts in on the thread that builds its host.fn model_fixture_entry() -> ChatModelEntry {ChatModelEntry {- build: Arc::new(|request: ChatModelRequest<'_>| {+ build: Arc::new(|request: &ChatModelRequest<'_>| {let model = request.model_override.or(request.default_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.rsindex 2b9b92a60a..4f16ae59d0 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@@ -307,7 +307,7 @@ fn create_chat_model_routes_local_runtime_to_crate_native() {fn explicit_local_provider_string_routes_to_crate_native_model() {let _guard = crate::inference::inference_test_guard();let config = Config::default();- let (model, model_id) =+ let (_model, model_id) =create_chat_model_from_string_with_model_id("chat", "ollama:qwen2.5", &config, 0.7).expect("explicit local model must build");assert_eq!(model_id, "qwen2.5");