Skip to content

@sqlrooms/ai-config / AnalysisSessionSchema

Type Alias: AnalysisSessionSchema

AnalysisSessionSchema = object

Type Declaration

NameTypeDescription
idstring-
namestring-
modelProviderstring-
modelstring-
customModelName?string-
baseUrl?string-
createdAt?Date-
uiMessagesobject[]-
messagesRevisionnumberRevision counter that increments when messages are deleted, used to force useChat reset
promptstringPer-session analysis prompt text
draftContextItemIds?string[]Per-session draft context selected in the composer before the next request.
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
agentSnapshots?Record<string, {[key: string]: unknown; agentName?: string; parentToolCallId: string; availableTools: object[]; settings?: { maxSteps?: number; model?: string; provider?: string; }; startedAt: number; }>Optional persisted agent devtools snapshots, keyed by parent toolCallId

Deprecated

Use ChatSessionSchema instead.