| Crates.io | llm-sentinel-core |
| lib.rs | llm-sentinel-core |
| version | 0.1.0 |
| created_at | 2025-11-06 07:17:06.645955+00 |
| updated_at | 2025-11-06 07:17:06.645955+00 |
| description | Core types, error handling, and configuration for LLM-Sentinel anomaly detection system |
| homepage | https://github.com/globalbusinessadvisors/llm-sentinel |
| repository | https://github.com/globalbusinessadvisors/llm-sentinel |
| max_upload_size | |
| id | 1919197 |
| size | 83,896 |
Core types, error handling, and configuration for LLM-Sentinel anomaly detection system.
This crate provides the foundational types and utilities used across all LLM-Sentinel components:
thiserrorAdd this to your Cargo.toml:
[dependencies]
llm-sentinel-core = "0.1.0"
use sentinel_core::{TelemetryEvent, SentinelConfig};
// Load configuration
let config = SentinelConfig::from_file("sentinel.yaml")?;
// Create telemetry event
let event = TelemetryEvent::new(
"my-service",
"gpt-4",
1234.5, // latency_ms
150, // prompt_tokens
300, // completion_tokens
);
For complete documentation, see docs.rs/llm-sentinel-core.
Apache-2.0