llm_sentinel_core/lib.rs
1//! # Sentinel Core
2//!
3//! Core types, errors, and utilities for LLM-Sentinel.
4//!
5//! This crate provides the foundational building blocks used across all Sentinel components:
6//! - Common error types and result handling
7//! - Telemetry event models (OTLP-compatible)
8//! - Anomaly event models
9//! - Alert definitions
10//! - Configuration structures
11//! - Shared utilities
12
13#![warn(
14 missing_docs,
15 missing_debug_implementations,
16 rust_2018_idioms,
17 unreachable_pub
18)]
19#![forbid(unsafe_code)]
20
21pub mod config;
22pub mod error;
23pub mod events;
24pub mod metrics;
25pub mod types;
26
27pub use error::{Error, Result};
28
29/// Re-export commonly used types
30pub mod prelude {
31 pub use crate::config::Config;
32 pub use crate::error::{Error, Result};
33 pub use crate::events::{AnomalyEvent, TelemetryEvent};
34 pub use crate::types::{AnomalyType, Severity};
35}