메인 콘텐츠로 건너뛰기

Top-Level 필드

FieldType설명
guardianstring판정을 수행한 Guardian 이름.
actionstring최종 Action: PASS, MASK, BLOCK.
processed_contentstring | nullMASK 시 마스킹 텍스트, PASS 시 원본, BLOCK 시 null.
resultsobjectPolicy type별 요약. key가 policy type (PII, TOPIC, …).
processing_time_msinteger전체 처리 지연 시간.

results.{type}

FieldType설명
actionstring해당 Policy type의 판정: PASS, MASK, BLOCK.
detected_countinteger규칙 매칭 수.
detected_itemsarray매칭 상세 (아래 참고).

results.PII.detected_items

Field설명
rule_name매칭된 규칙 이름.
action규칙의 Action (PASS / MASK / BLOCK).
alert_message규칙의 알림 메시지.

results.TOPIC.detected_items

Field설명
rule_name매칭된 토픽 카테고리 제목.
actionPASS 또는 BLOCK.
classificationsafe, unsafe, controversial.

응답 예시

{
  "guardian": "텍스트 분석 Guardian",
  "action": "PASS",
  "processed_content": "오늘 점심 메뉴 추천해줘.",
  "results": {
    "PII":   { "action": "PASS", "detected_count": 0, "detected_items": [] },
    "TOPIC": { "action": "PASS", "detected_count": 0, "detected_items": [] }
  },
  "processing_time_ms": 156
}

관련 문서

PASS / MASK / BLOCK

여러 Policy 유형이 섞인 요청에서 최종 Action이 결정되는 방식.