This section documents every public type in the MagicAF framework. Use it as a reference while building.
EmbeddingService →
Trait and types for dense vector embedding generation.
VectorStore →
Trait and types for vector database operations.
LlmService →
Trait and OpenAI-compatible DTOs for language model inference.
RAGWorkflow →
The pipeline engine — builder, execution, and result types.
Adapter Traits →
EvidenceFormatter, PromptBuilder, ResultParser, and default implementations.
Configuration →
All configuration structs and their fields.
Errors →
MagicError variants, error codes, and helper constructors.
FFI →
FFI preparation, error codes, and language binding strategy.
Generating Rust API Docs
For inline documentation with full type signatures, generate Rust docs:
cargo doc --workspace --no-deps --open