Class AgentGuardrailReport
java.lang.Object
com.flowable.agent.engine.impl.report.AgentGuardrailReport
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 Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Doubleprotected Stringprotected StringFor constraint violations.protected BooleanWhether the guardrail passed.protected StringThe phase the guardrail ran in ("input" / "output").protected Stringprotected Stringprotected StringThe guardrail source: agentKey / serviceKey / expression / guardrailKey, whichever is present.protected StringThe exchange subType when the guardrail fired (guardrailBlocked / guardrailSkipped / guardrailRejected).protected StringExchange type (always "guardrail"). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPhase()getType()voidvoidsetConfidence(Double confidence) voidsetConstraintType(String constraintType) voidsetParameter(String parameter) voidvoidvoidvoidsetSanitizedContent(String sanitizedContent) voidvoidsetSubType(String subType) void
-
Field Details
-
type
Exchange type (always "guardrail"). -
source
The guardrail source: agentKey / serviceKey / expression / guardrailKey, whichever is present. -
phase
The phase the guardrail ran in ("input" / "output"). -
subType
The exchange subType when the guardrail fired (guardrailBlocked / guardrailSkipped / guardrailRejected). -
passed
Whether the guardrail passed.false/nullmeans it fired. -
reason
-
action
-
sanitizedContent
-
confidence
-
parameter
For constraint violations. -
constraintType
-
-
Constructor Details
-
AgentGuardrailReport
public AgentGuardrailReport()
-
-
Method Details
-
getType
-
setType
-
getSource
-
setSource
-
getPhase
-
setPhase
-
getSubType
-
setSubType
-
getPassed
-
setPassed
-
getReason
-
setReason
-
getAction
-
setAction
-
getSanitizedContent
-
setSanitizedContent
-
getConfidence
-
setConfidence
-
getParameter
-
setParameter
-
getConstraintType
-
setConstraintType
-