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(channels): split channel runtime into dispatch and provider modules
Steven Enamakel349e6726428d
diff --git a/crates/openhuman-core/src/channels/context.rs b/crates/openhuman-core/src/channels/context.rsindex 0f23674441..d2f8c62be7 100644--- a/crates/openhuman-core/src/channels/context.rs+++ b/crates/openhuman-core/src/channels/context.rs@@ -76,7 +76,7 @@ pub(crate) async fn module_client(}#[cfg(test)]-pub(crate) fn conversation_history_key(msg: &super::traits::ChannelMessage) -> String {+pub(crate) fn conversation_history_key(msg: &tinychannels_bus::ChannelMessage) -> String {tinychannels::context::conversation_history_key(msg)}diff --git a/crates/openhuman-core/src/channels/context_tests.rs b/crates/openhuman-core/src/channels/context_tests.rsindex c3350a59bc..15058bb9f8 100644--- a/crates/openhuman-core/src/channels/context_tests.rs+++ b/crates/openhuman-core/src/channels/context_tests.rs@@ -1,5 +1,5 @@use super::*;-use crate::channels::traits;+use tinychannels_bus as traits;use async_trait::async_trait;use tinytools::{Tool, ToolResult};diff --git a/crates/openhuman-core/src/channels/host/channel_events_tests.rs b/crates/openhuman-core/src/channels/host/channel_events_tests.rsindex cbd2cde58c..5dff851e43 100644--- a/crates/openhuman-core/src/channels/host/channel_events_tests.rs+++ b/crates/openhuman-core/src/channels/host/channel_events_tests.rs@@ -1,7 +1,7 @@//! Tests for the channel approval-surface and turn-state subscribers.use super::*;-use crate::channels::traits::{ChannelMessage, SendMessage};+use tinychannels_bus::{ChannelMessage, SendMessage};use std::path::Path;use std::sync::Mutex as StdMutex;use tempfile::tempdir;diff --git a/crates/openhuman-core/src/channels/mod.rs b/crates/openhuman-core/src/channels/mod.rsindex 82878602d9..3ec332a6b2 100644--- a/crates/openhuman-core/src/channels/mod.rs+++ b/crates/openhuman-core/src/channels/mod.rs@@ -9,9 +9,8 @@pub mod contract_schema;#[cfg(any(feature = "voice", feature = "channels"))]pub(crate) mod credentials;-pub mod traits;-pub use traits::{Channel, ChannelSendExt, SendMessage};+pub use tinychannels_bus::{Channel, ChannelSendExt, SendMessage};#[cfg(feature = "channels")]pub mod bus;diff --git a/crates/openhuman-core/src/channels/proactive_tests.rs b/crates/openhuman-core/src/channels/proactive_tests.rsindex 6891a3aa62..fa643f66f1 100644--- a/crates/openhuman-core/src/channels/proactive_tests.rs+++ b/crates/openhuman-core/src/channels/proactive_tests.rs@@ -1,5 +1,5 @@use super::*;-use crate::channels::traits::ChannelMessage;+use tinychannels_bus::ChannelMessage;use std::sync::atomic::{AtomicUsize, Ordering};use tokio::sync::mpsc;diff --git a/crates/openhuman-core/src/channels/providers/relay/channel.rs b/crates/openhuman-core/src/channels/providers/relay/channel.rsindex d68e94dd44..ed68c76116 100644--- a/crates/openhuman-core/src/channels/providers/relay/channel.rs+++ b/crates/openhuman-core/src/channels/providers/relay/channel.rs@@ -10,7 +10,7 @@ use std::sync::Mutex;use async_trait::async_trait;use serde_json::json;-use crate::channels::traits::{Channel, ChannelMessage, SendMessage};+use tinychannels_bus::{Channel, ChannelMessage, SendMessage};use crate::web_chat::{publish_web_channel_event, WebChannelEvent};/// The event name a relayed reply is published under.diff --git a/crates/openhuman-core/src/channels/providers/relay/ops.rs b/crates/openhuman-core/src/channels/providers/relay/ops.rsindex 094d7345e4..a24e279c32 100644--- a/crates/openhuman-core/src/channels/providers/relay/ops.rs+++ b/crates/openhuman-core/src/channels/providers/relay/ops.rs@@ -124,7 +124,7 @@ pub(crate) async fn run_relay_turn(tracing::warn!("relayed channel runtime limits unavailable: {error}");let reply ="⚠️ This chat's assistant is not available right now. Please try again later.";- let _ = crate::channels::traits::Channel::send(+ let _ = tinychannels_bus::Channel::send(channel.as_ref(),&crate::channels::SendMessage::new(reply, ¶ms.chat_id),)@@ -149,7 +149,7 @@ pub(crate) async fn run_relay_turn();let reply ="⚠️ This chat's assistant is not available right now. Please try again later.";- let _ = crate::channels::traits::Channel::send(+ let _ = tinychannels_bus::Channel::send(channel.as_ref(),&crate::channels::SendMessage::new(reply, ¶ms.chat_id),)diff --git a/crates/openhuman-core/src/channels/providers/relay/params.rs b/crates/openhuman-core/src/channels/providers/relay/params.rsindex ba2dd2e8bc..f4d1112ddc 100644--- a/crates/openhuman-core/src/channels/providers/relay/params.rs+++ b/crates/openhuman-core/src/channels/providers/relay/params.rs@@ -6,7 +6,7 @@ use serde_json::Value;#[cfg(test)]use crate::channels::bus::derive_inbound_thread_id;-use crate::channels::traits::ChannelMessage;+use tinychannels_bus::ChannelMessage;/// Longest channel name: `telegram`, `imessage`, `discord`, ...pub const MAX_CHANNEL_LEN: usize = 32;diff --git a/crates/openhuman-core/src/channels/routes.rs b/crates/openhuman-core/src/channels/routes.rsindex f7fd070e82..6edb91416d 100644--- a/crates/openhuman-core/src/channels/routes.rs+++ b/crates/openhuman-core/src/channels/routes.rs@@ -1,7 +1,7 @@//! Per-sender routing and runtime command handling.use super::context::{clear_sender_history, ChannelRouteSelection, ChannelRuntimeContext};-use super::traits;+use tinychannels_bus as traits;use super::{Channel, ChannelSendExt, SendMessage};use crate::inference::provider;use std::sync::Arc;diff --git a/crates/openhuman-core/src/channels/routes_tests.rs b/crates/openhuman-core/src/channels/routes_tests.rsindex 983e68e7ca..0560f42f31 100644--- a/crates/openhuman-core/src/channels/routes_tests.rs+++ b/crates/openhuman-core/src/channels/routes_tests.rs@@ -3,7 +3,7 @@ use crate::channels::context::{conversation_history_key, ChannelRuntimeContext, RouteSelectionMap, TurnModelSourceCacheMap,};use crate::channels::host::ChannelTurnStateSubscriber;-use crate::channels::traits::ChannelMessage;+use tinychannels_bus::ChannelMessage;use crate::core::events::DomainEvent;use async_trait::async_trait;use std::collections::HashMap;diff --git a/crates/openhuman-core/src/channels/runtime/dispatch/helpers.rs b/crates/openhuman-core/src/channels/runtime/dispatch/helpers.rsindex dc204ee0b9..aafb299c75 100644--- a/crates/openhuman-core/src/channels/runtime/dispatch/helpers.rs+++ b/crates/openhuman-core/src/channels/runtime/dispatch/helpers.rs@@ -1,7 +1,7 @@//! OpenHuman-specific dispatch prompt context plus TinyChannels helpers.use crate::channels::context::CHANNEL_TYPING_REFRESH_INTERVAL_SECS;-use crate::channels::traits;+use tinychannels_bus as traits;/// Maximum characters shown in the debug reply println.pub(super) const REPLY_LOG_TRUNCATE_CHARS: usize = 200;diff --git a/crates/openhuman-core/src/channels/runtime/dispatch/host_agent/dispatch_tests.rs b/crates/openhuman-core/src/channels/runtime/dispatch/host_agent/dispatch_tests.rsindex 4e28b785e7..a27dc92c7d 100644--- a/crates/openhuman-core/src/channels/runtime/dispatch/host_agent/dispatch_tests.rs+++ b/crates/openhuman-core/src/channels/runtime/dispatch/host_agent/dispatch_tests.rs@@ -7,7 +7,8 @@ use crate::agent::bus::{mock_agent_run_turn, AgentTurnRequest, AgentTurnResponseuse crate::agent::host_agents::{self, HostAgent, HostAgentResolver};use crate::channels::context::{ChannelRuntimeContext, CHANNEL_MESSAGE_TIMEOUT_SECS};use crate::channels::runtime::process_channel_message;-use crate::channels::{traits, Channel, SendMessage};+use tinychannels_bus as traits;+use crate::channels::{Channel, SendMessage};use crate::core::runtime::{CoreContext, DomainSet};use serde_json::{json, Value};use std::collections::HashMap;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 f2ab2e16f8..17a1ae92b3 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@@ -20,7 +20,7 @@ use std::sync::Arc;use crate::agent::host_agents::HostAgent;use crate::channels::context::ChannelRuntimeContext;-use crate::channels::traits;+use tinychannels_bus as traits;use crate::channels::{ChannelSendExt, SendMessage};use crate::config::Config;use crate::core::bus::BUS;diff --git a/crates/openhuman-core/src/channels/runtime/dispatch/mod.rs b/crates/openhuman-core/src/channels/runtime/dispatch/mod.rsindex 433662df47..6fb02f67b5 100644--- a/crates/openhuman-core/src/channels/runtime/dispatch/mod.rs+++ b/crates/openhuman-core/src/channels/runtime/dispatch/mod.rs@@ -36,7 +36,7 @@ use helpers::select_acknowledgment_reaction;use routing::{build_visible_tool_set, AgentScoping};#[cfg(any(test, debug_assertions))]-use crate::channels::traits;+use tinychannels_bus as traits;#[cfg(any(test, debug_assertions))]#[path = "mod_test_support_tests.rs"]diff --git a/crates/openhuman-core/src/channels/runtime/dispatch/processor/approval.rs b/crates/openhuman-core/src/channels/runtime/dispatch/processor/approval.rsindex bad81104c9..a5216c9832 100644--- a/crates/openhuman-core/src/channels/runtime/dispatch/processor/approval.rs+++ b/crates/openhuman-core/src/channels/runtime/dispatch/processor/approval.rs@@ -1,7 +1,7 @@//! Gating and intercepting approval-gate replies on channels that surface//! approvals in chat.-use crate::channels::traits;+use tinychannels_bus as traits;/// Whether a channel surfaces approvals in chat: the/// `ChannelApprovalSurfaceSubscriber` turns `ApprovalRequested` events intodiff --git a/crates/openhuman-core/src/channels/runtime/dispatch/processor/bus_turn.rs b/crates/openhuman-core/src/channels/runtime/dispatch/processor/bus_turn.rsindex 79e4bfa101..86e931be99 100644--- a/crates/openhuman-core/src/channels/runtime/dispatch/processor/bus_turn.rs+++ b/crates/openhuman-core/src/channels/runtime/dispatch/processor/bus_turn.rs@@ -5,7 +5,7 @@ use crate::agent::bus::{AgentTurnRequest, AgentTurnResponse, AGENT_RUN_TURN_METHuse crate::agent::progress::AgentProgress;use crate::agent::turn_origin::AgentTurnOrigin;use crate::channels::context::{ChannelRouteSelection, ChannelRuntimeContext};-use crate::channels::traits;+use tinychannels_bus as traits;use crate::core::bus::BUS;use std::sync::Arc;use tinyagents_session::transcript::TranscriptMessage;diff --git a/crates/openhuman-core/src/channels/runtime/dispatch/processor/turn.rs b/crates/openhuman-core/src/channels/runtime/dispatch/processor/turn.rsindex eef5f49052..0f5b52fb83 100644--- a/crates/openhuman-core/src/channels/runtime/dispatch/processor/turn.rs+++ b/crates/openhuman-core/src/channels/runtime/dispatch/processor/turn.rs@@ -10,7 +10,7 @@ use crate::channels::context::{use crate::channels::routes::{get_or_create_turn_model_source, get_route_selection, handle_runtime_command_if_needed,};-use crate::channels::traits;+use tinychannels_bus as traits;use crate::channels::{ChannelSendExt, SendMessage};use crate::core::bus::BUS;use crate::core::events::DomainEvent;diff --git a/crates/openhuman-core/src/channels/runtime/startup/module_providers.rs b/crates/openhuman-core/src/channels/runtime/startup/module_providers.rsindex 3614092ec8..96a65a7659 100644--- a/crates/openhuman-core/src/channels/runtime/startup/module_providers.rs+++ b/crates/openhuman-core/src/channels/runtime/startup/module_providers.rs@@ -3,7 +3,7 @@use super::callback::ChannelHostCallbacks;use super::credentials::hydrate_channel_credentials;use crate::channels::runtime::dispatch::RuntimeChannelMessage;-use crate::channels::traits::{Channel, ChannelMessage, SendMessage};+use tinychannels_bus::{Channel, ChannelMessage, SendMessage};use crate::config::Config;use crate::modules::channel_runtime::ChannelRuntimeLease;use crate::modules::client::{ModuleCallError, ModuleClient, ModuleObjectClient};diff --git a/crates/openhuman-core/src/channels/runtime/test_support.rs b/crates/openhuman-core/src/channels/runtime/test_support.rsindex b9e4786abf..fee6947499 100644--- a/crates/openhuman-core/src/channels/runtime/test_support.rs+++ b/crates/openhuman-core/src/channels/runtime/test_support.rs@@ -8,7 +8,7 @@ pub use super::startup::test_support::resolve_yuanbao_app_secret_for_test;use crate::agent::bus::{AgentTurnRequest, AgentTurnResponse, AGENT_RUN_TURN_METHOD};use crate::agent::progress::AgentProgress;use crate::channels::context::{ChannelRuntimeContext, CHANNEL_MESSAGE_TIMEOUT_SECS};-use crate::channels::traits::{ChannelMessage, SendMessage};+use tinychannels_bus::{ChannelMessage, SendMessage};use crate::channels::Channel;use crate::channels::ChannelSystemPrompt;use crate::config::{MultimodalConfig, MultimodalFileConfig, ReliabilityConfig};diff --git a/crates/openhuman-core/src/channels/tests/common.rs b/crates/openhuman-core/src/channels/tests/common.rsindex 583ae0f34b..f55e7c0447 100644--- a/crates/openhuman-core/src/channels/tests/common.rs+++ b/crates/openhuman-core/src/channels/tests/common.rs@@ -1,4 +1,5 @@-use crate::channels::{traits, Channel, SendMessage};+use tinychannels_bus as traits;+use crate::channels::{Channel, SendMessage};use std::sync::atomic::{AtomicUsize, Ordering};use std::sync::{Arc, Mutex};use std::time::Duration;diff --git a/crates/openhuman-core/src/channels/traits.rs b/crates/openhuman-core/src/channels/traits.rsdeleted file mode 100644index 0f200cb57b..0000000000--- a/crates/openhuman-core/src/channels/traits.rs+++ /dev/null@@ -1,126 +0,0 @@-//! OpenHuman's host-facing channel operations.-//!-//! Provider implementations live in TinyChannels. This small trait keeps the-//! host's delivery consumers independent from the provider runtime and lets a-//! scoped module proxy satisfy cron, proactive delivery, and event subscribers.--use async_trait::async_trait;-pub use tinychannels_bus::{ChannelMessage, SendMessage};--/// Host-side operations used by OpenHuman's channel delivery consumers.-///-/// `listen` remains available to focused test doubles and legacy local-/// adapters. Production module-backed channels receive inbound traffic through-/// their identity-scoped callback object instead.-#[async_trait]-pub trait Channel: Send + Sync {- /// Stable provider name (for example, `telegram`).- fn name(&self) -> &str;-- /// Configured default target for recipient-less proactive sends.- fn proactive_target(&self) -> Option<String> {- None- }-- /// Deliver one message through the configured provider.- async fn send(&self, message: &SendMessage) -> anyhow::Result<()>;-- /// Legacy listener seam used by isolated test doubles.- async fn listen(&self, tx: tokio::sync::mpsc::Sender<ChannelMessage>) -> anyhow::Result<()>;-- /// Whether the configured provider is currently healthy.- async fn health_check(&self) -> bool {- true- }-- /// Start a provider typing indicator.- async fn start_typing(&self, _recipient: &str) -> anyhow::Result<()> {- Ok(())- }-- /// Stop a provider typing indicator.- async fn stop_typing(&self, _recipient: &str) -> anyhow::Result<()> {- Ok(())- }-- /// Start a module-owned periodic refresh and return its opaque lifecycle- /// handle. Implementations without provider-side refresh support return- /// `None`; the host does not create a local refresh timer.- async fn begin_typing_refresh(- &self,- _recipient: &str,- _interval_secs: u64,- ) -> anyhow::Result<Option<String>> {- Ok(None)- }-- /// Stop one refresh lifecycle by its opaque handle. Handles let concurrent- /// turns type in the same conversation without canceling each other's- /// provider task.- async fn end_typing_refresh(&self, _handle: &str) -> anyhow::Result<()> {- Ok(())- }-- /// Instance-specific product interaction capabilities.- fn capabilities(&self) -> tinychannels_bus::ChannelCapabilities {- tinychannels_bus::capabilities_for(self.name())- }-- /// Whether native emoji reactions are supported.- fn supports_reactions(&self) -> bool {- false- }-- /// Whether progressive draft updates are supported.- fn supports_draft_updates(&self) -> bool {- false- }-- /// Send the initial progressive draft and return its provider message id.- async fn send_draft(&self, _message: &SendMessage) -> anyhow::Result<Option<String>> {- Ok(None)- }-- /// Update a progressive draft.- async fn update_draft(- &self,- _recipient: &str,- _message_id: &str,- _text: &str,- ) -> anyhow::Result<()> {- Ok(())- }-- /// Finalize a progressive draft.- async fn finalize_draft(- &self,- _recipient: &str,- _message_id: &str,- _text: &str,- _thread_ts: Option<&str>,- ) -> anyhow::Result<()> {- Ok(())- }-- /// Convert and send one message using the owning provider's idempotency- /// contract. Module-backed implementations override this to perform- /// `PrepareOutboundIntent` and `SendChannelIntent` through TinyBus.- async fn send_idempotent(&self, message: &SendMessage) -> anyhow::Result<()> {- self.send(message).await- }-}--/// Extension helpers for host delivery consumers.-#[async_trait]-pub trait ChannelSendExt: Channel {- /// Send one message with the provider's deterministic idempotency handling.- async fn send_with_outbound_intent(&self, message: &SendMessage) -> anyhow::Result<()> {- Channel::send_idempotent(self, message).await- }-}--impl<T: Channel + ?Sized> ChannelSendExt for T {}--#[cfg(test)]-#[path = "traits_tests.rs"]-mod tests;diff --git a/crates/openhuman-core/src/channels/traits_tests.rs b/crates/openhuman-core/src/channels/traits_tests.rsdeleted file mode 100644index da3d99b74e..0000000000--- a/crates/openhuman-core/src/channels/traits_tests.rs+++ /dev/null@@ -1,48 +0,0 @@-//! These assertions exist because the failure they guard against is silent.-//!-//! `tinychannels` is `optional = true`; `tinychannels-bus` is not. Every-//! always-on consumer — `cron::bus`, `security::pairing`,-//! `threads::store::bus`, `config::schema::channels` and the-//! `DomainEvent` variant — must therefore name the *contract* crate. Point-//! one of them back at `tinychannels` and a `channels`-less build stops-//! resolving, which CI's `cargo check` smoke lane would catch only if it-//! ran that profile.-//!-//! Re-declaring any of these host-side is the worse failure: it compiles,-//! and then a field added on one side is a decode failure on the other.--/// The re-export is the contract crate's item, not a copy of it.-///-/// `TypeId` equality is the strongest statement available here — two-/// structurally identical types from two different packages are *not*-/// equal, which is exactly the duplicate-package mistake this pins.-#[test]-fn the_channel_vocabulary_is_the_contract_crates_own_types() {- use std::any::TypeId;-- assert_eq!(- TypeId::of::<super::ChannelMessage>(),- TypeId::of::<tinychannels_bus::ChannelMessage>(),- );- assert_eq!(- TypeId::of::<super::SendMessage>(),- TypeId::of::<tinychannels_bus::SendMessage>(),- );-}--/// The types the always-on surface pins are reachable without the-/// implementation crate.-///-/// Named individually rather than as a blanket import so that dropping one-/// from the contract is a compile error naming *which* one.-#[test]-fn every_always_on_pin_resolves_through_the_contract_crate() {- use std::any::TypeId;-- // `DomainEvent::…{ inbound_envelope }` — see `core::events`.- let _ = TypeId::of::<tinychannels_bus::ChannelInboundEnvelope>();- // `config::schema::channels` re-exports this whole surface.- let _ = TypeId::of::<tinychannels_bus::ChannelsConfig>();- // `security::pairing` re-exports the pairing helpers from here.- let _ = TypeId::of::<tinychannels_bus::channel::SessionKeyPolicy>();-}diff --git a/crates/openhuman-core/src/cron/bus.rs b/crates/openhuman-core/src/cron/bus.rsindex 44e03de473..616407115e 100644--- a/crates/openhuman-core/src/cron/bus.rs+++ b/crates/openhuman-core/src/cron/bus.rs@@ -6,7 +6,7 @@//! picks up those events and dispatches to the appropriate channel, keeping//! channel construction out of the scheduler.-use crate::channels::traits::{Channel, SendMessage};+use tinychannels_bus::{Channel, SendMessage};use crate::core::events::DomainEvent;use async_trait::async_trait;use std::collections::HashMap;diff --git a/crates/openhuman-core/src/cron/channel_bridge.rs b/crates/openhuman-core/src/cron/channel_bridge.rsindex 4c3517a299..a3d89307fa 100644--- a/crates/openhuman-core/src/cron/channel_bridge.rs+++ b/crates/openhuman-core/src/cron/channel_bridge.rs@@ -8,7 +8,7 @@//! it starts; nothing registers in a core with no channels, and every accessor//! then answers "unavailable" instead of failing.-use crate::channels::traits::{Channel, SendMessage};+use tinychannels_bus::{Channel, SendMessage};use std::collections::HashMap;use std::sync::{Arc, Mutex, RwLock};use tinyagents_session::transcript::TranscriptMessage;diff --git a/crates/openhuman-core/src/voice/factory/entry.rs b/crates/openhuman-core/src/voice/factory/entry.rsindex bd678557ec..99d5855451 100644--- a/crates/openhuman-core/src/voice/factory/entry.rs+++ b/crates/openhuman-core/src/voice/factory/entry.rs@@ -8,7 +8,7 @@ use super::helpers::{create_stt_provider_by_slug, create_tts_provider_by_slug, split_slug_model, LOG_PREFIX,};use super::stt_providers::CloudSttProvider;-use super::traits::{SttProvider, TtsProvider};+use tinychannels_bus::{SttProvider, TtsProvider};use super::tts_providers::{CloudTtsProvider, PiperTtsProvider};use crate::config::Config;diff --git a/crates/openhuman-core/src/voice/factory/helpers.rs b/crates/openhuman-core/src/voice/factory/helpers.rsindex 32cc0f9e50..24b0e56371 100644--- a/crates/openhuman-core/src/voice/factory/helpers.rs+++ b/crates/openhuman-core/src/voice/factory/helpers.rs@@ -3,7 +3,7 @@use log::debug;use super::stt_providers::ExternalSttProvider;-use super::traits::{SttProvider, TtsProvider};+use tinychannels_bus::{SttProvider, TtsProvider};use super::tts_providers::ExternalTtsProvider;use crate::config::Config;diff --git a/crates/openhuman-core/src/voice/factory/stt_providers.rs b/crates/openhuman-core/src/voice/factory/stt_providers.rsindex 4b3738c110..06412c7655 100644--- a/crates/openhuman-core/src/voice/factory/stt_providers.rs+++ b/crates/openhuman-core/src/voice/factory/stt_providers.rs@@ -10,7 +10,7 @@ use log::debug;use super::super::cloud_transcribe::transcribe_cloud;use super::helpers::base64_decode;-use super::traits::{SttProvider, SttResult};+use tinychannels_bus::{SttProvider, SttResult};use crate::config::Config;use crate::core::Outcome;use tinyinference_voice::cloud::{CloudTranscribeOptions, CloudTranscribeResult};diff --git a/crates/openhuman-core/src/voice/factory/tts_providers.rs b/crates/openhuman-core/src/voice/factory/tts_providers.rsindex dcbb961c6c..637e0fb163 100644--- a/crates/openhuman-core/src/voice/factory/tts_providers.rs+++ b/crates/openhuman-core/src/voice/factory/tts_providers.rs@@ -5,7 +5,7 @@ use log::debug;use super::super::local_speech::{synthesize_piper, PiperOptions};use super::super::reply_speech::{synthesize_reply, ReplySpeechOptions};-use super::traits::TtsProvider;+use tinychannels_bus::TtsProvider;use crate::config::Config;use crate::core::Outcome;use tinyinference_voice::external_tts::{ExternalTtsClient, TtsApiStyle};