Skip to content

SelectPromptConfig

Single-selection prompt — maps to enum flags or any flag with choices. Part of PromptConfig.

Signatures

ts
interface SelectPromptConfig extends PromptConfigBase {}

Members

Properties

choices

Available choices. When omitted for enum flags, the enum values from the flag schema are used automatically.

ts
choices?: readonly SelectChoice[];

kind

Discriminator identifying this as a single-selection prompt.

ts
kind: "select";

message

The question displayed to the user.

ts
message: string;

See Also

Released under the MIT License.