Class ExternalGuardrailInvocationResult

java.lang.Object
com.flowable.agent.api.guardrail.ExternalGuardrailInvocationResult

public class ExternalGuardrailInvocationResult extends Object
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();
  • Field Details

    • passed

      protected final boolean passed
    • reason

      protected final String reason
    • sanitizedContent

      protected final String sanitizedContent
  • Constructor Details

  • Method Details