Skip to content

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

fix(observability): handle missing event bridge config gracefully

Steven Enamakelc4b69aa3a850
diff --git a/crates/openhuman-core/src/agent/tinyagents/observability/event_bridge.rs b/crates/openhuman-core/src/agent/tinyagents/observability/event_bridge.rs
index 22946e0f46..c3f94bcaab 100644
--- a/crates/openhuman-core/src/agent/tinyagents/observability/event_bridge.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/observability/event_bridge.rs
@@ -162,7 +162,8 @@ impl OpenhumanEventBridge {
}
/// Cumulative `(input_tokens, output_tokens, charged_usd)` observed so far.
- fn totals(&self) -> (u64, u64, f64) {
+ #[cfg(test)]
+ pub(super) fn totals(&self) -> (u64, u64, f64) {
let s = self.state.lock().unwrap();
(s.input_tokens, s.output_tokens, s.charged_amount_usd)
}