@mastra/core
Version:
Mastra is a framework for building AI-powered applications and agents with a modern TypeScript stack.
20 lines • 586 B
TypeScript
/**
* Converts a doGenerate result to a ReadableStream format.
* This is shared between V2 and V3 model wrappers since the content/result structure is compatible.
*/
export declare function createStreamFromGenerateResult(result: {
warnings: unknown[];
response?: {
id?: string;
modelId?: string;
timestamp?: Date;
};
content: Array<{
type: string;
[key: string]: unknown;
}>;
finishReason: unknown;
usage: unknown;
providerMetadata?: unknown;
}): ReadableStream;
//# sourceMappingURL=generate-to-stream.d.ts.map