@valerypopoff/rivet2-core 2.29.0 → 2.32.0

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.
@@ -1186,7 +1186,7 @@ function coerceToChatMessageRaw(value) {
1186
1186
  if (value.type === "string") {
1187
1187
  return { type: "user", message: value.value };
1188
1188
  }
1189
- if (value.type === "object" && "type" in value.value && "message" in value.value && typeof value.value.type === "string" && typeof value.value.message === "string") {
1189
+ if (value.type === "object" && "type" in value.value && "message" in value.value && typeof value.value.type === "string" && (typeof value.value.message === "string" || Array.isArray(value.value.message))) {
1190
1190
  return value.value;
1191
1191
  }
1192
1192
  if (value.type === "any") {