Skip to main content
Version: 0.20.0

Interface: ChatState

Defined in: chat/chatController.ts:98

The chat's state: plain data, the same for any view.

Properties​

PropertyTypeDescriptionDefined in
activitystring | nullThe label of the agent's latest action in this turn, and of a subagent's.chat/chatController.ts:104
busybooleanA turn is running.chat/chatController.ts:101
choice| { options: object[]; title: string; } | nullA choice waiting for an answer (without pick).chat/chatController.ts:128
closedboolean-chat/chatController.ts:132
commandDetailsobject[]The same, with what each does and what it takes after it, for a view that lists them.chat/chatController.ts:120
commandsstring[]The slash commands the person can type: the session's and the chat's own.chat/chatController.ts:118
contextPercentnumber | nullHow full the context window is (0-100), after the latest turn.chat/chatController.ts:114
extensionsExtensionsStatus | null-chat/chatController.ts:131
historystring[]The person's earlier lines, oldest first.chat/chatController.ts:124
languageLanguageThe kit's language now (it can change: setLanguage()).chat/chatController.ts:122
modeMode | null-chat/chatController.ts:108
panelChatPanel | nullA checkpoint waiting for an answer (panels: "state").chat/chatController.ts:126
runRunFolder | nullThe run in use, with runs.chat/chatController.ts:130
subagentActivitystring | null-chat/chatController.ts:105
suggestionstring | nullThe model's predicted next prompt.chat/chatController.ts:116
switchableModesreadonly Mode[]The modes the person can switch between (none in autonomous mode).chat/chatController.ts:110
todosTodo[] | nullThe agent's task list while any task is open.chat/chatController.ts:107
transcriptTranscriptEntry[]-chat/chatController.ts:99
turnsnumber-chat/chatController.ts:111
turnStartedAtnumber | null-chat/chatController.ts:102
usageSessionUsage | null-chat/chatController.ts:112