类 Moderation
java.lang.Object
dev.langchain4j.model.moderation.Moderation
Represents moderation status.
-
构造器概要
构造器构造器说明Construct a Moderation object that is not flagged.Moderation(String flaggedText) Construct a Moderation object that is flagged. -
方法概要
修饰符和类型方法说明booleanbooleanflagged()Returns true if the text was flagged.static ModerationConstructs a Moderation object that is flagged.Returns the text that was flagged.inthashCode()static ModerationConstructs a Moderation object that is not flagged.toString()
-
构造器详细资料
-
Moderation
public Moderation()Construct a Moderation object that is not flagged. -
Moderation
Construct a Moderation object that is flagged.- 参数:
flaggedText- the text that was flagged.
-
-
方法详细资料
-
flagged
public boolean flagged()Returns true if the text was flagged.- 返回:
- true if the text was flagged, false otherwise.
-
flaggedText
Returns the text that was flagged.- 返回:
- the text that was flagged, or null if the text was not flagged.
-
equals
-
hashCode
public int hashCode() -
toString
-
flagged
Constructs a Moderation object that is flagged.- 参数:
flaggedText- the text that was flagged.- 返回:
- a Moderation object.
-
notFlagged
Constructs a Moderation object that is not flagged.- 返回:
- a Moderation object.
-