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 Details

    • KnowledgeAgentRetrievalResponse

      public KnowledgeAgentRetrievalResponse()
      Creates an instance of KnowledgeAgentRetrievalResponse class.
  • Method Details

    • getResponse

      public List<KnowledgeAgentMessage> 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

      public List<KnowledgeAgentActivityRecord> 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

      public List<KnowledgeAgentReference> getReferences()
      Get the references property: The references for the retrieval data used in the response.
      Returns:
      the references value.
    • setReferences

      public KnowledgeAgentRetrievalResponse setReferences(List<KnowledgeAgentReference> references)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.