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(core): update error message imports and usage
Steven Enamakel6ec0e44c2848
diff --git a/crates/openhuman-core/src/channels/providers/relay/ops.rs b/crates/openhuman-core/src/channels/providers/relay/ops.rsindex faf8701780..01b3dd4785 100644--- a/crates/openhuman-core/src/channels/providers/relay/ops.rs+++ b/crates/openhuman-core/src/channels/providers/relay/ops.rs@@ -194,6 +194,7 @@ pub(crate) async fn run_relay_turn(&config,parts,Arc::new(channels_by_name),+ Arc::new(HashMap::new()),message_timeout_secs,);runtime.relay_thread = Some(thread_id.clone());diff --git a/crates/openhuman-core/src/channels/runtime/dispatch/host_agent/mod.rs b/crates/openhuman-core/src/channels/runtime/dispatch/host_agent/mod.rsindex 98befa4607..066816cfda 100644--- a/crates/openhuman-core/src/channels/runtime/dispatch/host_agent/mod.rs+++ b/crates/openhuman-core/src/channels/runtime/dispatch/host_agent/mod.rs@@ -57,7 +57,7 @@ pub(crate) async fn configured_agent(config.default_model = Some(route.model.clone());config.default_temperature = ctx.temperature;config.multimodal_files = crate::config::MultimodalFileConfig::for_untrusted_channel_input();- HostAgent::from_config(&dispatch, config, agent_id).map_err(|error| error.to_string())+ HostAgent::from_config(&dispatch, config, &agent_id).map_err(|error| error.to_string())}/// What a channel's binding resolves to for one message.diff --git a/crates/openhuman-core/src/channels/runtime/dispatch/native_runner.rs b/crates/openhuman-core/src/channels/runtime/dispatch/native_runner.rsindex cc1223241a..05c73d68c9 100644--- a/crates/openhuman-core/src/channels/runtime/dispatch/native_runner.rs+++ b/crates/openhuman-core/src/channels/runtime/dispatch/native_runner.rs@@ -387,10 +387,10 @@ impl Summarizer<QueuedPayload> for NativeSummarizer {let idle = request.idle_timeout.unwrap_or_else(crate::agent::turn_policy::configured_idle_window);- crate::web_chat::web_errors::turn_idle_error_message(idle.as_secs())+ crate::web_chat::turn_idle_error_message(idle.as_secs())} else {let deadline = request.deadline.unwrap_or_default();- crate::web_chat::web_errors::turn_timeout_error_message(deadline.as_secs())+ crate::web_chat::turn_timeout_error_message(deadline.as_secs())};let (failure_type, message) = NativeFailures.classify(&error);Some(TurnResult {diff --git a/crates/openhuman-core/src/web_chat/mod.rs b/crates/openhuman-core/src/web_chat/mod.rsindex 94631d1408..ef48351188 100644--- a/crates/openhuman-core/src/web_chat/mod.rs+++ b/crates/openhuman-core/src/web_chat/mod.rs@@ -47,7 +47,9 @@ mod types;mod voice_notes;mod web_errors;-pub(crate) use web_errors::classify_inference_error;+pub(crate) use web_errors::{+ classify_inference_error, turn_idle_error_message, turn_timeout_error_message,+};#[cfg(any(test, debug_assertions))]#[allow(unused_imports)]pub(crate) use web_errors::{