Class ExternalGuardrailInvocationResult
java.lang.Object
com.flowable.agent.api.guardrail.ExternalGuardrailInvocationResult
Result from an external guardrail invocation.
Use the builder to construct results:
// Content is safe
ExternalGuardrailInvocationResult.pass().build();
// Content is blocked
ExternalGuardrailInvocationResult.fail("PII detected").build();
// Content was sanitized and should continue with rewritten text
ExternalGuardrailInvocationResult.pass().sanitizedContent("Hello [PERSON]").build();
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
-
Field Details
-
passed
protected final boolean passed -
reason
-
sanitizedContent
-
-
Constructor Details
-
ExternalGuardrailInvocationResult
-
-
Method Details
-
pass
-
fail
-
isPassed
public boolean isPassed() -
getReason
-
getSanitizedContent
Returns the sanitized/rewritten content, ornullif the content was not modified. When non-null, this content replaces the original in the pipeline (e.g., PII redacted before LLM call).
-