@@ -2317,28 +2317,6 @@ paths:
23172317 onFail: "block"
23182318 message: "Mistral moderation flagged content"
23192319
2320- pangea_security:
2321- summary: "[PARTNER] Pangea Security Suite"
2322- value:
2323- name: "Pangea Text & PII Guard"
2324- workspace_id: "550e8400-e29b-41d4-a716-446655440000"
2325- checks:
2326- - id: "pangea.textGuard"
2327- parameters:
2328- recipe: "default_text_recipe"
2329- debug: true
2330- overrides:
2331- prompt_guard:
2332- state: "enabled"
2333- timeout: 5000
2334- - id: "pangea.pii"
2335- parameters:
2336- redact: true
2337- timeout: 5000
2338- actions:
2339- onFail: "block"
2340- message: "Pangea security scan failed"
2341-
23422320 bedrock_enterprise:
23432321 summary: "[PARTNER] AWS Bedrock Guardrails"
23442322 value:
@@ -9832,8 +9810,13 @@ paths:
98329810 schema:
98339811 type: object
98349812 properties:
9835- success:
9836- type: boolean
9813+ object:
9814+ type: string
9815+ description: Object type identifier
9816+ example: list
9817+ total:
9818+ type: integer
9819+ description: Total number of configs
98379820 data:
98389821 type: array
98399822 items:
@@ -9868,6 +9851,9 @@ paths:
98689851 last_updated_at:
98699852 type: string
98709853 format: date-time
9854+ object:
9855+ type: string
9856+ example: config
98719857 examples:
98729858 example-1:
98739859 value:
@@ -9990,27 +9976,29 @@ paths:
99909976 schema:
99919977 type: object
99929978 properties:
9993- success:
9994- type: boolean
9995- data:
9996- type: object
9997- properties:
9998- id:
9999- type: string
10000- format: uuid
10001- version_id:
10002- type: string
10003- format: uuid
9979+ id:
9980+ type: string
9981+ format: uuid
9982+ description: Unique identifier for the config
9983+ version_id:
9984+ type: string
9985+ format: uuid
9986+ description: Version identifier for the config
9987+ slug:
9988+ type: string
9989+ description: URL-friendly identifier for the config
9990+ object:
9991+ type: string
9992+ description: Object type identifier
9993+ example: config
100049994 examples:
100059995 example-1:
100069996 value:
100079997 {
10008- "success": true,
10009- "data":
10010- {
10011- "id": "f3d8d070-f29d-43a3-bf97-3159c60f4ce0",
10012- "version_id": "0db4065b-ead2-4daa-bf5e-7e9106585133",
10013- },
9998+ "id": "f3d8d070-f29d-43a3-bf97-3159c60f4ce0",
9999+ "version_id": "0db4065b-ead2-4daa-bf5e-7e9106585133",
10000+ "slug": "pc-my-config-abc123",
10001+ "object": "config"
1001410002 }
1001510003 x-code-samples:
1001610004 - lang: python
@@ -10204,73 +10192,66 @@ paths:
1020410192 schema:
1020510193 type: object
1020610194 properties:
10207- success:
10208- type: boolean
10209- data:
10210- type: object
10211- properties:
10212- config:
10213- type: object
10214- properties:
10215- retry:
10216- type: object
10217- properties:
10218- attempts:
10219- type: integer
10220- on_status_codes:
10221- type: array
10222- items:
10223- type: integer
10224- cache:
10225- type: object
10226- properties:
10227- mode:
10228- type: string
10229- max_age:
10230- type: integer
10231- strategy:
10232- type: object
10233- properties:
10234- mode:
10235- type: string
10236- targets:
10237- type: array
10238- items:
10239- type: object
10240- properties:
10241- provider:
10242- type: string
10243- virtual_key:
10244- type: string
10195+ id:
10196+ type: string
10197+ format: uuid
10198+ name:
10199+ type: string
10200+ slug:
10201+ type: string
10202+ organisation_id:
10203+ type: string
10204+ format: uuid
10205+ workspace_id:
10206+ type: string
10207+ format: uuid
10208+ is_default:
10209+ type: integer
10210+ status:
10211+ type: string
10212+ owner_id:
10213+ type: string
10214+ format: uuid
10215+ updated_by:
10216+ type: string
10217+ format: uuid
10218+ created_at:
10219+ type: string
10220+ format: date-time
10221+ last_updated_at:
10222+ type: string
10223+ format: date-time
10224+ version_id:
10225+ type: string
10226+ format: uuid
10227+ format:
10228+ type: string
10229+ type:
10230+ type: string
10231+ object:
10232+ type: string
10233+ example: config
10234+ config:
10235+ type: string
10236+ description: JSON string containing the config object
1024510237 examples:
1024610238 example-1:
1024710239 value:
1024810240 {
10249- "success": true,
10250- "data":
10251- {
10252- "config":
10253- {
10254- "retry":
10255- {
10256- "attempts": 5,
10257- "on_status_codes": [429, 529],
10258- },
10259- "cache": { "mode": "simple", "max_age": 3600 },
10260- "strategy": { "mode": "fallback" },
10261- "targets":
10262- [
10263- {
10264- "provider": "openai",
10265- "virtual_key": "main-258f4d",
10266- },
10267- {
10268- "provider": "azure-openai",
10269- "virtual_key": "azure-test-4110dd",
10270- },
10271- ],
10272- },
10273- },
10241+ "id": "f3d8d070-f29d-43a3-bf97-3159c60f4ce0",
10242+ "name": "My Config",
10243+ "slug": "pc-my-config-abc123",
10244+ "organisation_id": "c34223e8-d419-4ee6-8f46-f7f5675da424",
10245+ "workspace_id": "878632ce-4ac0-451e-8ed4-0703f3944a07",
10246+ "is_default": 0,
10247+ "status": "active",
10248+ "created_at": "2025-01-01T00:00:00.000Z",
10249+ "last_updated_at": "2025-01-01T00:00:00.000Z",
10250+ "version_id": "0db4065b-ead2-4daa-bf5e-7e9106585133",
10251+ "format": "json",
10252+ "type": "ORG_CONFIG",
10253+ "object": "config",
10254+ "config": "{\"strategy\":{\"mode\":\"single\"},\"targets\":[{\"provider\":\"openai\"}]}"
1027410255 }
1027510256 x-code-samples:
1027610257 - lang: python
@@ -32311,8 +32292,6 @@ components:
3231132292 - "patronus.toxicity"
3231232293 - "patronus.custom"
3231332294 - "mistral.moderateContent"
32314- - "pangea.textGuard"
32315- - "pangea.pii"
3231632295 - "bedrock.guard"
3231732296 - "promptfoo.guard"
3231832297 - "promptfoo.pii"
@@ -32348,8 +32327,6 @@ components:
3234832327 - $ref: '#/components/schemas/PortkeyLanguageParameters'
3234932328 - $ref: '#/components/schemas/PortkeyPIIParameters'
3235032329 - $ref: '#/components/schemas/MistralModerationParameters'
32351- - $ref: '#/components/schemas/PangeaTextGuardParameters'
32352- - $ref: '#/components/schemas/PangeaPIIParameters'
3235332330 - $ref: '#/components/schemas/BedrockGuardParameters'
3235432331 - $ref: '#/components/schemas/PromptfooParameters'
3235532332 - $ref: '#/components/schemas/AcuvityScanParameters'
@@ -32974,38 +32951,6 @@ components:
3297432951 description: Timeout in milliseconds
3297532952 default: 5000
3297632953
32977- PangeaTextGuardParameters:
32978- type: object
32979- required:
32980- - recipe
32981- properties:
32982- recipe:
32983- type: string
32984- description: Recipe key for Pangea configuration
32985- debug:
32986- type: boolean
32987- description: Enable detailed analysis
32988- overrides:
32989- type: object
32990- additionalProperties: true
32991- description: Pangea overrides
32992- timeout:
32993- type: number
32994- description: Timeout in milliseconds
32995- default: 5000
32996-
32997- PangeaPIIParameters:
32998- type: object
32999- properties:
33000- redact:
33001- type: boolean
33002- description: Whether to redact detected PII
33003- default: false
33004- timeout:
33005- type: number
33006- description: Timeout in milliseconds
33007- default: 5000
33008-
3300932954 BedrockGuardParameters:
3301032955 type: object
3301132956 required:
0 commit comments