Interface: DraftRulesRequest
@kortexya/reasoninglayer / DraftRulesRequest
Interface: DraftRulesRequest
Section titled “Interface: DraftRulesRequest”Defined in: src/types/inference.ts:2003
Request an LLM-assisted draft of one or more inference rules.
Remarks
Section titled “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
Section titled “Properties”answers?
Section titled “answers?”
optionalanswers?:Record<string,string> |null
Defined in: src/types/inference.ts:2007
Answers to clarification questions, keyed by question field (second call).
description
Section titled “description”description:
string
Defined in: src/types/inference.ts:2005
The desired rule(s), in plain language.
sessionId?
Section titled “sessionId?”
optionalsessionId?:string|null
Defined in: src/types/inference.ts:2009
Session ID for multi-turn clarification (echo the value from the previous response).