@ai-sdk/openai 2.0.0 → 2.0.1

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
@@ -2451,6 +2451,11 @@ var OpenAIResponsesLanguageModel = class {
2451
2451
  id: z14.string(),
2452
2452
  status: z14.string().optional()
2453
2453
  }),
2454
+ z14.object({
2455
+ type: z14.literal("file_search_call"),
2456
+ id: z14.string(),
2457
+ status: z14.string().optional()
2458
+ }),
2454
2459
  z14.object({
2455
2460
  type: z14.literal("reasoning"),
2456
2461
  id: z14.string(),
@@ -2577,6 +2582,26 @@ var OpenAIResponsesLanguageModel = class {
2577
2582
  });
2578
2583
  break;
2579
2584
  }
2585
+ case "file_search_call": {
2586
+ content.push({
2587
+ type: "tool-call",
2588
+ toolCallId: part.id,
2589
+ toolName: "file_search",
2590
+ input: "",
2591
+ providerExecuted: true
2592
+ });
2593
+ content.push({
2594
+ type: "tool-result",
2595
+ toolCallId: part.id,
2596
+ toolName: "file_search",
2597
+ result: {
2598
+ type: "file_search_tool_result",
2599
+ status: part.status || "completed"
2600
+ },
2601
+ providerExecuted: true
2602
+ });
2603
+ break;
2604
+ }
2580
2605
  }
2581
2606
  }
2582
2607
  return {
@@ -2953,6 +2978,11 @@ var responseOutputItemAddedSchema = z14.object({
2953
2978
  type: z14.literal("computer_call"),
2954
2979
  id: z14.string(),
2955
2980
  status: z14.string()
2981
+ }),
2982
+ z14.object({
2983
+ type: z14.literal("file_search_call"),
2984
+ id: z14.string(),
2985
+ status: z14.string()
2956
2986
  })
2957
2987
  ])
2958
2988
  });
@@ -2986,6 +3016,11 @@ var responseOutputItemDoneSchema = z14.object({
2986
3016
  type: z14.literal("computer_call"),
2987
3017
  id: z14.string(),
2988
3018
  status: z14.literal("completed")
3019
+ }),
3020
+ z14.object({
3021
+ type: z14.literal("file_search_call"),
3022
+ id: z14.string(),
3023
+ status: z14.literal("completed")
2989
3024
  })
2990
3025
  ])
2991
3026
  });