public static class AIGuard.Evaluation extends Object
The evaluation provides three possible actions:
AIGuard.Action.ALLOW - Content is safe to proceed
AIGuard.Action.DENY - Content should be blocked
AIGuard.Action.ABORT - Execution should be immediately terminated
| Constructor and Description |
|---|
Evaluation(AIGuard.Action action,
String reason,
List<String> tags,
Map<String,Number> tagProbs,
List<?> sds)
Creates a new evaluation result.
|
| Modifier and Type | Method and Description |
|---|---|
AIGuard.Action |
getAction()
Returns the recommended action for the evaluated content.
|
String |
getReason()
Returns the human-readable reasoning for the evaluation decision.
|
List<?> |
getSds()
Returns the list of Sensitive Data Scanner findings.
|
Map<String,Number> |
getTagProbabilities()
Returns a map from tag to their probability (e.g.
|
List<String> |
getTags()
Returns the list of tags associated with the evaluation (e.g.
|
public Evaluation(AIGuard.Action action, String reason, List<String> tags, Map<String,Number> tagProbs, List<?> sds)
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)tagProbs - map of tags associated to their probabilitysds - list of Sensitive Data Scanner findingspublic AIGuard.Action getAction()
public String getReason()
public List<String> getTags()
public Map<String,Number> getTagProbabilities()
public List<?> getSds()