ContentFilterResult Class
- java.
lang. Object - com.
azure. ai. openai. models. ContentFilterResult
- com.
Implements
public final class ContentFilterResult
implements JsonSerializable<ContentFilterResult>
Information about filtered content severity level and if it has been filtered or not.
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Content |
fromJson(JsonReader jsonReader)
Reads an instance of Content |
Content |
getSeverity()
Get the severity property: Ratings for the intensity and risk level of filtered content. |
boolean |
isFiltered()
Get the filtered property: A value indicating whether or not the content has been filtered. |
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static ContentFilterResult fromJson(JsonReader jsonReader)
Reads an instance of ContentFilterResult from the JsonReader.
Parameters:
Returns:
Throws:
getSeverity
public ContentFilterSeverity getSeverity()
Get the severity property: Ratings for the intensity and risk level of filtered content.
Returns:
isFiltered
public boolean isFiltered()
Get the filtered property: A value indicating whether or not the content has been filtered.
Returns:
toJson
Applies to
Azure SDK for Java