Interface: ChatSettings
Defined in: chat/chatController.ts:33
What the controller needs besides the session: the chats' options it acts on.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
agentLabel? | string | The label before the agent's reply in the session log. | chat/chatController.ts:43 |
commands? | Record<string, () => void | Promise<void>> | The view's own commands, by name without the slash (a terminal's /copy): logged and kept in the history like any line, then run by the view. | chat/chatController.ts:65 |
exitCommands? | readonly string[] | Lines (trimmed, case-insensitive) that end the chat. Default /exit, /quit. | chat/chatController.ts:35 |
formatAction? | (toolName, input) => string | Tool call labels and folded-group phrases on top of the kit's and the extensions'. | chat/chatController.ts:53 |
historyLimit? | number | - | chat/chatController.ts:46 |
historyPath? | string | The person's lines, kept across runs (↑/↓). | chat/chatController.ts:45 |
initialPrompt? | string | The first turn, sent before the person types anything, unless the run resumes a conversation. | chat/chatController.ts:37 |
modeControl? | ModeControl | Without one, the session's mode control and tool labels. | chat/chatController.ts:50 |
panels? | "view" | "state" | Who asks the person at a checkpoint: "view" (the default) leaves the interaction port to the view (a terminal's panels); "state" installs the controller's own, whose panel is the state's panel, answered with answer(). | chat/chatController.ts:71 |
pick? | (title, options) => Promise<string | null> | How a choice in place of the prompt is asked (the conversations of /resume): a terminal view asks it its way; without it, it's the state's choice, answered with choose(). | chat/chatController.ts:63 |
promptLabel? | string | The label before the person's lines in the session log. | chat/chatController.ts:41 |
promptSuggestions? | boolean | The SDK's prompt suggestions (on by default). | chat/chatController.ts:58 |
runQuery? | (prompt, options) => AgentRun | Runs the agent: the SDK's (runQuery()) by default; another for tests, or a host of its own. | chat/chatController.ts:56 |
runsDir? | string | With a session opener: where the runs are (required then). | chat/chatController.ts:48 |
sessionLogPath? | string | The session log without runs (with runs, each run's session.log). | chat/chatController.ts:39 |
toolLabels? | Readonly<Record<string, ToolLabel>> | - | chat/chatController.ts:51 |
toolPhrase? | (toolName) => ToolPhrase | undefined | - | chat/chatController.ts:54 |