Skip to content

Interface: DraftRulesRequest

@kortexya/reasoninglayer


@kortexya/reasoninglayer / Inference / DraftRulesRequest

Interface: DraftRulesRequest

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

Request an LLM-assisted draft of one or more inference rules.

Remarks

Supports multi-turn clarification. On the first call, provide only description. If the response status is "needs_clarification", answer the returned questions and call again with the echoed sessionId and an answers map keyed by each question’s field. The server is stateless — the session ID is client-echoed.

Properties

answers?

optional answers: Record<string, string> | null

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

Answers to clarification questions, keyed by question field (second call).


description

description: string

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

The desired rule(s), in plain language.


sessionId?

optional sessionId: string | null

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

Session ID for multi-turn clarification (echo the value from the previous response).