Skip to content

Interface: DraftRulesRequest

@kortexya/reasoninglayer


@kortexya/reasoninglayer / DraftRulesRequest

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

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

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.

optional answers?: Record<string, string> | null

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

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


description: string

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

The desired rule(s), in plain language.


optional sessionId?: string | null

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

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