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
style: apply rustfmt formatting to inference tests
Steven Enamakel4475bf43aff8
diff --git a/crates/openhuman-core/src/inference/readiness_tests.rs b/crates/openhuman-core/src/inference/readiness_tests.rsindex 7a92f96e41..23298baf5f 100644--- a/crates/openhuman-core/src/inference/readiness_tests.rs+++ b/crates/openhuman-core/src/inference/readiness_tests.rs@@ -3,12 +3,10 @@ use tempfile::TempDir;#[tokio::test]async fn cached_probe_serves_definitive_negative_results() {- use std::sync::atomic::{AtomicUsize, Ordering};use crate::core::runtime::{CoreContext, DispatchCtx, DomainSet};use crate::core::slots::Extensions;- use crate::inference::registry::{- register_chat_model_in, ChatModelEntry, ProviderModelHooks,- };+ use crate::inference::registry::{register_chat_model_in, ChatModelEntry, ProviderModelHooks};+ use std::sync::atomic::{AtomicUsize, Ordering};use std::sync::Arc;use tinyinference_llm::model::ChatModel;@@ -52,7 +50,9 @@ async fn cached_probe_serves_definitive_negative_results() {ChatModelEntry {build: Arc::new(|_| {Ok((- Arc::new(tinyagents_harness::testkit::ScriptedModel::replies(["ready"])),+ Arc::new(tinyagents_harness::testkit::ScriptedModel::replies([+ "ready",+ ])),"fixture-model".to_string(),))}),@@ -100,10 +100,6 @@ async fn cached_probe_serves_definitive_negative_results() {.to_ascii_lowercase().contains("api key not configured for provider"));assert_eq!(hit_count.load(Ordering::SeqCst), 1);- assert!(- cached_probe(&ctx, "summarization", &config)- .await- .is_err()- );+ assert!(cached_probe(&ctx, "summarization", &config).await.is_err());assert_eq!(hit_count.load(Ordering::SeqCst), 1);}diff --git a/crates/openhuman-tinyhumans/src/inference/managed_embedding_tests.rs b/crates/openhuman-tinyhumans/src/inference/managed_embedding_tests.rsindex 6b3d7ab659..414c871c91 100644--- a/crates/openhuman-tinyhumans/src/inference/managed_embedding_tests.rs+++ b/crates/openhuman-tinyhumans/src/inference/managed_embedding_tests.rs@@ -2,7 +2,9 @@ use super::*;use openhuman_embed::__host::config::Config;use openhuman_embed::__host::security::credentials::AuthService;use std::collections::HashMap;-use tinyinference_embeddings::{CloudEmbeddingModel, DEFAULT_CLOUD_DIMENSIONS, DEFAULT_CLOUD_MODEL};+use tinyinference_embeddings::{+ CloudEmbeddingModel, DEFAULT_CLOUD_DIMENSIONS, DEFAULT_CLOUD_MODEL,+};fn test_config(tmp: &tempfile::TempDir) -> Config {Config {@@ -21,11 +23,7 @@ fn state_dir_of(config: &Config) -> std::path::PathBuf {/// Builds the embedder the way the core's managed factory does: through the/// registered embedding provider, with the config's credential scope.-fn build_through_registry(- config: &Config,- model: &str,- dimensions: usize,-) -> CloudEmbeddingModel {+fn build_through_registry(config: &Config, model: &str, dimensions: usize) -> CloudEmbeddingModel {from_request(&EmbeddingRequest {config: Some(config),model,diff --git a/crates/openhuman-tinyhumans/src/inference/managed_model.rs b/crates/openhuman-tinyhumans/src/inference/managed_model.rsindex 4278982cd0..491f52d7c8 100644--- a/crates/openhuman-tinyhumans/src/inference/managed_model.rs+++ b/crates/openhuman-tinyhumans/src/inference/managed_model.rs@@ -126,4 +126,3 @@ fn log_managed_error(error: &tinyinference_llm::Error, point: TinyHumansFailureP#[cfg(test)]#[path = "managed_model_tests.rs"]mod tests;-