llm-sentinel-core
Core types, error handling, and configuration for LLM-Sentinel anomaly detection system.
Overview
This crate provides the foundational types and utilities used across all LLM-Sentinel components:
- Configuration Models: Structured configuration for all system components
- Event Types: Telemetry and anomaly event definitions
- Error Handling: Comprehensive error types with detailed context
- Metrics: Prometheus metrics definitions
- Common Types: Shared types used throughout the system
Features
- Type-safe configuration with validation
- Structured error handling with
thiserror - Serializable event types for Kafka/JSON
- Zero-copy where possible
- Async-ready with Tokio
Usage
Add this to your Cargo.toml:
[]
= "0.1.0"
Example
use ;
// Load configuration
let config = from_file?;
// Create telemetry event
let event = new;
Documentation
For complete documentation, see docs.rs/llm-sentinel-core.
License
Apache-2.0