llm-shield-core 0.1.0

Core types and traits for LLM Shield security toolkit
Documentation

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 scanners
  • ScanResult: Standardized result type
  • Risk: Risk assessment types
  • Error: Comprehensive error handling

Enterprise-Grade Design Principles

  1. Type Safety: Strong typing throughout
  2. Async-First: All scanners support async operations
  3. Composability: Scanners can be chained and combined
  4. Observability: Comprehensive tracing and metrics
  5. Error Context: Rich error types with context