Skip to main content

Top-level fields

FieldTypeDescription
guardianstringName of the Guardian that produced the judgment.
actionstringFinal action: PASS, MASK, or BLOCK.
processed_contentstring | nullMasked text on MASK, original on PASS, null on BLOCK.
resultsobjectPer-policy-type summary, keyed by policy type (PII, TOPIC, …).
processing_time_msintegerEnd-to-end latency.

results.{type}

FieldTypeDescription
actionstringThis type’s verdict: PASS, MASK, or BLOCK.
detected_countintegerNumber of rule hits.
detected_itemsarrayDetails of each hit (see below).

results.PII.detected_items

FieldDescription
rule_nameWhich rule matched.
actionThe rule’s action (PASS / MASK / BLOCK).
alert_messageHuman-readable alert from the rule.

results.TOPIC.detected_items

FieldDescription
rule_nameMatched topic category title.
actionPASS or BLOCK.
classificationsafe, unsafe, or controversial.

Response examples

{
  "guardian": "Text Analysis Guardian",
  "action": "PASS",
  "processed_content": "What's for lunch?",
  "results": {
    "PII":   { "action": "PASS", "detected_count": 0, "detected_items": [] },
    "TOPIC": { "action": "PASS", "detected_count": 0, "detected_items": [] }
  },
  "processing_time_ms": 156
}

PASS / MASK / BLOCK

How the final action is chosen across multiple policy types.