Class FileSearchToolDefinitionDetails
java.lang.Object
com.azure.ai.openai.assistants.models.FileSearchToolDefinitionDetails
- All Implemented Interfaces:
com.azure.json.JsonSerializable<FileSearchToolDefinitionDetails>
public final class FileSearchToolDefinitionDetails
extends Object
implements com.azure.json.JsonSerializable<FileSearchToolDefinitionDetails>
Options overrides for the file search tool.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of FileSearchToolDefinitionDetails class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of FileSearchToolDefinitionDetails from the JsonReader.Get the maxNumResults property: The maximum number of results the file search tool should output.setMaxNumResults
(Integer maxNumResults) Set the maxNumResults property: The maximum number of results the file search tool should output.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
FileSearchToolDefinitionDetails
public FileSearchToolDefinitionDetails()Creates an instance of FileSearchToolDefinitionDetails class.
-
-
Method Details
-
getMaxNumResults
Get the maxNumResults property: The maximum number of results the file search tool should output. The default is 20 for gpt-4* models and 5 for gpt-3.5-turbo. This number should be between 1 and 50 inclusive. Note that the file search tool may output fewer than `max_num_results` results. See the file search tool documentation for more information.- Returns:
- the maxNumResults value.
-
setMaxNumResults
Set the maxNumResults property: The maximum number of results the file search tool should output. The default is 20 for gpt-4* models and 5 for gpt-3.5-turbo. This number should be between 1 and 50 inclusive. Note that the file search tool may output fewer than `max_num_results` results. See the file search tool documentation for more information.- Parameters:
maxNumResults
- the maxNumResults value to set.- Returns:
- the FileSearchToolDefinitionDetails object itself.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<FileSearchToolDefinitionDetails>
- Throws:
IOException
-
fromJson
public static FileSearchToolDefinitionDetails fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of FileSearchToolDefinitionDetails from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of FileSearchToolDefinitionDetails 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 FileSearchToolDefinitionDetails.
-