@ai-sdk/openai 2.0.26 → 2.0.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -359,23 +359,11 @@ var compoundFilterSchema = z3.object({
359
359
  });
360
360
  var filtersSchema = z3.union([comparisonFilterSchema, compoundFilterSchema]);
361
361
  var fileSearchArgsSchema = z3.object({
362
- /**
363
- * List of vector store IDs to search through. If not provided, searches all available vector stores.
364
- */
365
362
  vectorStoreIds: z3.array(z3.string()).optional(),
366
- /**
367
- * Maximum number of search results to return. Defaults to 10.
368
- */
369
363
  maxNumResults: z3.number().optional(),
370
- /**
371
- * Ranking options for the search.
372
- */
373
364
  ranking: z3.object({
374
365
  ranker: z3.enum(["auto", "default-2024-08-21"]).optional()
375
366
  }).optional(),
376
- /**
377
- * A filter to apply based on file attributes.
378
- */
379
367
  filters: filtersSchema.optional()
380
368
  });
381
369
  var fileSearch = createProviderDefinedToolFactory({
@@ -1878,9 +1866,51 @@ var webSearch = (args = {}) => {
1878
1866
 
1879
1867
  // src/openai-tools.ts
1880
1868
  var openaiTools = {
1869
+ /**
1870
+ * The Code Interpreter tool allows models to write and run Python code in a
1871
+ * sandboxed environment to solve complex problems in domains like data analysis,
1872
+ * coding, and math.
1873
+ *
1874
+ * @param container - The container to use for the code interpreter.
1875
+ *
1876
+ * Must have name `code_interpreter`.
1877
+ */
1881
1878
  codeInterpreter,
1879
+ /**
1880
+ * File search is a tool available in the Responses API. It enables models to
1881
+ * retrieve information in a knowledge base of previously uploaded files through
1882
+ * semantic and keyword search.
1883
+ *
1884
+ * Must have name `file_search`.
1885
+ *
1886
+ * @param vectorStoreIds - The vector store IDs to use for the file search.
1887
+ * @param maxNumResults - The maximum number of results to return.
1888
+ * @param ranking - The ranking options to use for the file search.
1889
+ * @param filters - The filters to use for the file search.
1890
+ */
1882
1891
  fileSearch,
1892
+ /**
1893
+ * Web search allows models to access up-to-date information from the internet
1894
+ * and provide answers with sourced citations.
1895
+ *
1896
+ * Must have name `web_search_preview`.
1897
+ *
1898
+ * @param searchContextSize - The search context size to use for the web search.
1899
+ * @param userLocation - The user location to use for the web search.
1900
+ *
1901
+ * @deprecated Use `webSearch` instead.
1902
+ */
1883
1903
  webSearchPreview,
1904
+ /**
1905
+ * Web search allows models to access up-to-date information from the internet
1906
+ * and provide answers with sourced citations.
1907
+ *
1908
+ * Must have name `web_search`.
1909
+ *
1910
+ * @param filters - The filters to use for the web search.
1911
+ * @param searchContextSize - The search context size to use for the web search.
1912
+ * @param userLocation - The user location to use for the web search.
1913
+ */
1884
1914
  webSearch
1885
1915
  };
1886
1916