muna 0.0.12

Run prediction functions in your Rust apps.
/*
*   Muna
*   Copyright © 2026 NatML Inc. All Rights Reserved.
*/

use super::ChatCompletionService;
use crate::services::{PredictionService, PredictorService};

/// Create chat conversations.
#[derive(Clone)]
pub struct ChatService {
    /// Create completions.
    pub completions: ChatCompletionService,
}

impl ChatService {

    pub fn new(
        predictors: PredictorService,
        predictions: PredictionService
    ) -> Self {
        Self {
            completions: ChatCompletionService::new(predictors, predictions),
        }
    }
}