ai 5.0.0-beta.27 → 5.0.0-beta.28

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
@@ -879,7 +879,8 @@ function prepareToolsAndToolChoice({
879
879
  type: "function",
880
880
  name: name16,
881
881
  description: tool3.description,
882
- inputSchema: asSchema(tool3.inputSchema).jsonSchema
882
+ inputSchema: asSchema(tool3.inputSchema).jsonSchema,
883
+ providerOptions: tool3.providerOptions
883
884
  };
884
885
  case "provider-defined":
885
886
  return {
@@ -8752,8 +8753,8 @@ var AbstractChat = class {
8752
8753
  } : part
8753
8754
  );
8754
8755
  }
8755
- if (this.status !== "streaming" && this.status !== "submitted" && ((_a16 = this.sendAutomaticallyWhen) == null ? void 0 : _a16.call(this, { messages }))) {
8756
- await this.makeRequest({
8756
+ if (this.status !== "streaming" && this.status !== "submitted" && ((_a16 = this.sendAutomaticallyWhen) == null ? void 0 : _a16.call(this, { messages: this.state.messages }))) {
8757
+ this.makeRequest({
8757
8758
  trigger: "submit-message",
8758
8759
  messageId: (_b = this.lastMessage) == null ? void 0 : _b.id
8759
8760
  });