KnowledgeBaseAnswerCompletedEvent Class

  • java.lang.Object
    • com.azure.search.documents.knowledgebases.models.KnowledgeBaseAnswerCompletedEvent

Implements

public final class KnowledgeBaseAnswerCompletedEvent
implements JsonSerializable<KnowledgeBaseAnswerCompletedEvent>

Emitted when a fully validated and post-processed synthesized answer is available.

Method Summary

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

Reads an instance of KnowledgeBaseAnswerCompletedEvent from the JsonReader.

KnowledgeBaseMessage getMessage()

Get the message property: The completed answer message.

int getMessageIndex()

Get the messageIndex property: The zero-based index of the completed message in the final response array.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static KnowledgeBaseAnswerCompletedEvent fromJson(JsonReader jsonReader)

Reads an instance of KnowledgeBaseAnswerCompletedEvent from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getMessage

public KnowledgeBaseMessage getMessage()

Get the message property: The completed answer message.

Returns:

the message value.

getMessageIndex

public int getMessageIndex()

Get the messageIndex property: The zero-based index of the completed message in the final response array.

Returns:

the messageIndex value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to