@mastra/core
Version:
Mastra is a framework for building AI-powered applications and agents with a modern TypeScript stack.
22 lines • 1.06 kB
TypeScript
import { ReadableStream } from 'stream/web';
import type { Run } from '../workflows/index.js';
import type { ChunkType } from './types.js';
export declare class MastraAgentNetworkStream extends ReadableStream<ChunkType> {
#private;
constructor({ createStream, run, }: {
createStream: (writer: WritableStream<ChunkType>) => Promise<ReadableStream<any>> | ReadableStream<any>;
run: Run;
});
get status(): Promise<"success" | "failed" | "suspended">;
get result(): Promise<import("..").WorkflowResult<import("zod").ZodObject<any, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
[x: string]: any;
}, {
[x: string]: any;
}>, import("zod").ZodType<any, import("zod").ZodTypeDef, any>, import("zod").ZodType<any, import("zod").ZodTypeDef, any>, import("..").Step<string, any, any, any, any, any, any>[]> | undefined>;
get usage(): Promise<{
inputTokens: number;
outputTokens: number;
totalTokens: number;
}>;
}
//# sourceMappingURL=MastraAgentNetworkStream.d.ts.map