Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

623 B
Raw Blame
//! Outbound port for enqueueing ai projection materialization requests.

use models_ai_projection::AiProjectionQueueMessage;

use crate::domain::model::AiProjectionError;

/// The AiProjectionQueue defines how the service hands off a projection
/// instance for asynchronous materialization (e.g. by enqueueing onto SQS).
pub trait AiProjectionQueue: Clone + Send + Sync + 'static {
    /// Enqueues a request to materialize the referenced projection instance.
    fn enqueue_materialization(
        &self,
        message: AiProjectionQueueMessage,
    ) -> impl Future<Output = Result<(), AiProjectionError>> + Send;
}