Table of Contents

Class AskQuestionsRequest

Namespace
JD.AI.Core.Questions
Assembly
JD.AI.Core.dll

A structured request for the TUI to present a sequence of questions to the user and collect their answers before resuming agent execution.

public sealed class AskQuestionsRequest
Inheritance
AskQuestionsRequest
Inherited Members

Properties

AllowCancel

When true an Esc/Cancel gesture is offered; false forces the user to answer.

public bool AllowCancel { get; init; }

Property Value

bool

Context

Optional rationale shown below the title to help the user understand why these questions are being asked (e.g., "to choose the correct scaffold and avoid rework").

public string? Context { get; init; }

Property Value

string

Id

Unique identifier for correlating the request with its result.

public string Id { get; init; }

Property Value

string

Questions

Ordered list of questions to present to the user.

public IReadOnlyList<Question> Questions { get; init; }

Property Value

IReadOnlyList<Question>

SubmitLabel

Label for the final submission button (defaults to "Continue").

public string SubmitLabel { get; init; }

Property Value

string

Title

Short title displayed at the top of the questionnaire panel (e.g., "Need a bit more info").

public string Title { get; init; }

Property Value

string