magi-core 0.1.2

LLM-agnostic multi-perspective analysis system inspired by MAGI
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Author: Julian Bolivar
// Version: 1.0.0
// Date: 2026-04-05

use crate::schema::Mode;

const CODE_REVIEW: &str = include_str!("../prompts_md/caspar_code_review.md");
const DESIGN: &str = include_str!("../prompts_md/caspar_design.md");
const ANALYSIS: &str = include_str!("../prompts_md/caspar_analysis.md");

/// Returns the system prompt for Caspar in the given mode.
pub fn prompt_for_mode(mode: &Mode) -> &'static str {
    match mode {
        Mode::CodeReview => CODE_REVIEW,
        Mode::Design => DESIGN,
        Mode::Analysis => ANALYSIS,
    }
}