Skip to content

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

refactor(tinyagents): update observability module structure

Steven Enamakel521cb1431376
diff --git a/crates/openhuman-core/src/agent/tinyagents/observability.rs b/crates/openhuman-core/src/agent/tinyagents/observability.rs
index 1dbda13b1e..0b169af20a 100644
--- a/crates/openhuman-core/src/agent/tinyagents/observability.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/observability.rs
@@ -9,6 +9,7 @@
//! tinyagents path — and feeds per-call usage into the global cost tracker.
mod bridge_types;
+mod cache_layout;
mod event_bridge;
mod event_projection;
mod tool_progress_projection;
@@ -23,8 +24,8 @@ use tinyinference_llm::usage::Usage;
use crate::progress::AgentProgress;
pub(crate) use bridge_types::{ProviderUsageCarry, SubagentScope, ToolFailureMap, ToolNameMap};
+pub(crate) use cache_layout::surface_cache_layout_events;
pub(crate) use event_bridge::OpenhumanEventBridge;
-pub(crate) use event_projection::surface_cache_layout_events;
#[cfg(test)]
#[path = "observability_tests.rs"]
diff --git a/crates/openhuman-core/src/agent/tinyagents/observability/event_projection.rs b/crates/openhuman-core/src/agent/tinyagents/observability/event_projection.rs
index 21a5a2e401..8defb7c6e0 100644
--- a/crates/openhuman-core/src/agent/tinyagents/observability/event_projection.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/observability/event_projection.rs
@@ -4,7 +4,6 @@
use std::sync::atomic::Ordering;
-use tinyagents_harness::cache::CacheLayoutEvent;
use tinyagents_harness::events::{AgentEvent, EventListener, EventRecord};
use crate::progress::AgentProgress;