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.

545 B
Raw Blame
//! SQS-backed implementation of the [`AiProjectionQueue`] outbound port.

use models_ai_projection::AiProjectionQueueMessage;
use sqs_client::SQS;

use crate::domain::{ai_projection_queue::AiProjectionQueue, model::AiProjectionError};

impl AiProjectionQueue for SQS {
    async fn enqueue_materialization(
        &self,
        message: AiProjectionQueueMessage,
    ) -> Result<(), AiProjectionError> {
        self.enqueue_ai_projection_message(message)
            .await
            .map_err(AiProjectionError::StorageLayerError)
    }
}