Class FileSearch

java.lang.Object
com.google.genai.gaos.models.interactions.FileSearch
All Implemented Interfaces:
Tool

public class FileSearch extends Object implements Tool
FileSearch

A tool that can be used by the model to search files.

  • Constructor Details

    • FileSearch

      public FileSearch(@Nullable List<String> fileSearchStoreNames, @Nullable String metadataFilter, @Nullable Integer topK)
    • FileSearch

      public FileSearch()
  • Method Details

    • fileSearchStoreNames

      public Optional<List<String>> fileSearchStoreNames()
      The file search store names to search.
    • metadataFilter

      public Optional<String> metadataFilter()
      Metadata filter to apply to the semantic retrieval documents and chunks.
    • topK

      public Optional<Integer> topK()
      The number of semantic retrieval chunks to retrieve.
    • type

      public String type()
      Specified by:
      type in interface Tool
    • builder

      public static FileSearch.Builder builder()
    • withFileSearchStoreNames

      public FileSearch withFileSearchStoreNames(@Nullable List<String> fileSearchStoreNames)
      The file search store names to search.
    • withMetadataFilter

      public FileSearch withMetadataFilter(@Nullable String metadataFilter)
      Metadata filter to apply to the semantic retrieval documents and chunks.
    • withTopK

      public FileSearch withTopK(@Nullable Integer topK)
      The number of semantic retrieval chunks to retrieve.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object