Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(web_chat): handle missing error variant in web_errors module

Steven Enamakel0fdffb891ef9
diff --git a/crates/openhuman-core/src/web_chat/web_errors.rs b/crates/openhuman-core/src/web_chat/web_errors.rs
index dc3ede2215..19d442e15f 100644
--- a/crates/openhuman-core/src/web_chat/web_errors.rs
+++ b/crates/openhuman-core/src/web_chat/web_errors.rs
@@ -1,3 +1,25 @@
-include!("web_errors_part_01.rs");
-include!("web_errors_part_02.rs");
-include!("web_errors_part_03.rs");
+//! Turning a flattened inference/agent-loop error string into a stable,
+//! user-facing chat error: budget/quota copy, timeout markers, provider
+//! detail extraction, retry-after parsing, and the classification ladder
+//! that ties them together.
+
+mod backend_error_code;
+mod budget;
+mod classify;
+mod provider_detail;
+mod response_predicates;
+mod retry;
+mod timeout;
+
+pub(crate) use budget::{
+ generic_inference_error_user_message, inference_budget_exceeded_user_message,
+ is_action_budget_exhausted, is_inference_budget_exceeded_error,
+};
+pub(crate) use classify::{classify_inference_error, ClassifiedError};
+pub(crate) use provider_detail::{
+ extract_provider_error_detail, extract_provider_name, is_fallback_chain_exhausted,
+ with_provider_detail,
+};
+pub(crate) use response_predicates::is_empty_provider_response_text;
+pub(crate) use retry::{parse_retry_after_secs_from_str, retry_after_hint, is_non_retryable_rate_limit_text};
+pub(crate) use timeout::{is_outer_backstop_timeout, is_turn_timeout_error, turn_timeout_error_message};