Sentinel SDK
The ABS Sentinel SDK (@abs/sentinel) is the primary way to integrate your AI agents with the ABS Kernel. It handles event logging, policy checkpoints, and heartbeat monitoring.
Installation
Usage
1. Initialization
2. Logging Events
Log LLM inputs and outputs to create an audit trail.3. Policy Checkpoint (Blocking)
Before executing an action, check if it’s allowed.4. Heartbeat
Start a background heartbeat to prevent “Shadow AI”.Configuration Options
| Option | Type | Default | Description |
|---|---|---|---|
dsn | string | - | URL of the ABS API |
apiKey | string | - | Your ABS Project Token |
mode | string | 'scanner' | 'runtime' for enforcement, 'scanner' for logging only |
batchSize | number | 10 | Number of events to buffer before sending |
flushIntervalMs | number | 5000 | Max time to wait before sending buffer |
