Skip to content

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

chore(channels): remove unused test-only re-exports

Steven Enamakelf579fbcc4dce
diff --git a/crates/openhuman-core/src/channels/context.rs b/crates/openhuman-core/src/channels/context.rs
index b7a0dbd856..2636a2170c 100644
--- a/crates/openhuman-core/src/channels/context.rs
+++ b/crates/openhuman-core/src/channels/context.rs
@@ -16,10 +16,6 @@ pub(crate) use tinychannels_bus::{
DEFAULT_CHANNEL_MAX_BACKOFF_SECS, MAX_CHANNEL_HISTORY,
};
-#[cfg(test)]
-pub(crate) use tinychannels::context::{
- effective_channel_message_timeout_secs, MIN_CHANNEL_MESSAGE_TIMEOUT_SECS,
-};
pub(crate) type TurnModelSourceCacheMap = Arc<Mutex<HashMap<String, TurnModelSource>>>;
pub(crate) type RouteSelectionMap = Arc<Mutex<HashMap<String, ChannelRouteSelection>>>;
@@ -80,11 +76,6 @@ pub(crate) async fn module_client(ctx: &ChannelRuntimeContext) -> tinybus::modul
crate::modules::client(ctx.config.as_deref().cloned().unwrap_or_default())
}
-#[cfg(test)]
-pub(crate) fn conversation_history_key(msg: &tinychannels_bus::ChannelMessage) -> String {
- tinychannels::context::conversation_history_key(msg)
-}
-
pub(crate) async fn is_context_window_overflow_error(
ctx: &ChannelRuntimeContext,
err: &anyhow::Error,