Skip to content

Commit 0b8112c

Browse files
committed
Improve docs
1 parent ad64624 commit 0b8112c

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

orchestration/src/main/java/com/sap/ai/sdk/orchestration/AzureModerationPolicy.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,16 @@
99
@Getter
1010
@AllArgsConstructor
1111
public enum AzureModerationPolicy {
12+
/** Strict moderation policy. Only safe content is allowed. */
1213
ALLOW_SAFE(AzureThreshold.NUMBER_0),
14+
15+
/** Moderate moderation policy. Safe and low-risk content is allowed. */
1316
ALLOW_SAFE_LOW(AzureThreshold.NUMBER_2),
17+
18+
/** Relaxed moderation policy. Safe, low-risk, and medium-risk content is allowed. */
1419
ALLOW_SAFE_LOW_MEDIUM(AzureThreshold.NUMBER_4),
20+
21+
/** No moderation policy. All content is allowed. */
1522
ALLOW_ALL(AzureThreshold.NUMBER_6);
1623

1724
@Nonnull final AzureThreshold azureThreshold;

orchestration/src/main/java/com/sap/ai/sdk/orchestration/ContentFilter.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.sap.ai.sdk.orchestration;
22

33
import com.sap.ai.sdk.orchestration.client.model.FilterConfig;
4+
import javax.annotation.Nonnull;
45

56
/**
67
* Interface representing convenience wrappers of serializable content filter that defines
@@ -14,5 +15,6 @@ public interface ContentFilter {
1415
*
1516
* @return the corresponding {@code FilterConfig} object.
1617
*/
18+
@Nonnull
1719
FilterConfig createConfig();
1820
}

0 commit comments

Comments
 (0)