Class ResponsesFileSearchTool
java.lang.Object
com.azure.ai.openai.responses.models.ResponsesTool
com.azure.ai.openai.responses.models.ResponsesFileSearchTool
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ResponsesTool>
The ResponsesFileSearchTool model.
-
Constructor Summary
ConstructorsConstructorDescriptionResponsesFileSearchTool(List<String> vectorStoreIds) Creates an instance of ResponsesFileSearchTool class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ResponsesFileSearchToolfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ResponsesFileSearchTool from the JsonReader.com.azure.core.util.BinaryDataGet the filters property: The filters property.Get the maxNumResults property: The max_num_results property.Get the rankingOptions property: The ranking_options property.getType()Get the type property: The type property.Get the vectorStoreIds property: The vector_store_ids property.setFilters(com.azure.core.util.BinaryData filters) Set the filters property: The filters property.setMaxNumResults(Integer maxNumResults) Set the maxNumResults property: The max_num_results property.setRankingOptions(ResponsesFileSearchToolRankingOptions rankingOptions) Set the rankingOptions property: The ranking_options 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
-
ResponsesFileSearchTool
Creates an instance of ResponsesFileSearchTool class.- Parameters:
vectorStoreIds- the vectorStoreIds value to set.
-
-
Method Details
-
getType
Get the type property: The type property.- Overrides:
getTypein classResponsesTool- Returns:
- the type value.
-
getVectorStoreIds
Get the vectorStoreIds property: The vector_store_ids property.- Returns:
- the vectorStoreIds value.
-
getMaxNumResults
Get the maxNumResults property: The max_num_results property.- Returns:
- the maxNumResults value.
-
setMaxNumResults
Set the maxNumResults property: The max_num_results property.- Parameters:
maxNumResults- the maxNumResults value to set.- Returns:
- the ResponsesFileSearchTool object itself.
-
getRankingOptions
Get the rankingOptions property: The ranking_options property.- Returns:
- the rankingOptions value.
-
setRankingOptions
public ResponsesFileSearchTool setRankingOptions(ResponsesFileSearchToolRankingOptions rankingOptions) Set the rankingOptions property: The ranking_options property.- Parameters:
rankingOptions- the rankingOptions value to set.- Returns:
- the ResponsesFileSearchTool object itself.
-
getFilters
public com.azure.core.util.BinaryData getFilters()Get the filters property: The filters property.- Returns:
- the filters value.
-
setFilters
Set the filters property: The filters property.- Parameters:
filters- the filters value to set.- Returns:
- the ResponsesFileSearchTool object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ResponsesTool>- Overrides:
toJsonin classResponsesTool- Throws:
IOException
-
fromJson
public static ResponsesFileSearchTool fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ResponsesFileSearchTool from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ResponsesFileSearchTool 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 ResponsesFileSearchTool.
-