Class AgentGuardrailReport

java.lang.Object
com.flowable.agent.engine.impl.report.AgentGuardrailReport

public class AgentGuardrailReport extends Object
A single guardrail evaluation within an AgentInvocationReport, derived from a guardrail exchange. Fields are best-effort: they are parsed from the guardrail exchange's output content (a JSON object) and may be null when the source did not record them.
  • Field Details

    • type

      protected String type
      Exchange type (always "guardrail").
    • source

      protected String source
      The guardrail source: agentKey / serviceKey / expression / guardrailKey, whichever is present.
    • phase

      protected String phase
      The phase the guardrail ran in ("input" / "output").
    • subType

      protected String subType
      The exchange subType when the guardrail fired (guardrailBlocked / guardrailSkipped / guardrailRejected).
    • passed

      protected Boolean passed
      Whether the guardrail passed. false/null means it fired.
    • reason

      protected String reason
    • action

      protected String action
    • sanitizedContent

      protected String sanitizedContent
    • confidence

      protected Double confidence
    • parameter

      protected String parameter
      For constraint violations.
    • constraintType

      protected String constraintType
  • Constructor Details

    • AgentGuardrailReport

      public AgentGuardrailReport()
  • Method Details

    • getType

      public String getType()
    • setType

      public void setType(String type)
    • getSource

      public String getSource()
    • setSource

      public void setSource(String source)
    • getPhase

      public String getPhase()
    • setPhase

      public void setPhase(String phase)
    • getSubType

      public String getSubType()
    • setSubType

      public void setSubType(String subType)
    • getPassed

      public Boolean getPassed()
    • setPassed

      public void setPassed(Boolean passed)
    • getReason

      public String getReason()
    • setReason

      public void setReason(String reason)
    • getAction

      public String getAction()
    • setAction

      public void setAction(String action)
    • getSanitizedContent

      public String getSanitizedContent()
    • setSanitizedContent

      public void setSanitizedContent(String sanitizedContent)
    • getConfidence

      public Double getConfidence()
    • setConfidence

      public void setConfidence(Double confidence)
    • getParameter

      public String getParameter()
    • setParameter

      public void setParameter(String parameter)
    • getConstraintType

      public String getConstraintType()
    • setConstraintType

      public void setConstraintType(String constraintType)