AzureGroundingEnhancementLine Class

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

Implements

public final class AzureGroundingEnhancementLine
implements JsonSerializable<AzureGroundingEnhancementLine>

A content line object consisting of an adjacent sequence of content elements, such as words and selection marks.

Method Summary

Modifier and Type Method and Description
static AzureGroundingEnhancementLine fromJson(JsonReader jsonReader)

Reads an instance of AzureGroundingEnhancementLine from the JsonReader.

List<AzureGroundingEnhancementLineSpan> getSpans()

Get the spans property: An array of spans that represent detected objects and its bounding box information.

String getText()

Get the text property: The text within the line.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static AzureGroundingEnhancementLine fromJson(JsonReader jsonReader)

Reads an instance of AzureGroundingEnhancementLine from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AzureGroundingEnhancementLine 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.

getSpans

public List getSpans()

Get the spans property: An array of spans that represent detected objects and its bounding box information.

Returns:

the spans value.

getText

public String getText()

Get the text property: The text within the line.

Returns:

the text value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to