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
test(web_chat): wire recording model through host overrides
Steven Enamakelc5ce8a61d508
diff --git a/crates/openhuman-core/src/web_chat/web_tests_start_chat_ingress_tests.rs b/crates/openhuman-core/src/web_chat/web_tests_start_chat_ingress_tests.rsindex 32f0ecb4cf..046e7f0361 100644--- a/crates/openhuman-core/src/web_chat/web_tests_start_chat_ingress_tests.rs+++ b/crates/openhuman-core/src/web_chat/web_tests_start_chat_ingress_tests.rs@@ -39,11 +39,12 @@ async fn ptt_source_turn_completes_without_publishing_a_voice_event() {"hello from mock",]));let model_errors = Arc::new(std::sync::Mutex::new(Vec::new()));+ let recording_model = Arc::new(RecordingModel {+ inner: Arc::clone(&model),+ errors: Arc::clone(&model_errors),+ });let _model = crate::inference::provider::factory::test_provider_override::install_model(- Arc::new(RecordingModel {- inner: Arc::clone(&model),- errors: Arc::clone(&model_errors),- }),+ Arc::clone(&recording_model) as Arc<dyn ChatModel<()>>,);let temp = tempfile::tempdir().expect("temporary test workspace");let workspace_dir = temp.path().join("workspace");@@ -89,6 +90,8 @@ async fn ptt_source_turn_completes_without_publishing_a_voice_event() {components.skills = false;components.flows = false;components.voice = true;+ let mut host_overrides = crate::agent::host_overrides::HostOverrides::default();+ host_overrides.model = Some(recording_model);let core_context = crate::core::runtime::CoreContext::for_test_with_components(components).derive_with(crate::core::runtime::ContextOverlay::new(@@ -97,7 +100,8 @@ async fn ptt_source_turn_completes_without_publishing_a_voice_event() {crate::tools::toolpacks::ToolGroups::none(),).without_user_skill_roots()- .definitions(definitions),+ .definitions(definitions)+ .host_overrides(Arc::new(host_overrides)),);let ctx = crate::core::runtime::DispatchCtx::new(Arc::clone(&core_context));