Class ModerationResult.Builder
java.lang.Object
org.springframework.ai.moderation.ModerationResult.Builder
- Enclosing class:
- ModerationResult
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
categories
(Categories categories) categoryScores
(CategoryScores categoryScores) flagged
(boolean flagged) withCategories
(Categories categories) Deprecated, for removal: This API element is subject to removal in a future version.withCategoryScores
(CategoryScores categoryScores) Deprecated, for removal: This API element is subject to removal in a future version.usecategoryScores(CategoryScores)
instead.withFlagged
(boolean flagged) Deprecated, for removal: This API element is subject to removal in a future version.useflagged(boolean)
instead.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
flagged
-
categories
-
categoryScores
-
withFlagged
@Deprecated(forRemoval=true, since="1.0.0-M5") public ModerationResult.Builder withFlagged(boolean flagged) Deprecated, for removal: This API element is subject to removal in a future version.useflagged(boolean)
instead. -
withCategories
@Deprecated(forRemoval=true, since="1.0.0-M5") public ModerationResult.Builder withCategories(Categories categories) Deprecated, for removal: This API element is subject to removal in a future version.usecategories(Categories)
instead. -
withCategoryScores
@Deprecated(forRemoval=true, since="1.0.0-M5") public ModerationResult.Builder withCategoryScores(CategoryScores categoryScores) Deprecated, for removal: This API element is subject to removal in a future version.usecategoryScores(CategoryScores)
instead. -
build
-
categories(Categories)
instead.