Package datadog.trace.api.aiguard
Class AIGuard.Evaluation
java.lang.Object
datadog.trace.api.aiguard.AIGuard.Evaluation
- Enclosing class:
AIGuard
Represents the result of an AIGuard security evaluation, containing both the recommended action
and the reasoning behind the decision.
The evaluation provides three possible actions:
AIGuard.Action.ALLOW- Content is safe to proceedAIGuard.Action.DENY- Content should be blockedAIGuard.Action.ABORT- Execution should be immediately terminated
-
Constructor Summary
ConstructorsConstructorDescriptionEvaluation(AIGuard.Action action, String reason, List<String> tags) Creates a new evaluation result. -
Method Summary
-
Constructor Details
-
Evaluation
Creates a new evaluation result.- Parameters:
action- the recommended action for the evaluated contentreason- human-readable explanation for the decisiontags- list of tags associated with the evaluation (e.g. indirect-prompt-injection)
-
-
Method Details
-
getAction
Returns the recommended action for the evaluated content.- Returns:
- the action (ALLOW, DENY, or ABORT)
-
getReason
Returns the human-readable reasoning for the evaluation decision.- Returns:
- explanation of why this action was recommended
-
getTags
Returns the list of tags associated with the evaluation (e.g. indirect-prompt-injection)- Returns:
- list of tags.
-