FileSearchTool class
File search tool for semantic search over files.
Enables the assistant to search through uploaded files using semantic search to find relevant information.
- Implemented types
- Annotations
-
- @immutable
Constructors
- FileSearchTool({int? maxNumResults, FileSearchRankingOptions? rankingOptions})
-
Creates a FileSearchTool.
const
-
FileSearchTool.fromJson(Map<
String, dynamic> json) -
Creates a FileSearchTool from JSON.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- maxNumResults → int?
-
The maximum number of results to return.
final
- rankingOptions → FileSearchRankingOptions?
-
The ranking options for file search.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{Object? maxNumResults = unsetCopyWithValue, Object? rankingOptions = unsetCopyWithValue}) → FileSearchTool - Creates a copy with the given fields replaced.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts to JSON.
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override