ContentFilterResultsForPrompt Class
- java.
lang. Object - com.
azure. ai. openai. models. ContentFilterResultsForPrompt
- com.
Implements
public final class ContentFilterResultsForPrompt
implements JsonSerializable<ContentFilterResultsForPrompt>
Content filtering results for a single prompt in the request.
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Content |
fromJson(JsonReader jsonReader)
Reads an instance of Content |
Content |
getContentFilterResults()
Get the content |
int |
getPromptIndex()
Get the prompt |
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static ContentFilterResultsForPrompt fromJson(JsonReader jsonReader)
Reads an instance of ContentFilterResultsForPrompt from the JsonReader.
Parameters:
Returns:
Throws:
getContentFilterResults
public ContentFilterResultDetailsForPrompt getContentFilterResults()
Get the contentFilterResults property: Content filtering results for this prompt.
Returns:
getPromptIndex
public int getPromptIndex()
Get the promptIndex property: The index of this prompt in the set of prompt results.
Returns:
toJson
Applies to
Azure SDK for Java
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin