Skip to content

Commit ec6d269

Browse files
committed
pangea-sdk: Prompt Guard type may be an empty string
1 parent 89d8cb6 commit ec6d269

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/pangea-sdk/pangea/services/prompt_guard.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class GuardResult(PangeaResponseResult):
3030
detected: bool
3131
"""Boolean response for if the prompt was considered malicious or not"""
3232

33-
type: Optional[Literal["direct", "indirect"]] = None
33+
type: Optional[Literal["direct", "indirect", ""]] = None
3434
"""Type of analysis, either direct or indirect"""
3535

3636
analyzer: Optional[str] = None

0 commit comments

Comments
 (0)