Skip to content

Interface: RuleDraftClarificationQuestionDto

@kortexya/reasoninglayer


@kortexya/reasoninglayer / Inference / RuleDraftClarificationQuestionDto

Interface: RuleDraftClarificationQuestionDto

Defined in: src/types/inference.ts:949

A clarification question posed while drafting rules.

Remarks

Mirrors the ontology/generate question contract so a frontend can reuse one form component across authoring flows. See import(’./ontology.js’).OntologyClarificationQuestionDto and import(’./scenarios.js’).ClarificationQuestionDto, its siblings.

Properties

choices?

optional choices: unknown[] | null

Defined in: src/types/inference.ts:951

Allowed choices for the answer (if applicable).


default?

optional default: string | null

Defined in: src/types/inference.ts:953

Default answer value.


field

field: string

Defined in: src/types/inference.ts:955

Field name this question relates to — the key to use in DraftRulesRequest.answers.


id

id: string

Defined in: src/types/inference.ts:957

Unique question identifier.


question

question: string

Defined in: src/types/inference.ts:959

The question text.


type

type: string

Defined in: src/types/inference.ts:961

Question type (e.g. "text", "choice").