@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.
@@ -2531,6 +2531,11 @@ var OpenAIResponsesLanguageModel = class {
2531
2531
  id: import_v415.z.string(),
2532
2532
  status: import_v415.z.string().optional()
2533
2533
  }),
2534
+ import_v415.z.object({
2535
+ type: import_v415.z.literal("file_search_call"),
2536
+ id: import_v415.z.string(),
2537
+ status: import_v415.z.string().optional()
2538
+ }),
2534
2539
  import_v415.z.object({
2535
2540
  type: import_v415.z.literal("reasoning"),
2536
2541
  id: import_v415.z.string(),
@@ -2657,6 +2662,26 @@ var OpenAIResponsesLanguageModel = class {
2657
2662
  });
2658
2663
  break;
2659
2664
  }
2665
+ case "file_search_call": {
2666
+ content.push({
2667
+ type: "tool-call",
2668
+ toolCallId: part.id,
2669
+ toolName: "file_search",
2670
+ input: "",
2671
+ providerExecuted: true
2672
+ });
2673
+ content.push({
2674
+ type: "tool-result",
2675
+ toolCallId: part.id,
2676
+ toolName: "file_search",
2677
+ result: {
2678
+ type: "file_search_tool_result",
2679
+ status: part.status || "completed"
2680
+ },
2681
+ providerExecuted: true
2682
+ });
2683
+ break;
2684
+ }
2660
2685
  }
2661
2686
  }
2662
2687
  return {
@@ -3033,6 +3058,11 @@ var responseOutputItemAddedSchema = import_v415.z.object({
3033
3058
  type: import_v415.z.literal("computer_call"),
3034
3059
  id: import_v415.z.string(),
3035
3060
  status: import_v415.z.string()
3061
+ }),
3062
+ import_v415.z.object({
3063
+ type: import_v415.z.literal("file_search_call"),
3064
+ id: import_v415.z.string(),
3065
+ status: import_v415.z.string()
3036
3066
  })
3037
3067
  ])
3038
3068
  });
@@ -3066,6 +3096,11 @@ var responseOutputItemDoneSchema = import_v415.z.object({
3066
3096
  type: import_v415.z.literal("computer_call"),
3067
3097
  id: import_v415.z.string(),
3068
3098
  status: import_v415.z.literal("completed")
3099
+ }),
3100
+ import_v415.z.object({
3101
+ type: import_v415.z.literal("file_search_call"),
3102
+ id: import_v415.z.string(),
3103
+ status: import_v415.z.literal("completed")
3069
3104
  })
3070
3105
  ])
3071
3106
  });