Package com.openai.models.responses
Class FileSearchTool
-
- All Implemented Interfaces:
public final class FileSearchToolA tool that searches for relevant content from uploaded files. Learn more about the file search tool.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classFileSearchTool.BuilderA builder for FileSearchTool.
public final classFileSearchTool.FiltersA filter to apply based on file attributes.
public final classFileSearchTool.RankingOptionsRanking options for search.
-
Method Summary
Modifier and Type Method Description final JsonValue_type()The type of the file search tool. final List<String>vectorStoreIds()The IDs of the vector stores to search. final Optional<FileSearchTool.Filters>filters()A filter to apply based on file attributes. final Optional<Long>maxNumResults()The maximum number of results to return. final Optional<FileSearchTool.RankingOptions>rankingOptions()Ranking options for search. final JsonField<List<String>>_vectorStoreIds()The IDs of the vector stores to search. final JsonField<FileSearchTool.Filters>_filters()A filter to apply based on file attributes. final JsonField<Long>_maxNumResults()The maximum number of results to return. final JsonField<FileSearchTool.RankingOptions>_rankingOptions()Ranking options for search. final Map<String, JsonValue>_additionalProperties()final FileSearchToolvalidate()final FileSearchTool.BuildertoBuilder()Booleanequals(Object other)IntegerhashCode()StringtoString()final static FileSearchTool.Builderbuilder()Returns a mutable builder for constructing an instance of FileSearchTool. -
-
Method Detail
-
vectorStoreIds
final List<String> vectorStoreIds()
The IDs of the vector stores to search.
-
filters
final Optional<FileSearchTool.Filters> filters()
A filter to apply based on file attributes.
-
maxNumResults
final Optional<Long> maxNumResults()
The maximum number of results to return. This number should be between 1 and 50 inclusive.
-
rankingOptions
final Optional<FileSearchTool.RankingOptions> rankingOptions()
Ranking options for search.
-
_vectorStoreIds
final JsonField<List<String>> _vectorStoreIds()
The IDs of the vector stores to search.
-
_filters
final JsonField<FileSearchTool.Filters> _filters()
A filter to apply based on file attributes.
-
_maxNumResults
final JsonField<Long> _maxNumResults()
The maximum number of results to return. This number should be between 1 and 50 inclusive.
-
_rankingOptions
final JsonField<FileSearchTool.RankingOptions> _rankingOptions()
Ranking options for search.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
validate
final FileSearchTool validate()
-
toBuilder
final FileSearchTool.Builder toBuilder()
-
builder
final static FileSearchTool.Builder builder()
Returns a mutable builder for constructing an instance of FileSearchTool.
The following fields are required:
.vectorStoreIds()
-
-
-
-