ContentFilterResultsForPrompt Class

  • java.lang.Object
    • com.azure.ai.openai.models.ContentFilterResultsForPrompt

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 ContentFilterResultsForPrompt fromJson(JsonReader jsonReader)

Reads an instance of ContentFilterResultsForPrompt from the JsonReader.

ContentFilterResultDetailsForPrompt getContentFilterResults()

Get the contentFilterResults property: Content filtering results for this prompt.

int getPromptIndex()

Get the promptIndex property: The index of this prompt in the set of prompt results.

JsonWriter 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:

jsonReader - The JsonReader being read.

Returns:

An instance of ContentFilterResultsForPrompt if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

getContentFilterResults

public ContentFilterResultDetailsForPrompt getContentFilterResults()

Get the contentFilterResults property: Content filtering results for this prompt.

Returns:

the contentFilterResults value.

getPromptIndex

public int getPromptIndex()

Get the promptIndex property: The index of this prompt in the set of prompt results.

Returns:

the promptIndex value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to