ToolResources Class
- java.
lang. Object - com.
azure. ai. agents. persistent. models. ToolResources
- com.
Implements
public final class ToolResources
implements JsonSerializable<ToolResources>
A set of resources that are used by the agent'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
| Constructor | Description |
|---|---|
| ToolResources() |
Creates an instance of Tool |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Tool |
fromJson(JsonReader jsonReader)
Reads an instance of Tool |
|
Azure |
getAzureAISearch()
Get the azure |
|
Code |
getCodeInterpreter()
Get the code |
|
File |
getFileSearch()
Get the file |
|
Tool |
setAzureAISearch(AzureAISearchToolResource azureAISearch)
Set the azure |
|
Tool |
setCodeInterpreter(CodeInterpreterToolResource codeInterpreter)
Set the code |
|
Tool |
setFileSearch(FileSearchToolResource fileSearch)
Set the file |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
ToolResources
public ToolResources()
Creates an instance of ToolResources class.
Method Details
fromJson
public static ToolResources fromJson(JsonReader jsonReader)
Reads an instance of ToolResources from the JsonReader.
Parameters:
Returns:
Throws:
getAzureAISearch
public AzureAISearchToolResource getAzureAISearch()
Get the azureAISearch property: Resources to be used by the `azure_ai_search` tool consisting of index IDs and names.
Returns:
getCodeInterpreter
public CodeInterpreterToolResource getCodeInterpreter()
Get the codeInterpreter property: Resources to be used by the `code_interpreter` tool consisting of file IDs.
Returns:
getFileSearch
public FileSearchToolResource getFileSearch()
Get the fileSearch property: Resources to be used by the `file_search` tool consisting of vector store IDs.
Returns:
setAzureAISearch
public ToolResources setAzureAISearch(AzureAISearchToolResource azureAISearch)
Set the azureAISearch property: Resources to be used by the `azure_ai_search` tool consisting of index IDs and names.
Parameters:
Returns:
setCodeInterpreter
public ToolResources setCodeInterpreter(CodeInterpreterToolResource codeInterpreter)
Set the codeInterpreter property: Resources to be used by the `code_interpreter` tool consisting of file IDs.
Parameters:
Returns:
setFileSearch
public ToolResources setFileSearch(FileSearchToolResource fileSearch)
Set the fileSearch property: Resources to be used by the `file_search` tool consisting of vector store IDs.
Parameters:
Returns: