@@ -5454,15 +5454,40 @@ components:
54545454 A builtin content filter entry. Builtin filters include PII detectors and the regex-based prompt injection
54555455 detector.
54565456 example:
5457- action: block
5458- label: '[PROMPT_INJECTION ]'
5459- slug: regex-prompt-injection
5457+ action: redact
5458+ label: '[EMAIL ]'
5459+ slug: email
54605460 properties:
54615461 action:
54625462 $ref: '#/components/schemas/ContentFilterBuiltinAction'
54635463 label:
5464- description: Optional label used in redaction placeholders (e.g. "[PROMPT_INJECTION]")
5465- example: '[PROMPT_INJECTION]'
5464+ description: >-
5465+ Read-only, system-assigned redaction placeholder derived from the slug (e.g. "[EMAIL]", "[PHONE]"). Not
5466+ settable by the caller.
5467+ example: '[EMAIL]'
5468+ maxLength: 100
5469+ type: string
5470+ slug:
5471+ $ref: '#/components/schemas/ContentFilterBuiltinSlug'
5472+ required:
5473+ - slug
5474+ - action
5475+ type: object
5476+ ContentFilterBuiltinEntryInput:
5477+ description: >-
5478+ A builtin content filter entry for create/update requests. Labels are system-assigned and cannot be set by the
5479+ caller.
5480+ example:
5481+ action: redact
5482+ slug: email
5483+ properties:
5484+ action:
5485+ $ref: '#/components/schemas/ContentFilterBuiltinAction'
5486+ label:
5487+ deprecated: true
5488+ description: >-
5489+ Deprecated: labels are system-assigned and cannot be set by the caller. Accepted for backward compatibility
5490+ but silently ignored.
54665491 maxLength: 100
54675492 type: string
54685493 slug:
@@ -5833,7 +5858,7 @@ components:
58335858 - action: block
58345859 slug: regex-prompt-injection
58355860 items:
5836- $ref: '#/components/schemas/ContentFilterBuiltinEntry '
5861+ $ref: '#/components/schemas/ContentFilterBuiltinEntryInput '
58375862 nullable: true
58385863 type: array
58395864 content_filters:
@@ -5932,9 +5957,9 @@ components:
59325957 - anthropic
59335958 - google
59345959 content_filter_builtins:
5935- - action: block
5936- label: '[PROMPT_INJECTION ]'
5937- slug: regex-prompt-injection
5960+ - action: redact
5961+ label: '[EMAIL ]'
5962+ slug: email
59385963 content_filters: null
59395964 created_at: '2025-08-24T10:30:00Z'
59405965 description: A guardrail for limiting API usage
@@ -7564,9 +7589,9 @@ components:
75647589 - anthropic
75657590 - google
75667591 content_filter_builtins:
7567- - action: block
7568- label: '[PROMPT_INJECTION ]'
7569- slug: regex-prompt-injection
7592+ - action: redact
7593+ label: '[EMAIL ]'
7594+ slug: email
75707595 content_filters: null
75717596 created_at: '2025-08-24T10:30:00Z'
75727597 description: Guardrail for production environment
@@ -7694,9 +7719,9 @@ components:
76947719 - anthropic
76957720 - google
76967721 content_filter_builtins:
7697- - action: block
7698- label: '[PROMPT_INJECTION ]'
7699- slug: regex-prompt-injection
7722+ - action: redact
7723+ label: '[EMAIL ]'
7724+ slug: email
77007725 content_filters: null
77017726 created_at: '2025-08-24T10:30:00Z'
77027727 description: Guardrail for production environment
@@ -7739,9 +7764,9 @@ components:
77397764 Builtin content filters applied to requests. Includes PII detectors and the regex-based prompt injection
77407765 detector.
77417766 example:
7742- - action: block
7743- label: '[PROMPT_INJECTION ]'
7744- slug: regex-prompt-injection
7767+ - action: redact
7768+ label: '[EMAIL ]'
7769+ slug: email
77457770 items:
77467771 $ref: '#/components/schemas/ContentFilterBuiltinEntry'
77477772 nullable: true
@@ -8711,9 +8736,9 @@ components:
87118736 - anthropic
87128737 - google
87138738 content_filter_builtins:
8714- - action: block
8715- label: '[PROMPT_INJECTION ]'
8716- slug: regex-prompt-injection
8739+ - action: redact
8740+ label: '[EMAIL ]'
8741+ slug: email
87178742 content_filters: null
87188743 created_at: '2025-08-24T10:30:00Z'
87198744 description: Guardrail for production environment
@@ -18570,7 +18595,7 @@ components:
1857018595 - action: block
1857118596 slug: regex-prompt-injection
1857218597 items:
18573- $ref: '#/components/schemas/ContentFilterBuiltinEntry '
18598+ $ref: '#/components/schemas/ContentFilterBuiltinEntryInput '
1857418599 nullable: true
1857518600 type: array
1857618601 content_filters:
@@ -18657,9 +18682,9 @@ components:
1865718682 allowed_providers:
1865818683 - openai
1865918684 content_filter_builtins:
18660- - action: block
18661- label: '[PROMPT_INJECTION ]'
18662- slug: regex-prompt-injection
18685+ - action: redact
18686+ label: '[EMAIL ]'
18687+ slug: email
1866318688 content_filters: null
1866418689 created_at: '2025-08-24T10:30:00Z'
1866518690 description: Updated description
0 commit comments