Package com.azure.ai.openai.models
Class AzureChatExtensionsMessageContext
java.lang.Object
com.azure.ai.openai.models.AzureChatExtensionsMessageContext
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AzureChatExtensionsMessageContext>
public final class AzureChatExtensionsMessageContext
extends Object
implements com.azure.json.JsonSerializable<AzureChatExtensionsMessageContext>
A representation of the additional context information available when Azure OpenAI chat extensions are involved
in the generation of a corresponding chat completions response. This context information is only populated when
using an Azure OpenAI request configured to use a matching extension.
-
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AzureChatExtensionsMessageContext from the JsonReader.Get the allRetrievedDocuments property: All the retrieved documents.Get the citations property: The contextual information associated with the Azure chat extensions used for a chat completions request.Get the intent property: The detected intent from the chat history, used to pass to the next turn to carry over the context.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Method Details
-
getCitations
Get the citations property: The contextual information associated with the Azure chat extensions used for a chat completions request. These messages describe the data source retrievals, plugin invocations, and other intermediate steps taken in the course of generating a chat completions response that was augmented by capabilities from Azure OpenAI chat extensions.- Returns:
- the citations value.
-
getIntent
Get the intent property: The detected intent from the chat history, used to pass to the next turn to carry over the context.- Returns:
- the intent value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AzureChatExtensionsMessageContext>- Throws:
IOException
-
fromJson
public static AzureChatExtensionsMessageContext fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AzureChatExtensionsMessageContext from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AzureChatExtensionsMessageContext if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the AzureChatExtensionsMessageContext.
-
getAllRetrievedDocuments
Get the allRetrievedDocuments property: All the retrieved documents.- Returns:
- the allRetrievedDocuments value.
-