You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: core-services/prompt-registry/src/main/java/com/sap/ai/sdk/prompt/registry/model/AzureContentSafetyInput.java
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -177,7 +177,8 @@ public void setViolence(@Nullable final AzureThreshold violence) {
177
177
* Set the promptShield of this {@link AzureContentSafetyInput} instance and return the same
178
178
* instance.
179
179
*
180
-
* @param promptShield A flag to use prompt shield
180
+
* @param promptShield Filter prompts for harmful content such as jailbreaks and prompt
181
+
* injections.
181
182
* @return The same instance of this {@link AzureContentSafetyInput} class
182
183
*/
183
184
@Nonnull
@@ -187,7 +188,7 @@ public AzureContentSafetyInput promptShield(@Nullable final Boolean promptShield
187
188
}
188
189
189
190
/**
190
-
* A flag to use prompt shield
191
+
* Filter prompts for harmful content such as jailbreaks and prompt injections.
191
192
*
192
193
* @return promptShield The promptShield of this {@link AzureContentSafetyInput} instance.
193
194
*/
@@ -199,7 +200,8 @@ public Boolean isPromptShield() {
199
200
/**
200
201
* Set the promptShield of this {@link AzureContentSafetyInput} instance.
201
202
*
202
-
* @param promptShield A flag to use prompt shield
203
+
* @param promptShield Filter prompts for harmful content such as jailbreaks and prompt
Copy file name to clipboardExpand all lines: core-services/prompt-registry/src/main/java/com/sap/ai/sdk/prompt/registry/model/AzureContentSafetyOutput.java
+52-2Lines changed: 52 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -40,6 +40,9 @@ public class AzureContentSafetyOutput
Copy file name to clipboardExpand all lines: core-services/prompt-registry/src/main/java/com/sap/ai/sdk/prompt/registry/model/MaskingModuleConfigMaskingProviders.java
0 commit comments