Class KnowledgeAgentRetrievalResponse
java.lang.Object
com.azure.search.documents.agents.models.KnowledgeAgentRetrievalResponse
- All Implemented Interfaces:
com.azure.json.JsonSerializable<KnowledgeAgentRetrievalResponse>
public final class KnowledgeAgentRetrievalResponse
extends Object
implements com.azure.json.JsonSerializable<KnowledgeAgentRetrievalResponse>
The output contract for the retrieval response.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of KnowledgeAgentRetrievalResponse class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of KnowledgeAgentRetrievalResponse from the JsonReader.Get the activity property: The activity records for tracking progress and billing implications.Get the references property: The references for the retrieval data used in the response.Get the response property: The response property.setActivity(List<KnowledgeAgentActivityRecord> activity) Set the activity property: The activity records for tracking progress and billing implications.setReferences(List<KnowledgeAgentReference> references) Set the references property: The references for the retrieval data used in the response.setResponse(List<KnowledgeAgentMessage> response) Set the response property: The response property.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
-
Constructor Details
-
KnowledgeAgentRetrievalResponse
public KnowledgeAgentRetrievalResponse()Creates an instance of KnowledgeAgentRetrievalResponse class.
-
-
Method Details
-
getResponse
Get the response property: The response property.- Returns:
- the response value.
-
setResponse
Set the response property: The response property.- Parameters:
response- the response value to set.- Returns:
- the KnowledgeAgentRetrievalResponse object itself.
-
getActivity
Get the activity property: The activity records for tracking progress and billing implications.- Returns:
- the activity value.
-
setActivity
Set the activity property: The activity records for tracking progress and billing implications.- Parameters:
activity- the activity value to set.- Returns:
- the KnowledgeAgentRetrievalResponse object itself.
-
getReferences
Get the references property: The references for the retrieval data used in the response.- Returns:
- the references value.
-
setReferences
Set the references property: The references for the retrieval data used in the response.- Parameters:
references- the references value to set.- Returns:
- the KnowledgeAgentRetrievalResponse object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<KnowledgeAgentRetrievalResponse>- Throws:
IOException
-
fromJson
public static KnowledgeAgentRetrievalResponse fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of KnowledgeAgentRetrievalResponse from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of KnowledgeAgentRetrievalResponse 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 KnowledgeAgentRetrievalResponse.
-