Skip to main content

Crate magi_core

Crate magi_core 

Source
Expand description

§magi-core

Multi-perspective analysis using three independent LLM agents (Melchior/Scientist, Balthasar/Pragmatist, Caspar/Critic).

Each agent analyzes content from a different perspective, then a consensus engine synthesizes their verdicts into a unified report.

§Quick Start

use magi_core::prelude::*;
use std::sync::Arc;

// let provider: Arc<dyn LlmProvider> = /* your provider */;
// let magi = Magi::new(provider);
// let report = magi.analyze(&Mode::CodeReview, "fn main() {}").await?;
// println!("{}", report.report);

Modules§

agent
consensus
error
orchestrator
prelude
Convenience re-exports for common magi-core types.
provider
providers
LLM provider implementations.
reporting
schema
validate