@mastra/core
Version:
Mastra is a framework for building AI-powered applications and agents with a modern TypeScript stack.
20 lines • 1 kB
TypeScript
import type { InferUIMessageChunk, TextStreamPart, ToolSet, UIMessage, IdGenerator } from '../../../../_types/@internal_ai-sdk-v5/dist/index.js';
export declare function getResponseUIMessageId({ originalMessages, responseMessageId, }: {
originalMessages: UIMessage[] | undefined;
responseMessageId: string | IdGenerator | undefined;
}): string | undefined;
export declare function convertFullStreamChunkToUIMessageStream<UI_MESSAGE extends UIMessage>({ part, messageMetadataValue, sendReasoning, sendSources, onError, sendStart, sendFinish, responseMessageId, }: {
part: TextStreamPart<ToolSet> | {
type: 'tool-output';
toolCallId: string;
output: any;
};
messageMetadataValue?: unknown;
sendReasoning?: boolean;
sendSources?: boolean;
onError: (error: unknown) => string;
sendStart?: boolean;
sendFinish?: boolean;
responseMessageId?: string;
}): InferUIMessageChunk<UI_MESSAGE> | undefined;
//# sourceMappingURL=ui-message.d.ts.map