Class ModerationResult
java.lang.Object
org.springframework.ai.moderation.ModerationResult
Represents the result of a moderation process, indicating whether content was flagged,
the categories of moderation, and detailed scores for each category. This class is
designed to be constructed via its Builder inner class.
- Since:
- 1.0.0
- Author:
- Ahmed Yousri
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ModerationResult.Builder
builder()
boolean
int
hashCode()
boolean
void
setCategories
(Categories categories) void
setCategoryScores
(CategoryScores categoryScores) void
setFlagged
(boolean flagged) toString()
-
Method Details
-
isFlagged
public boolean isFlagged() -
setFlagged
public void setFlagged(boolean flagged) -
getCategories
-
setCategories
-
getCategoryScores
-
setCategoryScores
-
builder
-
equals
-
hashCode
public int hashCode() -
toString
-