@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.
@@ -2551,6 +2551,11 @@ var OpenAIResponsesLanguageModel = class {
2551
2551
  id: z15.string(),
2552
2552
  status: z15.string().optional()
2553
2553
  }),
2554
+ z15.object({
2555
+ type: z15.literal("file_search_call"),
2556
+ id: z15.string(),
2557
+ status: z15.string().optional()
2558
+ }),
2554
2559
  z15.object({
2555
2560
  type: z15.literal("reasoning"),
2556
2561
  id: z15.string(),
@@ -2677,6 +2682,26 @@ var OpenAIResponsesLanguageModel = class {
2677
2682
  });
2678
2683
  break;
2679
2684
  }
2685
+ case "file_search_call": {
2686
+ content.push({
2687
+ type: "tool-call",
2688
+ toolCallId: part.id,
2689
+ toolName: "file_search",
2690
+ input: "",
2691
+ providerExecuted: true
2692
+ });
2693
+ content.push({
2694
+ type: "tool-result",
2695
+ toolCallId: part.id,
2696
+ toolName: "file_search",
2697
+ result: {
2698
+ type: "file_search_tool_result",
2699
+ status: part.status || "completed"
2700
+ },
2701
+ providerExecuted: true
2702
+ });
2703
+ break;
2704
+ }
2680
2705
  }
2681
2706
  }
2682
2707
  return {
@@ -3053,6 +3078,11 @@ var responseOutputItemAddedSchema = z15.object({
3053
3078
  type: z15.literal("computer_call"),
3054
3079
  id: z15.string(),
3055
3080
  status: z15.string()
3081
+ }),
3082
+ z15.object({
3083
+ type: z15.literal("file_search_call"),
3084
+ id: z15.string(),
3085
+ status: z15.string()
3056
3086
  })
3057
3087
  ])
3058
3088
  });
@@ -3086,6 +3116,11 @@ var responseOutputItemDoneSchema = z15.object({
3086
3116
  type: z15.literal("computer_call"),
3087
3117
  id: z15.string(),
3088
3118
  status: z15.literal("completed")
3119
+ }),
3120
+ z15.object({
3121
+ type: z15.literal("file_search_call"),
3122
+ id: z15.string(),
3123
+ status: z15.literal("completed")
3089
3124
  })
3090
3125
  ])
3091
3126
  });