sate_ai_cli library

CLI-safe library for SATE AI — no Flutter SDK dependency.

Use this import in Dart CLI executables (bin/) or pure-Dart tools that must run with dart run (i.e., without the Flutter toolchain).

Flutter-specific adapters (TFLiteAdapter) are intentionally excluded from this library. Import package:sate_ai/sate_ai.dart in your Flutter app code to access the full API including TFLite support.

Classes

AIInput
Text or binary input payload for an AI model inference call.
AIModelAdapter
Abstract interface that wraps any on-device AI model.
AIOutput
Output produced by an AI model inference call.
ConfidenceThresholdInjector
Validates that the model's output confidence stays above a threshold.
Failure
Records an unexpected exception that prevented a fault cycle from running.
FaultInjector
Abstract base class for all SATE AI fault injectors.
FaultResult
The result of a single fault injection + inference cycle.
LatencyInjector
Simulates increasing inference latency over repeated calls.
MalformedInputInjector
Injects malformed, boundary-violating, and random inputs to test that an AI model handles bad data without crashing or producing corrupt output.
MemoryPressureInjector
Simulates memory pressure to test how an AI model behaves near or beyond its available RAM budget.
MockAdapter
A fully-in-process mock implementation of AIModelAdapter for testing.
ModelSwapInjector
Simulates model corruption or swapping to a degraded model version.
QuantizationDriftInjector
Simulates gradual precision loss in model outputs.
SateAI
Top-level convenience API for running SATE AI stress tests (CLI edition).
StressReport
The aggregated result of a full SATE AI stress test run.
StressRunner
Orchestrates a sequence of FaultInjector runs against an AIModelAdapter.
ThermalThrottleInjector
Simulates CPU thermal throttling under sustained load.

Enums

FaultType
Types of faults that can be injected into AI model stress tests.
MalformedInputKind
The variants of malformed input that MalformedInputInjector generates.

Extensions

FaultTypeX on FaultType
Extension helpers on FaultType.

Exceptions / Errors

AIInferenceError
Thrown when an AI model inference call fails.