shift_preflight/lib.rs
1//! # SHIFT — Smart Hybrid Input Filtering & Transformation
2//!
3//! A multimodal preflight layer that automatically adapts inputs (images, video,
4//! audio, documents, text) before they are sent to an AI model.
5//!
6//! ## Quick Start
7//!
8//! ```rust,no_run
9//! use shift_preflight::{pipeline, ShiftConfig, DriveMode};
10//! use serde_json::json;
11//!
12//! let payload = json!({
13//! "model": "gpt-4o",
14//! "messages": [{"role": "user", "content": "Hello"}]
15//! });
16//!
17//! let config = ShiftConfig {
18//! mode: DriveMode::Balanced,
19//! provider: "openai".to_string(),
20//! ..Default::default()
21//! };
22//!
23//! let (transformed, report) = pipeline::process(&payload, &config).unwrap();
24//! ```
25
26pub mod cost;
27pub mod inspector;
28pub mod mode;
29pub mod payload;
30pub mod pipeline;
31pub mod policy;
32pub mod report;
33pub mod stats;
34pub mod transformer;
35
36pub use cost::{ImageMetrics, TokenEstimate, TokenSavings};
37pub use mode::{DriveMode, SafetyLimits, ShiftConfig, SvgMode};
38pub use pipeline::process;
39pub use report::Report;
40pub use stats::RunRecord;