Skip to content

fileSearchTool

function fileSearchTool(vectorStoreIds, options?): HostedTool

Adds file search abilities to your agent

Parameter Type Description

vectorStoreIds

string | string[]

The IDs of the vector stores to search.

options?

Partial<Omit<FileSearchTool, "type" | "vectorStoreId">>

Additional configuration for the file search like specifying the maximum number of results to return.

HostedTool

a file search tool definition