Skip to content

Type Alias: BatchOperationDto

@kortexya/reasoninglayer


@kortexya/reasoninglayer / 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.

{ sortName: string; type: "query_by_sort"; }

sortName: string

The sort to read.

type: "query_by_sort"

Read every term of one sort.


{ maxIterations?: number; type: "forward_chain"; }

optional maxIterations?: 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: "list_sorts"; }

type: "list_sorts"

List the tenant’s sorts.


{ type: "kb_stats"; }

type: "kb_stats"

Read the knowledge-base statistics.

The set is deliberately small and read-only. Anything not listed here has to go through its own route.