Interface: ChatState
Defined in: chat/chatController.ts:98
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:104 |
busy | boolean | A turn is running. | chat/chatController.ts:101 |
choice | | { options: object[]; title: string; } | null | A choice waiting for an answer (without pick). | chat/chatController.ts:128 |
closed | boolean | - | chat/chatController.ts:132 |
commandDetails | object[] | The same, with what each does and what it takes after it, for a view that lists them. | chat/chatController.ts:120 |
commands | string[] | The slash commands the person can type: the session's and the chat's own. | chat/chatController.ts:118 |
contextPercent | number | null | How full the context window is (0-100), after the latest turn. | chat/chatController.ts:114 |
extensions | ExtensionsStatus | null | - | chat/chatController.ts:131 |
history | string[] | The person's earlier lines, oldest first. | chat/chatController.ts:124 |
language | Language | The kit's language now (it can change: setLanguage()). | chat/chatController.ts:122 |
mode | Mode | null | - | chat/chatController.ts:108 |
panel | ChatPanel | null | A checkpoint waiting for an answer (panels: "state"). | chat/chatController.ts:126 |
run | RunFolder | null | The run in use, with runs. | chat/chatController.ts:130 |
subagentActivity | string | null | - | chat/chatController.ts:105 |
suggestion | string | null | The model's predicted next prompt. | chat/chatController.ts:116 |
switchableModes | readonly Mode[] | The modes the person can switch between (none in autonomous mode). | chat/chatController.ts:110 |
todos | Todo[] | null | The agent's task list while any task is open. | chat/chatController.ts:107 |
transcript | TranscriptEntry[] | - | chat/chatController.ts:99 |
turns | number | - | chat/chatController.ts:111 |
turnStartedAt | number | null | - | chat/chatController.ts:102 |
usage | SessionUsage | null | - | chat/chatController.ts:112 |