Package com.openai.models.beta.threads
Class Thread.ToolResources
-
- All Implemented Interfaces:
public final class Thread.ToolResourcesA set of resources that are made available to the assistant's tools in this thread. 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 classThread.ToolResources.BuilderA builder for ToolResources.
public final classThread.ToolResources.CodeInterpreterpublic final classThread.ToolResources.FileSearch
-
Method Summary
Modifier and Type Method Description final Optional<Thread.ToolResources.CodeInterpreter>codeInterpreter()final Optional<Thread.ToolResources.FileSearch>fileSearch()final JsonField<Thread.ToolResources.CodeInterpreter>_codeInterpreter()Returns the raw JSON value of codeInterpreter. final JsonField<Thread.ToolResources.FileSearch>_fileSearch()Returns the raw JSON value of fileSearch. final Map<String, JsonValue>_additionalProperties()final Thread.ToolResources.BuildertoBuilder()final Thread.ToolResourcesvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static Thread.ToolResources.Builderbuilder()Returns a mutable builder for constructing an instance of ToolResources. -
-
Method Detail
-
codeInterpreter
final Optional<Thread.ToolResources.CodeInterpreter> codeInterpreter()
-
fileSearch
final Optional<Thread.ToolResources.FileSearch> fileSearch()
-
_codeInterpreter
final JsonField<Thread.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<Thread.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 Thread.ToolResources.Builder toBuilder()
-
validate
final Thread.ToolResources validate()
-
builder
final static Thread.ToolResources.Builder builder()
Returns a mutable builder for constructing an instance of ToolResources.
-
-
-
-