AzureChatExtensionsMessageContext Class
- java.
lang. Object - com.
azure. ai. openai. models. AzureChatExtensionsMessageContext
- com.
Implements
public final class AzureChatExtensionsMessageContext
implements 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 Type | Method and Description |
---|---|
static
Azure |
fromJson(JsonReader jsonReader)
Reads an instance of Azure |
List<Azure |
getAllRetrievedDocuments()
Get the all |
List<Azure |
getCitations()
Get the citations property: The contextual information associated with the Azure chat extensions used for a chat completions request. |
String |
getIntent()
Get the intent property: The detected intent from the chat history, used to pass to the next turn to carry over the context. |
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static AzureChatExtensionsMessageContext fromJson(JsonReader jsonReader)
Reads an instance of AzureChatExtensionsMessageContext from the JsonReader.
Parameters:
Returns:
Throws:
getAllRetrievedDocuments
public List
Get the allRetrievedDocuments property: All the retrieved documents.
Returns:
getCitations
public List
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:
getIntent
public String 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: