Class KnowledgeBaseRetrievalRequest
java.lang.Object
com.azure.search.documents.knowledgebases.models.KnowledgeBaseRetrievalRequest
- All Implemented Interfaces:
com.azure.json.JsonSerializable<KnowledgeBaseRetrievalRequest>
public final class KnowledgeBaseRetrievalRequest
extends Object
implements com.azure.json.JsonSerializable<KnowledgeBaseRetrievalRequest>
The input contract for the retrieval request.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of KnowledgeBaseRetrievalRequest class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of KnowledgeBaseRetrievalRequest from the JsonReader.Get the intents property: A list of intended queries to execute without model query planning.Get the knowledgeSourceParams property: A list of runtime parameters for the knowledge sources.Get the maxOutputSize property: Limits the maximum size of the content in the output.Get the maxRuntimeInSeconds property: The maximum runtime in seconds.Get the messages property: A list of chat message style input.Get the outputMode property: The output configuration for this retrieval.Get the retrievalReasoningEffort property: The retrievalReasoningEffort property.Get the includeActivity property: Indicates retrieval results should include activity information.setIncludeActivity(Boolean includeActivity) Set the includeActivity property: Indicates retrieval results should include activity information.setIntents(List<KnowledgeRetrievalIntent> intents) Set the intents property: A list of intended queries to execute without model query planning.setKnowledgeSourceParams(List<KnowledgeSourceParams> knowledgeSourceParams) Set the knowledgeSourceParams property: A list of runtime parameters for the knowledge sources.setMaxOutputSize(Integer maxOutputSize) Set the maxOutputSize property: Limits the maximum size of the content in the output.setMaxRuntimeInSeconds(Integer maxRuntimeInSeconds) Set the maxRuntimeInSeconds property: The maximum runtime in seconds.setMessages(List<KnowledgeBaseMessage> messages) Set the messages property: A list of chat message style input.setOutputMode(KnowledgeRetrievalOutputMode outputMode) Set the outputMode property: The output configuration for this retrieval.setRetrievalReasoningEffort(KnowledgeRetrievalReasoningEffort retrievalReasoningEffort) Set the retrievalReasoningEffort property: The retrievalReasoningEffort property.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class 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
-
KnowledgeBaseRetrievalRequest
public KnowledgeBaseRetrievalRequest()Creates an instance of KnowledgeBaseRetrievalRequest class.
-
-
Method Details
-
getMessages
Get the messages property: A list of chat message style input.- Returns:
- the messages value.
-
setMessages
Set the messages property: A list of chat message style input.- Parameters:
messages- the messages value to set.- Returns:
- the KnowledgeBaseRetrievalRequest object itself.
-
getIntents
Get the intents property: A list of intended queries to execute without model query planning.- Returns:
- the intents value.
-
setIntents
Set the intents property: A list of intended queries to execute without model query planning.- Parameters:
intents- the intents value to set.- Returns:
- the KnowledgeBaseRetrievalRequest object itself.
-
getMaxRuntimeInSeconds
Get the maxRuntimeInSeconds property: The maximum runtime in seconds.- Returns:
- the maxRuntimeInSeconds value.
-
setMaxRuntimeInSeconds
Set the maxRuntimeInSeconds property: The maximum runtime in seconds.- Parameters:
maxRuntimeInSeconds- the maxRuntimeInSeconds value to set.- Returns:
- the KnowledgeBaseRetrievalRequest object itself.
-
getMaxOutputSize
Get the maxOutputSize property: Limits the maximum size of the content in the output.- Returns:
- the maxOutputSize value.
-
setMaxOutputSize
Set the maxOutputSize property: Limits the maximum size of the content in the output.- Parameters:
maxOutputSize- the maxOutputSize value to set.- Returns:
- the KnowledgeBaseRetrievalRequest object itself.
-
getRetrievalReasoningEffort
Get the retrievalReasoningEffort property: The retrievalReasoningEffort property.- Returns:
- the retrievalReasoningEffort value.
-
setRetrievalReasoningEffort
public KnowledgeBaseRetrievalRequest setRetrievalReasoningEffort(KnowledgeRetrievalReasoningEffort retrievalReasoningEffort) Set the retrievalReasoningEffort property: The retrievalReasoningEffort property.- Parameters:
retrievalReasoningEffort- the retrievalReasoningEffort value to set.- Returns:
- the KnowledgeBaseRetrievalRequest object itself.
-
isIncludeActivity
Get the includeActivity property: Indicates retrieval results should include activity information.- Returns:
- the includeActivity value.
-
setIncludeActivity
Set the includeActivity property: Indicates retrieval results should include activity information.- Parameters:
includeActivity- the includeActivity value to set.- Returns:
- the KnowledgeBaseRetrievalRequest object itself.
-
getOutputMode
Get the outputMode property: The output configuration for this retrieval.- Returns:
- the outputMode value.
-
setOutputMode
Set the outputMode property: The output configuration for this retrieval.- Parameters:
outputMode- the outputMode value to set.- Returns:
- the KnowledgeBaseRetrievalRequest object itself.
-
getKnowledgeSourceParams
Get the knowledgeSourceParams property: A list of runtime parameters for the knowledge sources.- Returns:
- the knowledgeSourceParams value.
-
setKnowledgeSourceParams
public KnowledgeBaseRetrievalRequest setKnowledgeSourceParams(List<KnowledgeSourceParams> knowledgeSourceParams) Set the knowledgeSourceParams property: A list of runtime parameters for the knowledge sources.- Parameters:
knowledgeSourceParams- the knowledgeSourceParams value to set.- Returns:
- the KnowledgeBaseRetrievalRequest object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<KnowledgeBaseRetrievalRequest>- Throws:
IOException
-
fromJson
public static KnowledgeBaseRetrievalRequest fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of KnowledgeBaseRetrievalRequest from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of KnowledgeBaseRetrievalRequest 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 KnowledgeBaseRetrievalRequest.
-