@mastra/ai-sdk 1.4.0-alpha.1 → 1.4.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.
package/dist/index.js CHANGED
@@ -12277,6 +12277,14 @@ function createAgentStreamToAISDKTransformer(convertMastraChunkToAISDK, {
12277
12277
  if (chunk.type === "finish") {
12278
12278
  finishEventSent = true;
12279
12279
  }
12280
+ if (chunk.type === "object-result") {
12281
+ controller.enqueue({
12282
+ type: "data-structured-output",
12283
+ data: {
12284
+ object: chunk.object
12285
+ }
12286
+ });
12287
+ }
12280
12288
  const part = convertMastraChunkToAISDK({ chunk, mode: "stream" });
12281
12289
  const transformedChunk = convertFullStreamChunkToUIMessageStream({
12282
12290
  part,