@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/CHANGELOG.md +43 -0
- package/dist/_types/@internal_ai-v6/dist/index.d.ts +1695 -109
- package/dist/convert-messages.d.ts.map +1 -1
- package/dist/index.cjs +8 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/dist/transformers.d.ts.map +1 -1
- package/dist/ui.cjs +21 -4
- package/dist/ui.cjs.map +1 -1
- package/dist/ui.js +21 -4
- package/dist/ui.js.map +1 -1
- package/package.json +9 -9
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,
|