@mastra/core
Version:
Mastra is a framework for building AI-powered applications and agents with a modern TypeScript stack.
17 lines • 709 B
TypeScript
import type { MastraDBMessage } from '../state/types.js';
import type { AIV6Type, MessageSource } from '../types.js';
type AIV6AdapterContext = {
dbMessages?: MastraDBMessage[];
};
/**
* AIV6Adapter - Handles conversions between MastraDBMessage and AI SDK v6 formats.
*/
export declare class AIV6Adapter {
static toUIMessage(dbMsg: MastraDBMessage): AIV6Type.UIMessage;
static fromUIMessage(uiMsg: AIV6Type.UIMessage): MastraDBMessage;
static fromModelMessage(modelMsg: AIV6Type.ModelMessage, _messageSource?: MessageSource, context?: AIV6AdapterContext): MastraDBMessage;
private static toUIPart;
private static toUIPartFromV5;
}
export {};
//# sourceMappingURL=AIV6Adapter.d.ts.map