Skip to content

Interface: GenerateOntologyRequest

@kortexya/reasoninglayer


@kortexya/reasoninglayer / Ontology / GenerateOntologyRequest

Interface: GenerateOntologyRequest

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

Request body for ontology generation.

Remarks

Supports multi-turn clarification via session_id and answers. On first call, provide only prompt. If the response status is "needs_clarification", supply session_id and answers on the next call.

Properties

answers?

optional answers: object | null

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

Answers to clarification questions (2nd call).


prompt

prompt: string

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

The user’s task description.


sessionId?

optional sessionId: string | null

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

Session ID for multi-turn clarification.


tenantId?

optional tenantId: string | null

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

Tenant ID (overridden by X-Tenant-Id header when present).