1 2 3 4 5 6 7
use std::sync::Arc; use crate::ports::outbound::ai_chat_client::AiChatClient; pub trait ChatClientMiddleware: Send + Sync { fn wrap(&self, inner: Arc<dyn AiChatClient>) -> Arc<dyn AiChatClient>; }