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
chore(core): widen visibility of triage evaluator items from pub(super) to pub(crate)
Steven Enamakel4b53a5f247fe
diff --git a/crates/openhuman-core/src/agent/triage/evaluator/arm.rs b/crates/openhuman-core/src/agent/triage/evaluator/arm.rsindex 323652c3a2..5356c7c791 100644--- a/crates/openhuman-core/src/agent/triage/evaluator/arm.rs+++ b/crates/openhuman-core/src/agent/triage/evaluator/arm.rs@@ -29,7 +29,7 @@ pub const TRIGGER_TRIAGE_AGENT_ID: &str = "trigger_triage";/// Single-arm execution result. `Retryable` lets the orchestrator/// decide whether to sleep + retry on the same arm (cloud) or to fall/// through (local). `Fatal` short-circuits the whole chain.-pub(super) enum ArmError {+pub(crate) enum ArmError {/// 429 / 5xx / timeout / connection — the kind of failure where/// trying again later might help.Retryable {@@ -222,7 +222,7 @@ pub(super) async fn try_arm(/// Classify a handler-failure message string from the agent bus into/// either a retryable (sleep + try again) or fatal (give up) error.-pub(super) fn classify_error(message: String) -> ArmError {+pub(crate) fn classify_error(message: String) -> ArmError {let err = anyhow!("{message}");if is_rate_limited(&err) {return ArmError::Retryable {diff --git a/crates/openhuman-core/src/agent/triage/evaluator/prompt.rs b/crates/openhuman-core/src/agent/triage/evaluator/prompt.rsindex 5ea4f56a65..76b7a17d8d 100644--- a/crates/openhuman-core/src/agent/triage/evaluator/prompt.rs+++ b/crates/openhuman-core/src/agent/triage/evaluator/prompt.rs@@ -9,7 +9,7 @@ use super::super::envelope::TriggerEnvelope;/// How much of the raw payload we inline into the user message.const PAYLOAD_INLINE_LIMIT_BYTES: usize = 8 * 1024;-pub(super) fn extract_inline_prompt(def: &AgentDefinition) -> Option<String> {+pub(crate) fn extract_inline_prompt(def: &AgentDefinition) -> Option<String> {match &def.system_prompt {PromptSource::Inline(body) if !body.is_empty() => Some(body.clone()),PromptSource::Dynamic(build) => {@@ -58,7 +58,7 @@ pub(super) fn extract_inline_prompt(def: &AgentDefinition) -> Option<String> {}}-pub(super) fn render_user_message(envelope: &TriggerEnvelope) -> String {+pub(crate) fn render_user_message(envelope: &TriggerEnvelope) -> String {let payload_string = truncate_payload(&envelope.payload, PAYLOAD_INLINE_LIMIT_BYTES);format!("SOURCE: {source}\n\@@ -82,7 +82,7 @@ pub(super) fn format_parse_error(err: &ParseError) -> String {}}-pub(super) fn truncate_payload(payload: &serde_json::Value, max_bytes: usize) -> String {+pub(crate) fn truncate_payload(payload: &serde_json::Value, max_bytes: usize) -> String {let pretty = serde_json::to_string_pretty(payload).unwrap_or_else(|_| payload.to_string());if pretty.len() <= max_bytes {return pretty;