Skip to main content
Version: 0.22.0

Type Alias: ChatQuestion

type ChatQuestion =
| {
kind: "decision" | "manual" | "text";
prompt: ApprovalPrompt;
}
| {
choice: ChoiceSettings;
kind: "choice";
prompt: ApprovalPrompt;
}
| {
form: FormRequest;
kind: "form";
prompt: ApprovalPrompt;
};

Defined in: chat/chatController.ts:96

What a checkpoint asks: an approval, a confirmation after a manual step, free text, or a choice.

Union Members​

Type Literal​

{
kind: "decision" | "manual" | "text";
prompt: ApprovalPrompt;
}

Type Literal​

{
choice: ChoiceSettings;
kind: "choice";
prompt: ApprovalPrompt;
}

Type Literal​

{
form: FormRequest;
kind: "form";
prompt: ApprovalPrompt;
}

A form an MCP server asks for (#58): answered with answer(id, JSON.stringify({ action, content })).