Class Assistant.ToolResources
-
- All Implemented Interfaces:
public final class Assistant.ToolResourcesA set of resources that are used by the assistant's tools. The resources are specific to the type of tool. For example, the
code_interpretertool requires a list of file IDs, while thefile_searchtool requires a list of vector store IDs.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classAssistant.ToolResources.BuilderA builder for ToolResources.
public final classAssistant.ToolResources.CodeInterpreterpublic final classAssistant.ToolResources.FileSearch
-
Method Summary
Modifier and Type Method Description final Optional<Assistant.ToolResources.CodeInterpreter>codeInterpreter()final Optional<Assistant.ToolResources.FileSearch>fileSearch()final JsonField<Assistant.ToolResources.CodeInterpreter>_codeInterpreter()Returns the raw JSON value of codeInterpreter. final JsonField<Assistant.ToolResources.FileSearch>_fileSearch()Returns the raw JSON value of fileSearch. final Map<String, JsonValue>_additionalProperties()final Assistant.ToolResources.BuildertoBuilder()final Assistant.ToolResourcesvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static Assistant.ToolResources.Builderbuilder()Returns a mutable builder for constructing an instance of ToolResources. -
-
Method Detail
-
codeInterpreter
final Optional<Assistant.ToolResources.CodeInterpreter> codeInterpreter()
-
fileSearch
final Optional<Assistant.ToolResources.FileSearch> fileSearch()
-
_codeInterpreter
final JsonField<Assistant.ToolResources.CodeInterpreter> _codeInterpreter()
Returns the raw JSON value of codeInterpreter.
Unlike codeInterpreter, this method doesn't throw if the JSON field has an unexpected type.
-
_fileSearch
final JsonField<Assistant.ToolResources.FileSearch> _fileSearch()
Returns the raw JSON value of fileSearch.
Unlike fileSearch, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final Assistant.ToolResources.Builder toBuilder()
-
validate
final Assistant.ToolResources validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static Assistant.ToolResources.Builder builder()
Returns a mutable builder for constructing an instance of ToolResources.
-
-
-
-