LLM Shield Core
Core types, traits, and utilities for the LLM Shield security toolkit.
SPARC Methodology - Specification Phase
This module defines the core abstractions for the LLM Shield system:
Scanner: Core trait for all security scannersScanResult: Standardized result typeRisk: Risk assessment typesError: Comprehensive error handling
Enterprise-Grade Design Principles
- Type Safety: Strong typing throughout
- Async-First: All scanners support async operations
- Composability: Scanners can be chained and combined
- Observability: Comprehensive tracing and metrics
- Error Context: Rich error types with context