Appearance
ChatSessionState
Type: Object
A chat session for AI-assisted conversations
Fields
| Name | Type | Args | Description | Deprecated |
|---|---|---|---|---|
| adapterId | AIAdapterID! | AI adapter used for this session | ||
| context | ChatSessionContext! | Session context/purpose | ||
| createdAt | String! | Session creation timestamp (ISO8601) | ||
| customAppId | CustomAppID | Associated custom app (if any) | ||
| id | ChatSessionID! | Unique session identifier | ||
| messages | [ChatMessageState!]! | Messages in this session (visible to user) | ||
| model | String | Optional model override | ||
| systemPrompt | String | Optional system prompt override | ||
| title | String! | Session title | ||
| totalInputTokens | Int! | Cumulative input tokens used across all messages | ||
| totalOutputTokens | Int! | Cumulative output tokens generated across all messages | ||
| updatedAt | String! | Last update timestamp (ISO8601) | ||
| userId | UserID! | User who owns this session |