CodeInterpreterToolResource Class
- java.
lang. Object - com.
azure. ai. agents. persistent. models. CodeInterpreterToolResource
- com.
Implements
public final class CodeInterpreterToolResource
implements JsonSerializable<CodeInterpreterToolResource>
A set of resources that are used by the `code_interpreter` tool.
Constructor Summary
| Constructor | Description |
|---|---|
| CodeInterpreterToolResource() |
Creates an instance of Code |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Code |
fromJson(JsonReader jsonReader)
Reads an instance of Code |
|
List<Vector |
getDataSources()
Get the data |
| List<String> |
getFileIds()
Get the file |
|
Code |
setDataSources(List<VectorStoreDataSource> dataSources)
Set the data |
|
Code |
setFileIds(List<String> fileIds)
Set the file |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
CodeInterpreterToolResource
public CodeInterpreterToolResource()
Creates an instance of CodeInterpreterToolResource class.
Method Details
fromJson
public static CodeInterpreterToolResource fromJson(JsonReader jsonReader)
Reads an instance of CodeInterpreterToolResource from the JsonReader.
Parameters:
Returns:
Throws:
getDataSources
public List<VectorStoreDataSource> getDataSources()
Get the dataSources property: The data sources to be used. This option is mutually exclusive with the `fileIds` property.
Returns:
getFileIds
public List<String> getFileIds()
Get the fileIds property: A list of file IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool.
Returns:
setDataSources
public CodeInterpreterToolResource setDataSources(List<VectorStoreDataSource> dataSources)
Set the dataSources property: The data sources to be used. This option is mutually exclusive with the `fileIds` property.
Parameters:
Returns:
setFileIds
public CodeInterpreterToolResource setFileIds(List<String> fileIds)
Set the fileIds property: A list of file IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool.
Parameters:
Returns: