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(inference): update factory imports and clean up tests
Steven Enamakel8e7e5db663fe
diff --git a/crates/openhuman-core/src/inference/provider/factory.rs b/crates/openhuman-core/src/inference/provider/factory.rsindex a8096574f3..7dead32556 100644--- a/crates/openhuman-core/src/inference/provider/factory.rs+++ b/crates/openhuman-core/src/inference/provider/factory.rs@@ -72,7 +72,7 @@ pub(crate) use turn_model::{// Factory-internal helpers shared across the submodules (and their tests)// through `use super::*`.use access_gates::{emit_inference_egress, enforce_local_only_inference};-use chat_model::{unresolved_chat_model_error, with_default_temperature};+use chat_model::{unresolved_chat_model_error, unresolved_chat_model_error_for, with_default_temperature};use cloud_slug::{resolve_cloud_slug, resolve_cloud_slug_for, try_create_cloud_slug_chat_model,try_create_cloud_slug_chat_model_from_string,@@ -84,7 +84,7 @@ use local_runtime::{try_create_local_runtime_chat_model, try_create_local_runtime_chat_model_from_string,OptionalChatModelResult,};-use managed_backend::managed_chat_model;+use managed_backend::{managed_chat_model, managed_chat_model_for};pub(crate) use managed_backend::{make_openhuman_backend_model_for_options, make_openhuman_backend_model_for_thread,make_openhuman_backend_model_for_thread_in, make_openhuman_backend_model_in,diff --git a/crates/openhuman-core/src/inference/provider/factory_explicit_ctx_tests.rs b/crates/openhuman-core/src/inference/provider/factory_explicit_ctx_tests.rsindex 169012b1f2..2e119c4c8a 100644--- a/crates/openhuman-core/src/inference/provider/factory_explicit_ctx_tests.rs+++ b/crates/openhuman-core/src/inference/provider/factory_explicit_ctx_tests.rs@@ -79,17 +79,6 @@ async fn managed_factory_and_probe_use_the_explicit_provider_entry() {.await.expect("simple chat uses its explicit model entry");assert_eq!(simple_chat.value, "context-a-one-shot");- let simple = crate::inference::host_runtime::ops::agent_chat_simple::agent_chat_simple(- &dispatch,- &config,- "fixture prompt",- None,- None,- None,- )- .await- .expect("simple chat uses its explicit context model");- assert_eq!(simple.value, "context-a-one-shot");for (chat, _, _) in [create_turn_chat_model_with_native_tools_and_route(&dispatch,diff --git a/crates/openhuman-core/src/inference/turn_models_tests.rs b/crates/openhuman-core/src/inference/turn_models_tests.rsindex d1ef84cf77..d1d782d019 100644--- a/crates/openhuman-core/src/inference/turn_models_tests.rs+++ b/crates/openhuman-core/src/inference/turn_models_tests.rs@@ -83,7 +83,6 @@ async fn explicit_turn_context_uses_its_model_and_capabilities_over_ambient_contassert_eq!(name_of(&models.primary).await, "context-a-model");assert_eq!(name_of(&models.summarizer).await, "context-a-model");- assert_eq!(name_of(&models.summarizer).await, "context-a-model");assert!(models.primary.profile()