@mastra/inngest 1.8.10 → 1.8.11
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-inngest-agentic-workflow.d.ts","sourceRoot":"","sources":["../../src/durable-agent/create-inngest-agentic-workflow.ts"],"names":[],"mappings":"AA2BA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AA+BvC;;GAEG;AACH,MAAM,WAAW,oCAAoC;IACnD,8BAA8B;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,gDAAgD;IAChD,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAuCD,oCAAoC;AACpC,eAAO,MAAM,qBAAqB;aAChC,iBAAiB;aACjB,YAAY;CACJ,CAAC;AAEX,wBAAgB,mCAAmC,CAAC,OAAO,EAAE,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"create-inngest-agentic-workflow.d.ts","sourceRoot":"","sources":["../../src/durable-agent/create-inngest-agentic-workflow.ts"],"names":[],"mappings":"AA2BA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AA+BvC;;GAEG;AACH,MAAM,WAAW,oCAAoC;IACnD,8BAA8B;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,gDAAgD;IAChD,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAuCD,oCAAoC;AACpC,eAAO,MAAM,qBAAqB;aAChC,iBAAiB;aACjB,YAAY;CACJ,CAAC;AAEX,wBAAgB,mCAAmC,CAAC,OAAO,EAAE,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAoThG"}
|
package/dist/index.cjs
CHANGED
|
@@ -288,14 +288,12 @@ function createInngestDurableAgenticWorkflow(options) {
|
|
|
288
288
|
state: state.state
|
|
289
289
|
};
|
|
290
290
|
const observability = mastra?.observability?.getSelectedInstance({});
|
|
291
|
-
if (state.modelSpanData) (observability?.rebuildSpan(state.modelSpanData))?.
|
|
292
|
-
output: {
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
},
|
|
296
|
-
attributes: { finishReason: state.lastStepResult?.reason || "stop" }
|
|
291
|
+
if (state.modelSpanData) (observability?.rebuildSpan(state.modelSpanData))?.createTracker()?.endGeneration({
|
|
292
|
+
output: { text: finalText },
|
|
293
|
+
attributes: { finishReason: state.lastStepResult?.reason || "stop" },
|
|
294
|
+
usage: state.accumulatedUsage
|
|
297
295
|
});
|
|
298
|
-
if (state.agentSpanData) (observability?.rebuildSpan(state.agentSpanData))?.end({ output:
|
|
296
|
+
if (state.agentSpanData) (observability?.rebuildSpan(state.agentSpanData))?.end({ output: { text: finalText } });
|
|
299
297
|
if (pubsub) await (0, _mastra_core_agent_durable.emitFinishEvent)(pubsub, state.runId, {
|
|
300
298
|
output: finalOutput.output,
|
|
301
299
|
stepResult: finalOutput.stepResult
|