Class UpdateToolResourcesOptions
java.lang.Object
com.azure.ai.openai.assistants.models.UpdateToolResourcesOptions
- All Implemented Interfaces:
com.azure.json.JsonSerializable<UpdateToolResourcesOptions>
public final class UpdateToolResourcesOptions
extends Object
implements com.azure.json.JsonSerializable<UpdateToolResourcesOptions>
Request object. A set of resources that are used by the assistant's tools. The resources are specific to the type of
tool.
For example, the `code_interpreter` tool requires a list of file IDs, while the `file_search` tool requires a list of
vector store IDs.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of UpdateToolResourcesOptions class. -
Method Summary
Modifier and TypeMethodDescriptionstatic UpdateToolResourcesOptions
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of UpdateToolResourcesOptions from the JsonReader.Get the codeInterpreter property: Overrides the list of file IDs made available to the `code_interpreter` tool.Get the fileSearch property: Overrides the vector store attached to this assistant.setCodeInterpreter
(UpdateCodeInterpreterToolResourceOptions codeInterpreter) Set the codeInterpreter property: Overrides the list of file IDs made available to the `code_interpreter` tool.setFileSearch
(UpdateFileSearchToolResourceOptions fileSearch) Set the fileSearch property: Overrides the vector store attached to this assistant.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
-
UpdateToolResourcesOptions
public UpdateToolResourcesOptions()Creates an instance of UpdateToolResourcesOptions class.
-
-
Method Details
-
getCodeInterpreter
Get the codeInterpreter property: Overrides the list of file IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool.- Returns:
- the codeInterpreter value.
-
setCodeInterpreter
public UpdateToolResourcesOptions setCodeInterpreter(UpdateCodeInterpreterToolResourceOptions codeInterpreter) Set the codeInterpreter property: Overrides the list of file IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool.- Parameters:
codeInterpreter
- the codeInterpreter value to set.- Returns:
- the UpdateToolResourcesOptions object itself.
-
getFileSearch
Get the fileSearch property: Overrides the vector store attached to this assistant. There can be a maximum of 1 vector store attached to the assistant.- Returns:
- the fileSearch value.
-
setFileSearch
Set the fileSearch property: Overrides the vector store attached to this assistant. There can be a maximum of 1 vector store attached to the assistant.- Parameters:
fileSearch
- the fileSearch value to set.- Returns:
- the UpdateToolResourcesOptions object itself.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<UpdateToolResourcesOptions>
- Throws:
IOException
-
fromJson
public static UpdateToolResourcesOptions fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of UpdateToolResourcesOptions from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of UpdateToolResourcesOptions 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 UpdateToolResourcesOptions.
-