Type Alias: BatchOperationDto
@kortexya/reasoninglayer / BatchOperationDto
Type Alias: BatchOperationDto
Section titled “Type Alias: BatchOperationDto”BatchOperationDto = {
sortName:string;type:"query_by_sort"; } | {maxIterations?:number;type:"forward_chain"; } | {type:"list_sorts"; } | {type:"kb_stats"; }
Defined in: src/types/batch.ts:23
One operation in a batch, discriminated by type.
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ sortName: string; type: "query_by_sort"; }
sortName
Section titled “sortName”sortName:
string
The sort to read.
type:
"query_by_sort"
Read every term of one sort.
Type Literal
Section titled “Type Literal”{ maxIterations?: number; type: "forward_chain"; }
maxIterations?
Section titled “maxIterations?”
optionalmaxIterations?:number
Cap on chaining iterations. Omit for the engine’s own cap.
type:
"forward_chain"
Run forward chaining over the tenant’s rule base.
Type Literal
Section titled “Type Literal”{ type: "list_sorts"; }
type:
"list_sorts"
List the tenant’s sorts.
Type Literal
Section titled “Type Literal”{ type: "kb_stats"; }
type:
"kb_stats"
Read the knowledge-base statistics.
Remarks
Section titled “Remarks”The set is deliberately small and read-only. Anything not listed here has to go through its own route.