public static final class AIGuard.Options extends Object
Options control how the evaluation process behaves, including whether to block execution when unsafe content is detected.
Example usage:
// Use default options (non-blocking)
var result = AIGuard.evaluate(messages);
// Enable blocking mode
var options = new AIGuard.Options()
.block(true);
var result = AIGuard.evaluate(messages, options);
| Modifier and Type | Field and Description |
|---|---|
static AIGuard.Options |
DEFAULT
Default options with blocking disabled.
|
| Constructor and Description |
|---|
Options() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
block()
Returns whether blocking mode is enabled.
|
AIGuard.Options |
block(boolean block)
Enable/disable blocking mode
|
public static final AIGuard.Options DEFAULT
public boolean block()
public AIGuard.Options block(boolean block)
block - true if execution should be blocked on DENY/ABORT actions