Interface: ChatState
Defined in: chat/chatController.ts:97
The chat's state: plain data, the same for any view.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
activity | string | null | The label of the agent's latest action in this turn, and of a subagent's. | chat/chatController.ts:103 |
busy | boolean | A turn is running. | chat/chatController.ts:100 |
choice | | { options: object[]; title: string; } | null | A choice waiting for an answer (without pick). | chat/chatController.ts:127 |
closed | boolean | - | chat/chatController.ts:131 |
commandDetails | object[] | The same, with what each does and what it takes after it, for a view that lists them. | chat/chatController.ts:119 |
commands | string[] | The slash commands the person can type: the session's and the chat's own. | chat/chatController.ts:117 |
contextPercent | number | null | How full the context window is (0-100), after the latest turn. | chat/chatController.ts:113 |
extensions | ExtensionsStatus | null | - | chat/chatController.ts:130 |
history | string[] | The person's earlier lines, oldest first. | chat/chatController.ts:123 |
language | Language | The kit's language now (it can change: setLanguage()). | chat/chatController.ts:121 |
mode | Mode | null | - | chat/chatController.ts:107 |
panel | ChatPanel | null | A checkpoint waiting for an answer (panels: "state"). | chat/chatController.ts:125 |
run | RunFolder | null | The run in use, with runs. | chat/chatController.ts:129 |
subagentActivity | string | null | - | chat/chatController.ts:104 |
suggestion | string | null | The model's predicted next prompt. | chat/chatController.ts:115 |
switchableModes | readonly Mode[] | The modes the person can switch between (none in autonomous mode). | chat/chatController.ts:109 |
todos | Todo[] | null | The agent's task list while any task is open. | chat/chatController.ts:106 |
transcript | TranscriptEntry[] | - | chat/chatController.ts:98 |
turns | number | - | chat/chatController.ts:110 |
turnStartedAt | number | null | - | chat/chatController.ts:101 |
usage | SessionUsage | null | - | chat/chatController.ts:111 |