Type Alias: SessionMessage
Makaio Framework / contracts / SessionMessage
Type Alias: SessionMessage
Section titled “Type Alias: SessionMessage”SessionMessage =
z.infer<typeofSessionMessageSchema>
Defined in: ../../../packages/contracts/src/session/schemas/message.ts:63
Type Composition
Section titled “Type Composition”SessionMessagez.infer<typeof SessionMessageSchema>typeof SessionMessageSchema
Resolved Shape
Section titled “Resolved Shape”type SessionMessage = { messageId: string; turnId: string | null; sessionId: string; role: 'user' | 'assistant'; contentText: string; blocks: Array<{ type: 'text'; content: string; } | { type: 'image'; source: { type: 'base64'; data: string; mimeType: string; } | { type: 'url'; url: string; mimeType?: string | undefined; }; } | { type: 'document'; source: { type: 'base64'; data: string; mimeType: string; } | { type: 'url'; url: string; mimeType?: string | undefined; }; } | { type: 'attachment'; fileName: string; filePath: string; source: { type: 'base64'; data: string; mimeType: string; } | { type: 'url'; url: string; mimeType?: string | undefined; }; attachmentType: 'file' | 'directory'; displayName?: string | undefined; } | { type: 'reasoning'; content: string; metadata?: Record<string, unknown> | undefined; } | { type: 'tool_call'; toolCallId: string; name: string; args: Record<string, unknown>; } | { type: 'tool_output'; toolCallId: string; output: string; isError?: boolean | undefined; }>; timestamp: number; agentId?: string | undefined; adapterSessionId?: string | undefined; adapterMessageId?: string | undefined; editOf?: string | undefined; origin?: 'text' | 'voice' | 'compact' | undefined;};