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
Opinia
https://aka.ms/ContentUserFeedback.
Dostępne już wkrótce: W 2024 r. będziemy stopniowo wycofywać zgłoszenia z serwisu GitHub jako mechanizm przesyłania opinii na temat zawartości i zastępować go nowym systemem opinii. Aby uzyskać więcej informacji, sprawdź:Prześlij i wyświetl opinię dla