Skip to content

@sqlrooms/ai-config / AnalysisSessionSchema

Type Alias: AnalysisSessionSchema

AnalysisSessionSchema = object

Type Declaration

NameTypeDescription
idstring-
namestring-
modelProviderstring-
modelstring-
customModelName?string-
baseUrl?string-
analysisResultsobject[]-
createdAt?Date-
uiMessagesobject[]-
messagesRevisionnumberRevision counter that increments when messages are deleted, used to force useChat reset
promptstringPer-session analysis prompt text
isRunningbooleanPer-session flag indicating if analysis is running
lastOpenedAt?numberLast time the session was opened/selected (epoch ms)
runContext?{[key: string]: unknown; items: object[]; primaryItemId?: string; primaryItemKind?: string; capturedAt: number; }Context captured when the current run started.
agentProgress?Record<string, unknown[]>Persisted sub-agent tool call trees, keyed by parent toolCallId