narrative_engine/lib.rs
1//! Narrative Engine — procedural text generation for games.
2//!
3//! Generates thematically appropriate, contextually aware text at runtime
4//! without neural network inference, using a pipeline of simulation-driven
5//! events, stochastic grammars, and Markov-trained phrase generation.
6
7pub mod core;
8pub mod genre_templates;
9pub mod schema;
10
11// Public API re-exports
12pub use core::pipeline::{NarrativeEngine, NarrativeEngineBuilder, PipelineError, WorldState};
13pub use schema::entity::{Entity, EntityId, Pronouns, Value, VoiceId};
14pub use schema::event::{EntityRef, Event, Mood, Outcome, Stakes};
15pub use schema::narrative_fn::NarrativeFunction;