Class Moderation.Builder
java.lang.Object
org.springframework.ai.moderation.Moderation.Builder
- Enclosing class:
- Moderation
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
results
(List<ModerationResult> results) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.usemodel(String)
instead.withResults
(List<ModerationResult> results) Deprecated, for removal: This API element is subject to removal in a future version.useresults(List)
instead.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
id
-
model
-
results
-
withId
Deprecated, for removal: This API element is subject to removal in a future version.useid(String)
instead. -
withModel
Deprecated, for removal: This API element is subject to removal in a future version.usemodel(String)
instead. -
withResults
@Deprecated(forRemoval=true, since="1.0.0-M5") public Moderation.Builder withResults(List<ModerationResult> results) Deprecated, for removal: This API element is subject to removal in a future version.useresults(List)
instead. -
build
-
id(String)
instead.