Package akka.javasdk.agent
Interface EvaluationResult
- All Known Implementing Classes:
HallucinationEvaluator.Result,SummarizationEvaluator.Result,ToxicityEvaluator.Result
Deprecated, for removal: This API element is subject to removal in a future version.
When an
Agent returns an EvaluationResult it is tracked in metrics and traces.-
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.booleanpassed()Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Details
-
explanation
String explanation()Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- reason for the decision, especially when it didn't pass
-
passed
boolean passed()Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- true if the input passed the guardrail evaluation
-
Evaluatorcomponent, which records its verdict in the ledger, metrics and traces.