Skip to content

Interface: RuleDraftClarificationQuestionDto

@kortexya/reasoninglayer


@kortexya/reasoninglayer / RuleDraftClarificationQuestionDto

Interface: RuleDraftClarificationQuestionDto

Section titled “Interface: RuleDraftClarificationQuestionDto”

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

A clarification question posed while drafting rules.

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.

optional choices?: unknown[] | null

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

Allowed choices for the answer (if applicable).


optional default?: string | null

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

Default answer value.


field: string

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

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


id: string

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

Unique question identifier.


question: string

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

The question text.


type: string

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

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