ChatSessionState
A chat session for AI-assisted conversations
Fields
Unique session identifier
User who owns this session
Associated custom app (if any)
AI adapter used for this session
Session title
Session context/purpose
Possible values (3)
CUSTOM_APP_DEVChat for developing custom apps (generates html, vue, lua)
GENERALGeneral conversational chat
OPSToday's operations assistant: assigned tools, proposals and to-do suggestions
Optional system prompt override
Optional model override
Messages in this session (visible to user)
Cumulative input tokens used across all messages
Cumulative output tokens generated across all messages
OPS: the task this conversation is about
Session creation timestamp (ISO8601)
Last update timestamp (ISO8601)
Referenced by (4)
Exact type SDL
"""A chat session for AI-assisted conversations"""
type ChatSessionState {
"""Unique session identifier"""
id: ChatSessionID!
"""User who owns this session"""
userId: UserID!
"""Associated custom app (if any)"""
customAppId: CustomAppID
"""AI adapter used for this session"""
adapterId: AIAdapterID!
"""Session title"""
title: String!
"""Session context/purpose"""
context: ChatSessionContext!
"""Optional system prompt override"""
systemPrompt: String
"""Optional model override"""
model: String
"""Messages in this session (visible to user)"""
messages: [ChatMessageState!]!
"""Cumulative input tokens used across all messages"""
totalInputTokens: Int!
"""Cumulative output tokens generated across all messages"""
totalOutputTokens: Int!
"""OPS: the task this conversation is about"""
taskId: TaskID
"""Session creation timestamp (ISO8601)"""
createdAt: String!
"""Last update timestamp (ISO8601)"""
updatedAt: String!
}