Skip to content

Interface: CreateCompetencyQuestionRequest

@kortexya/reasoninglayer


@kortexya/reasoninglayer / CreateCompetencyQuestionRequest

Interface: CreateCompetencyQuestionRequest

Section titled “Interface: CreateCompetencyQuestionRequest”

Defined in: src/types/ontology.ts:380

Request to record a competency question.

A question a person writes is stored as accepted at once. The engine refuses an empty or blank question with 400. It stores any kind other than pitfall as positive.

optional description?: string | null

Defined in: src/types/ontology.ts:391

Longer text — a use case’s description.


optional kind?: CompetencyQuestionKind | null

Defined in: src/types/ontology.ts:389

positive (the default) or pitfall.


optional osfql?: string | null

Defined in: src/types/ontology.ts:387

Executable OSFQL. Optional: a question that nobody has compiled yet is still a requirement, but the engine cannot measure it.


question: string

Defined in: src/types/ontology.ts:382

The question in the user’s language. Must not be blank.


optional sorts?: string[]

Defined in: src/types/ontology.ts:393

Sorts the question is about.


optional useCase?: string | null

Defined in: src/types/ontology.ts:398

The use case this question tests (a use_case entry’s id). For a use_case entry, its own id (defaults to a key derived from the text).