Package akka.javasdk.agent
Record Class Guardrail.Result
- Record Components:
passed- true if the text passed the guardrail evaluationexplanation- reason for the decision, especially when it didn't pass
- Enclosing interface:
Guardrail
@Deprecated(since="3.6.0",
forRemoval=true)
public static record Guardrail.Result(boolean passed, String explanation)
extends Record
Deprecated, for removal: This API element is subject to removal in a future version.
The result of the guardrail evaluation.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Guardrail.ResultDeprecated, for removal: This API element is subject to removal in a future version. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanDeprecated, for removal: This API element is subject to removal in a future version.Indicates whether some other object is "equal to" this one.Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of theexplanationrecord component.final inthashCode()Deprecated, for removal: This API element is subject to removal in a future version.Returns a hash code value for this object.booleanpassed()Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of thepassedrecord component.final StringtoString()Deprecated, for removal: This API element is subject to removal in a future version.Returns a string representation of this record class.
-
Field Details
-
OK
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Constructor Details
-
Result
Deprecated, for removal: This API element is subject to removal in a future version.Creates an instance of aResultrecord class.- Parameters:
passed- the value for thepassedrecord componentexplanation- the value for theexplanationrecord component
-
-
Method Details
-
toString
Deprecated, for removal: This API element is subject to removal in a future version.Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Deprecated, for removal: This API element is subject to removal in a future version.Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Deprecated, for removal: This API element is subject to removal in a future version.Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
passed
public boolean passed()Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of thepassedrecord component.- Returns:
- the value of the
passedrecord component
-
explanation
Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of theexplanationrecord component.- Returns:
- the value of the
explanationrecord component
-
DecisionfromToolCallGuardrail,ModelCallGuardrailorAgentResponseGuardrail.