Class KnowledgeAgentRetrievalRequest
java.lang.Object
com.azure.search.documents.agents.models.KnowledgeAgentRetrievalRequest
- All Implemented Interfaces:
com.azure.json.JsonSerializable<KnowledgeAgentRetrievalRequest>
public final class KnowledgeAgentRetrievalRequest
extends Object
implements com.azure.json.JsonSerializable<KnowledgeAgentRetrievalRequest>
The input contract for the retrieval request.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of KnowledgeAgentRetrievalRequest class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of KnowledgeAgentRetrievalRequest from the JsonReader.Get the messages property: The messages property.Get the targetIndexParams property: The targetIndexParams property.setTargetIndexParams(List<KnowledgeAgentIndexParams> targetIndexParams) Set the targetIndexParams property: The targetIndexParams 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
-
KnowledgeAgentRetrievalRequest
Creates an instance of KnowledgeAgentRetrievalRequest class.- Parameters:
messages- the messages value to set.
-
-
Method Details
-
getMessages
Get the messages property: The messages property.- Returns:
- the messages value.
-
getTargetIndexParams
Get the targetIndexParams property: The targetIndexParams property.- Returns:
- the targetIndexParams value.
-
setTargetIndexParams
public KnowledgeAgentRetrievalRequest setTargetIndexParams(List<KnowledgeAgentIndexParams> targetIndexParams) Set the targetIndexParams property: The targetIndexParams property.- Parameters:
targetIndexParams- the targetIndexParams value to set.- Returns:
- the KnowledgeAgentRetrievalRequest object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<KnowledgeAgentRetrievalRequest>- Throws:
IOException
-
fromJson
public static KnowledgeAgentRetrievalRequest fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of KnowledgeAgentRetrievalRequest from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of KnowledgeAgentRetrievalRequest if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the KnowledgeAgentRetrievalRequest.
-