Class AssistantCreateParams.ToolResources
-
- All Implemented Interfaces:
public final class AssistantCreateParams.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 classAssistantCreateParams.ToolResources.BuilderA builder for ToolResources.
public final classAssistantCreateParams.ToolResources.CodeInterpreterpublic final classAssistantCreateParams.ToolResources.FileSearch
-
Method Summary
Modifier and Type Method Description final Optional<AssistantCreateParams.ToolResources.CodeInterpreter>codeInterpreter()final Optional<AssistantCreateParams.ToolResources.FileSearch>fileSearch()final JsonField<AssistantCreateParams.ToolResources.CodeInterpreter>_codeInterpreter()Returns the raw JSON value of codeInterpreter. final JsonField<AssistantCreateParams.ToolResources.FileSearch>_fileSearch()Returns the raw JSON value of fileSearch. final Map<String, JsonValue>_additionalProperties()final AssistantCreateParams.ToolResources.BuildertoBuilder()final AssistantCreateParams.ToolResourcesvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static AssistantCreateParams.ToolResources.Builderbuilder()Returns a mutable builder for constructing an instance of ToolResources. -
-
Method Detail
-
codeInterpreter
final Optional<AssistantCreateParams.ToolResources.CodeInterpreter> codeInterpreter()
-
fileSearch
final Optional<AssistantCreateParams.ToolResources.FileSearch> fileSearch()
-
_codeInterpreter
final JsonField<AssistantCreateParams.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<AssistantCreateParams.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 AssistantCreateParams.ToolResources.Builder toBuilder()
-
validate
final AssistantCreateParams.ToolResources validate()
-
builder
final static AssistantCreateParams.ToolResources.Builder builder()
Returns a mutable builder for constructing an instance of ToolResources.
-
-
-
-