pangea-sdk 6.9.0__py3-none-any.whl → 6.10.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pangea/__init__.py +1 -1
- pangea/asyncio/services/ai_guard.py +2 -1
- pangea/services/ai_guard.py +20 -1
- {pangea_sdk-6.9.0.dist-info → pangea_sdk-6.10.0.dist-info}/METADATA +1 -1
- {pangea_sdk-6.9.0.dist-info → pangea_sdk-6.10.0.dist-info}/RECORD +6 -6
- {pangea_sdk-6.9.0.dist-info → pangea_sdk-6.10.0.dist-info}/WHEEL +0 -0
pangea/__init__.py
CHANGED
|
@@ -15,6 +15,7 @@ from pangea.services.ai_guard import (
|
|
|
15
15
|
McpToolsMessage,
|
|
16
16
|
Message,
|
|
17
17
|
Overrides,
|
|
18
|
+
Overrides2,
|
|
18
19
|
TextGuardResult,
|
|
19
20
|
get_relevant_content,
|
|
20
21
|
patch_messages,
|
|
@@ -205,7 +206,7 @@ class AIGuardAsync(ServiceBaseAsync):
|
|
|
205
206
|
*,
|
|
206
207
|
recipe: str | None = None,
|
|
207
208
|
debug: bool | None = None,
|
|
208
|
-
overrides:
|
|
209
|
+
overrides: Overrides2 | None = None,
|
|
209
210
|
app_id: str | None = None,
|
|
210
211
|
actor_id: str | None = None,
|
|
211
212
|
llm_provider: str | None = None,
|
pangea/services/ai_guard.py
CHANGED
|
@@ -178,6 +178,25 @@ class Overrides(APIRequestModel):
|
|
|
178
178
|
topic: Optional[TopicDetectionOverride] = None
|
|
179
179
|
|
|
180
180
|
|
|
181
|
+
class MaliciousPromptOverride(APIRequestModel):
|
|
182
|
+
disabled: Optional[bool] = None
|
|
183
|
+
action: Optional[Literal["report", "block"]] = None
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
class Overrides2(APIRequestModel):
|
|
187
|
+
ignore_recipe: Optional[bool] = False
|
|
188
|
+
"""Bypass existing Recipe content and create an on-the-fly Recipe."""
|
|
189
|
+
code: Optional[CodeDetectionOverride] = None
|
|
190
|
+
language: Optional[LanguageDetectionOverride] = None
|
|
191
|
+
topic: Optional[TopicDetectionOverride] = None
|
|
192
|
+
malicious_prompt: Optional[MaliciousPromptOverride] = None
|
|
193
|
+
malicious_entity: Optional[MaliciousEntityOverride] = None
|
|
194
|
+
competitors: Optional[CompetitorsOverride] = None
|
|
195
|
+
confidential_and_pii_entity: Optional[PiiEntityOverride] = None
|
|
196
|
+
secret_and_key_entity: Optional[SecretsDetectionOverride] = None
|
|
197
|
+
image: Optional[ImageDetectionItems] = None
|
|
198
|
+
|
|
199
|
+
|
|
181
200
|
class LogFields(APIRequestModel):
|
|
182
201
|
"""Additional fields to include in activity log"""
|
|
183
202
|
|
|
@@ -645,7 +664,7 @@ class AIGuard(ServiceBase):
|
|
|
645
664
|
*,
|
|
646
665
|
recipe: str | None = None,
|
|
647
666
|
debug: bool | None = None,
|
|
648
|
-
overrides:
|
|
667
|
+
overrides: Overrides2 | None = None,
|
|
649
668
|
app_id: str | None = None,
|
|
650
669
|
actor_id: str | None = None,
|
|
651
670
|
llm_provider: str | None = None,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
pangea/__init__.py,sha256=
|
|
1
|
+
pangea/__init__.py,sha256=L9FOBHxxc0XBjc6ubK8NfxclBIskJ0e4x2jYOyACf2Y,294
|
|
2
2
|
pangea/_constants.py,sha256=gGGoQ6rhSiFEw1MKSGI588CHvFokG1Cf9SkkdPdRjVY,113
|
|
3
3
|
pangea/_typing.py,sha256=pFBLkW2gPVZkgvMibQkovusQJZuGjhcqpkeRHnQrvds,798
|
|
4
4
|
pangea/asyncio/__init__.py,sha256=96zytAbw70iKlqGwF12FCTf358_ijkBVNuo-1vBOyHI,79
|
|
5
5
|
pangea/asyncio/file_uploader.py,sha256=Ln-FvsHM-fq4vpAvfoYQevesQgM-ycLqg2MT-58xoU0,1435
|
|
6
6
|
pangea/asyncio/request.py,sha256=rLMUWGx6PZO7xCZAyvVcOQQRfBp7I0BmBRe3HE_YiLY,20943
|
|
7
7
|
pangea/asyncio/services/__init__.py,sha256=j39Z0CpDAUzdn5C61b-kZCtv9JPXQfQ4wkJSSFp5kXM,803
|
|
8
|
-
pangea/asyncio/services/ai_guard.py,sha256=
|
|
8
|
+
pangea/asyncio/services/ai_guard.py,sha256=sjCgcEL4xnKSINb8nL_9oRS8DBd-vFijRdmFqNKCAQI,10882
|
|
9
9
|
pangea/asyncio/services/audit.py,sha256=smZwzCKa37Wzo7yNqa-Rp7WCWNXXQCfjKA25PvxL8fo,26127
|
|
10
10
|
pangea/asyncio/services/authn.py,sha256=jWNIQ2Sb-0vn3hHGKJ47Xm-_EDs58vbgX6NwU_a9E70,52815
|
|
11
11
|
pangea/asyncio/services/authz.py,sha256=vtSQ3iEYUGL7aSn4S-UjiwzXHlMeAW0vp1fbU7rx6Y8,10796
|
|
@@ -30,7 +30,7 @@ pangea/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
30
30
|
pangea/request.py,sha256=PAbcRx746hSht20K_EOWPeQMjFzxjws7KfdMzzg_V10,27938
|
|
31
31
|
pangea/response.py,sha256=1OG5bPWE0j3p77tWYivG_O_O2SD8h0Tuq9WlN6rOKS0,7821
|
|
32
32
|
pangea/services/__init__.py,sha256=KP2U0-TcusW5H3GUFxS7Nc_LxxJ-X0uBbxeLQmGO6-o,667
|
|
33
|
-
pangea/services/ai_guard.py,sha256=
|
|
33
|
+
pangea/services/ai_guard.py,sha256=Zi-x24m5YUSvxoTly8i6TJ0yj99FwdHVvuzGl1MWZLs,28079
|
|
34
34
|
pangea/services/audit/audit.py,sha256=40jrCAOuZym_QsEfhghIjPm3KKWwPx9B3ZKJ-T7R4W4,39231
|
|
35
35
|
pangea/services/audit/exceptions.py,sha256=bhVuYe4ammacOVxwg98CChxvwZf5FKgR2DcgqILOcwc,471
|
|
36
36
|
pangea/services/audit/models.py,sha256=pE4jtYAn_c5JdPrXBfpKHwpRAqO_DTSCOy-QHkPMajw,15471
|
|
@@ -57,6 +57,6 @@ pangea/services/vault/vault.py,sha256=PJs1YlTud1cPnhyUDMguIEyhN0i-haG1kuzA_4hygE
|
|
|
57
57
|
pangea/tools.py,sha256=JkwVplvx7MCPRSdPhFTLvOl6h7btaUbXEuHgUy0EHBU,6452
|
|
58
58
|
pangea/utils.py,sha256=QwTODI_D8by86uXeA0MpdhJICvz5baKUtfv1rguQshU,4943
|
|
59
59
|
pangea/verify_audit.py,sha256=-VepQKHtSqZRqhIKiUtLufa7ywwdMNLN2SuhingMooU,17288
|
|
60
|
-
pangea_sdk-6.
|
|
61
|
-
pangea_sdk-6.
|
|
62
|
-
pangea_sdk-6.
|
|
60
|
+
pangea_sdk-6.10.0.dist-info/WHEEL,sha256=M6du7VZflc4UPsGphmOXHANdgk8zessdJG0DBUuoA-U,78
|
|
61
|
+
pangea_sdk-6.10.0.dist-info/METADATA,sha256=lkJFkMP5WotpSsEg-aPLKAu4fe-Fu3moTMOEn5RhgDk,8029
|
|
62
|
+
pangea_sdk-6.10.0.dist-info/RECORD,,
|
|
File without changes
|