ai 5.0.29 → 5.0.30

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
@@ -9992,6 +9992,13 @@ async function validateUIMessages({
9992
9992
  dataSchemas,
9993
9993
  tools
9994
9994
  }) {
9995
+ if (messages == null) {
9996
+ throw new InvalidArgumentError({
9997
+ parameter: "messages",
9998
+ value: messages,
9999
+ message: "messages parameter must be provided"
10000
+ });
10001
+ }
9995
10002
  const validatedMessages = await validateTypes2({
9996
10003
  value: messages,
9997
10004
  schema: z10.array(uiMessageSchema)