Skip to content

Type Alias: SelectMessage

Makaio Framework


Makaio Framework / services-core / SelectMessage

SelectMessage = typeof messages.$inferSelect

Defined in: ../../../packages/services/core/src/session/messages/schema.ts:132

Type for a selected message row.

type SelectMessage = {
agentId: string | null;
sessionId: string;
adapterSessionId: string | null;
role: 'user' | 'assistant';
blocks: string;
messageId: string;
turnId: string | null;
origin: 'text' | 'voice' | 'compact' | null;
timestamp: number;
contentText: string;
adapterMessageId: string | null;
editOf: string | null;
};