UNPKG

@mastra/core

Version:

Mastra is the Typescript framework for building AI agents and assistants. It’s used by some of the largest companies in the world to build internal AI automation tooling and customer-facing agents.

19 lines 910 B
import { ReadableStream } from 'stream/web'; import type z from 'zod'; import type { Run, Step } from '../workflows/index.js'; import type { ChunkType } from './types.js'; export declare class MastraWorkflowStream<TInput extends z.ZodType<any>, TOutput extends z.ZodType<any>, 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, TInput, TOutput>; }); get status(): Promise<"success" | "failed" | "suspended">; get result(): Promise<import("..").WorkflowResult<TInput, TOutput, TSteps> | undefined>; get usage(): Promise<{ inputTokens: number; outputTokens: number; totalTokens: number; }>; } //# sourceMappingURL=MastraWorkflowStream.d.ts.map