Skip to content

Commit e45d47b

Browse files
author
David Motsonashvili
committed
update harmcategory docs
1 parent 0a75988 commit e45d47b

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

firebase-ai/src/main/kotlin/com/google/firebase/ai/type/HarmCategory.kt

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -71,31 +71,34 @@ public class HarmCategory private constructor(public val ordinal: Int) {
7171
/** A new and not yet supported value. */
7272
@JvmField public val UNKNOWN: HarmCategory = HarmCategory(0)
7373

74-
/** Harassment content. */
74+
/** Represents the harm category for content that is classified as harassment. */
7575
@JvmField public val HARASSMENT: HarmCategory = HarmCategory(1)
7676

77-
/** Hate speech and content. */
77+
/** Represents the harm category for content that is classified as hate speech. */
7878
@JvmField public val HATE_SPEECH: HarmCategory = HarmCategory(2)
7979

80-
/** Sexually explicit content. */
80+
/** Represents the harm category for content that is classified as sexually explicit content. */
8181
@JvmField public val SEXUALLY_EXPLICIT: HarmCategory = HarmCategory(3)
8282

83-
/** Dangerous content. */
83+
/** Represents the harm category for content that is classified as dangerous content. */
8484
@JvmField public val DANGEROUS_CONTENT: HarmCategory = HarmCategory(4)
8585

86-
/** Content that may be used to harm civic integrity. */
86+
/**
87+
* Represents the harm category for content that is classified as content that may be used to
88+
* harm civic integrity.
89+
*/
8790
@JvmField public val CIVIC_INTEGRITY: HarmCategory = HarmCategory(5)
8891

89-
/** Content that is image hate. */
92+
/** Represents the harm category for image content that is classified as hateful. */
9093
@JvmField public val IMAGE_HATE: HarmCategory = HarmCategory(6)
9194

92-
/** Image dangerous content. */
95+
/** Represents the harm category for image content that is classified as dangerous. */
9396
@JvmField public val IMAGE_DANGEROUS_CONTENT: HarmCategory = HarmCategory(7)
9497

95-
/** Content is image harassment. */
98+
/** Represents the harm category for image content that is classified as harassment. */
9699
@JvmField public val IMAGE_HARASSMENT: HarmCategory = HarmCategory(8)
97100

98-
/** Image sexually explicit content. */
101+
/** Represents the harm category for image content that is classified as sexually explicit. */
99102
@JvmField public val IMAGE_SEXUALLY_EXPLICIT: HarmCategory = HarmCategory(9)
100103
}
101104
}

0 commit comments

Comments
 (0)