Package datadog.trace.api.aiguard
Class AIGuard.Options
java.lang.Object
datadog.trace.api.aiguard.AIGuard.Options
- Enclosing class:
AIGuard
Configuration options for AIGuard evaluation behavior.
Options control how the evaluation process behaves, including whether to block execution when unsafe content is detected.
Example usage:
// Use default options (follows remote is_blocking_enabled setting)
var result = AIGuard.evaluate(messages);
// Disable blocking mode
var options = new AIGuard.Options()
.block(false);
var result = AIGuard.evaluate(messages, options);
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AIGuard.OptionsDefault options that follow the remote is_blocking_enabled setting. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
DEFAULT
Default options that follow the remote is_blocking_enabled setting.
-
-
Constructor Details
-
Options
public Options()
-
-
Method Details
-
block
public boolean block()Returns whether blocking mode is enabled.- Returns:
- true if execution should be blocked on DENY/ABORT actions
-
block
Enable/disable blocking mode- Parameters:
block- true if execution should be blocked on DENY/ABORT actions
-