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): update backend error classification tests
Steven Enamakel7fe9dff2cc42
diff --git a/crates/openhuman-core/src/web_chat/web_tests.rs b/crates/openhuman-core/src/web_chat/web_tests.rsindex ff7dc91e5d..99bbaf8bf5 100644--- a/crates/openhuman-core/src/web_chat/web_tests.rs+++ b/crates/openhuman-core/src/web_chat/web_tests.rs@@ -14,9 +14,9 @@ use crate::core::TypeSchema;use crate::inference::registry::{register_backend_error_classifier, BackendErrorClassification, BackendErrorKind,};+use std::collections::HashMap;use std::sync::atomic::{AtomicBool, Ordering};use std::sync::{Arc, Mutex, OnceLock};-use std::collections::HashMap;use tinyagents_harness::run_queue::QueueLane;use tokio::time::{timeout, Duration};@@ -82,8 +82,7 @@ fn classify_with_backend_metadata(reportable: malformed_bad_request|| matches!(kind,- BackendErrorKind::PayloadTooLarge- | BackendErrorKind::ContextLengthExceeded+ BackendErrorKind::PayloadTooLarge | BackendErrorKind::ContextLengthExceeded),token: None,kind: Some(kind),@@ -101,9 +100,7 @@ fn classify_failure_fixture(case: &str, message: &str) -> ClassifiedError {"be_model_unavailable" => Some((BackendErrorKind::ModelUnavailable, false)),"be_payload" => Some((BackendErrorKind::PayloadTooLarge, false)),"be_context" => Some((BackendErrorKind::ContextLengthExceeded, false)),- "be_bad_request" | "be_bad_request_history" => {- Some((BackendErrorKind::BadRequest, false))- }+ "be_bad_request" | "be_bad_request_history" => Some((BackendErrorKind::BadRequest, false)),"be_bad_request_malformed" => Some((BackendErrorKind::BadRequest, true)),"be_internal" => Some((BackendErrorKind::Internal, false)),_ => None,