TypeScript API / @laikacms/server/ai / AiSession
Interface: AiSession
AI Chat Session Stores conversation history for a specific document
Properties
createdAt
ts
createdAt: number;Session creation timestamp
documentSlug
ts
documentSlug: string;Document slug/path this session is associated with
id
ts
id: string;messages
ts
messages: AiMessage[];Conversation messages
title?
ts
optional title?: string;Session title (auto-generated from first message or user-defined)
updatedAt
ts
updatedAt: number;Last update timestamp
userId
ts
userId: string;User ID who owns this session