← All types
AI & MLOb Object

ChatSessionState

A chat session for AI-assisted conversations

Fields

Unique session identifier

userId

UserID!Non-null

User who owns this session

Associated custom app (if any)

AI adapter used for this session

title

String!Non-null

Session title

Session context/purpose

Possible values (3)
CUSTOM_APP_DEV

Chat for developing custom apps (generates html, vue, lua)

GENERAL

General conversational chat

OPS

Today's operations assistant: assigned tools, proposals and to-do suggestions

Optional system prompt override

model

StringNullable

Optional model override

Messages in this session (visible to user)

Cumulative input tokens used across all messages

Cumulative output tokens generated across all messages

taskId

TaskIDNullable

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!
}