Interface: GoogleFileSearchTool
@providerprotocol/ai / google / GoogleFileSearchTool
Interface: GoogleFileSearchTool
Section titled “Interface: GoogleFileSearchTool”Defined in: src/providers/google/types.ts:749
File search (RAG) tool for document retrieval.
Enables Gemini to search through uploaded documents using semantic search on FileSearchStore.
Pricing:
- Embeddings at indexing: $0.15 per 1M tokens
- Storage and query embeddings: Free
Note: Cannot be combined with other built-in tools.
Example
Section titled “Example”const tool: GoogleFileSearchTool = { fileSearch: { fileSearchStoreNames: ['fileSearchStores/abc123'], },};Properties
Section titled “Properties”fileSearch
Section titled “fileSearch”fileSearch:
object
Defined in: src/providers/google/types.ts:751
File search configuration
fileSearchStoreNames
Section titled “fileSearchStoreNames”fileSearchStoreNames:
string[]
FileSearchStore names to query
metadataFilter?
Section titled “metadataFilter?”
optionalmetadataFilter:string
AIP-160 filter syntax for metadata filtering