UNPKG

@mastra/core

Version:

Mastra is a framework for building AI-powered applications and agents with a modern TypeScript stack.

20 lines 978 B
import { ReadableStream } from 'node:stream/web'; import type { Run, Step } from '../workflows/index.js'; import type { ChunkType } from './types.js'; export declare class MastraWorkflowStream<TState, TInput, TOutput, TSteps extends Step<string, any, any>[]> extends ReadableStream<ChunkType> { #private; constructor({ createStream, run, }: { createStream: (writer: WritableStream<ChunkType>) => Promise<ReadableStream<any>> | ReadableStream<any>; run: Run<any, TSteps, TState, TInput, TOutput>; }); get status(): Promise<"success" | "suspended" | "failed" | "tripwire" | "paused">; get result(): Promise<import("../workflows").WorkflowResult<TState, TInput, TOutput, TSteps> | undefined>; get usage(): Promise<{ inputTokens: number; outputTokens: number; totalTokens: number; cachedInputTokens: number; cacheCreationInputTokens: number; }>; } //# sourceMappingURL=MastraWorkflowStream.d.ts.map