@ai-sdk/openai 3.0.57 → 3.0.58

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.
@@ -3441,7 +3441,8 @@ var openaiResponsesChunkSchema = lazySchema16(
3441
3441
  id: z18.string(),
3442
3442
  call_id: z18.string(),
3443
3443
  name: z18.string(),
3444
- arguments: z18.string()
3444
+ arguments: z18.string(),
3445
+ namespace: z18.string().nullish()
3445
3446
  }),
3446
3447
  z18.object({
3447
3448
  type: z18.literal("web_search_call"),
@@ -3583,7 +3584,8 @@ var openaiResponsesChunkSchema = lazySchema16(
3583
3584
  call_id: z18.string(),
3584
3585
  name: z18.string(),
3585
3586
  arguments: z18.string(),
3586
- status: z18.literal("completed")
3587
+ status: z18.literal("completed"),
3588
+ namespace: z18.string().nullish()
3587
3589
  }),
3588
3590
  z18.object({
3589
3591
  type: z18.literal("custom_tool_call"),
@@ -4043,7 +4045,8 @@ var openaiResponsesResponseSchema = lazySchema16(
4043
4045
  call_id: z18.string(),
4044
4046
  name: z18.string(),
4045
4047
  arguments: z18.string(),
4046
- id: z18.string()
4048
+ id: z18.string(),
4049
+ namespace: z18.string().nullish()
4047
4050
  }),
4048
4051
  z18.object({
4049
4052
  type: z18.literal("custom_tool_call"),
@@ -5579,7 +5582,8 @@ var OpenAIResponsesLanguageModel = class {
5579
5582
  input: part.arguments,
5580
5583
  providerMetadata: {
5581
5584
  [providerOptionsName]: {
5582
- itemId: part.id
5585
+ itemId: part.id,
5586
+ ...part.namespace != null && { namespace: part.namespace }
5583
5587
  }
5584
5588
  }
5585
5589
  });
@@ -6062,7 +6066,14 @@ var OpenAIResponsesLanguageModel = class {
6062
6066
  hasFunctionCall = true;
6063
6067
  controller.enqueue({
6064
6068
  type: "tool-input-end",
6065
- id: value.item.call_id
6069
+ id: value.item.call_id,
6070
+ ...value.item.namespace != null && {
6071
+ providerMetadata: {
6072
+ [providerOptionsName]: {
6073
+ namespace: value.item.namespace
6074
+ }
6075
+ }
6076
+ }
6066
6077
  });
6067
6078
  controller.enqueue({
6068
6079
  type: "tool-call",
@@ -6071,7 +6082,10 @@ var OpenAIResponsesLanguageModel = class {
6071
6082
  input: value.item.arguments,
6072
6083
  providerMetadata: {
6073
6084
  [providerOptionsName]: {
6074
- itemId: value.item.id
6085
+ itemId: value.item.id,
6086
+ ...value.item.namespace != null && {
6087
+ namespace: value.item.namespace
6088
+ }
6075
6089
  }
6076
6090
  }
6077
6091
  });