Enable File Search
The file search tool can be enabled via thechatModelOptions parameter of the
Agent constructor.
fileSearchConfig.vectorStoreIds is supplied, the provider restricts
searches to those stores. You can also omit the list and rely on the provider’s
defaults.
Streaming Events
Results stream under thefile_search metadata key:
query, document, score, and provider-specific
metadata that you can surface in your UI.

