Record Class Tool.FileSearch
java.lang.Object
java.lang.Record
io.github.glaforge.gemini.interactions.model.Tool.FileSearch
- Record Components:
type- The type of tool (must be "file_search").fileSearchStoreNames- List of file search store names.topK- Number of results to return.metadataFilter- Filter for metadata.
- All Implemented Interfaces:
Tool
- Enclosing interface:
Tool
public static record Tool.FileSearch(String type, List<String> fileSearchStoreNames, Integer topK, String metadataFilter)
extends Record
implements Tool
Tool definition for File Search.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.github.glaforge.gemini.interactions.model.Tool
Tool.AllowedTools, Tool.CodeExecution, Tool.ComputerUse, Tool.FileSearch, Tool.Function, Tool.GoogleSearch, Tool.McpServer, Tool.Mode, Tool.ToolChoiceConfig, Tool.UrlContext -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefileSearchStoreNamesrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of themetadataFilterrecord component.topK()Returns the value of thetopKrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
FileSearch
public FileSearch(String type, List<String> fileSearchStoreNames, Integer topK, String metadataFilter) Creates an instance of aFileSearchrecord class.- Parameters:
type- the value for thetyperecord componentfileSearchStoreNames- the value for thefileSearchStoreNamesrecord componenttopK- the value for thetopKrecord componentmetadataFilter- the value for themetadataFilterrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
type
Returns the value of thetyperecord component. -
fileSearchStoreNames
Returns the value of thefileSearchStoreNamesrecord component.- Returns:
- the value of the
fileSearchStoreNamesrecord component
-
topK
Returns the value of thetopKrecord component.- Returns:
- the value of the
topKrecord component
-
metadataFilter
Returns the value of themetadataFilterrecord component.- Returns:
- the value of the
metadataFilterrecord component
-