Skip to content

Interface: StreamConceptsRequest

@kortexya/reasoninglayer


@kortexya/reasoninglayer / StreamConceptsRequest

Defined in: src/types/analysis.ts:679

Request to stream the formal concepts of a visible scope.

optional continuation?: Readonly<Record<string, unknown>> | null

Defined in: src/types/analysis.ts:705

The continuation an earlier response of the same request ended with. It is verified against the freshly read population and filters before anything is delivered; a mismatch is a 422 (fca_stream_continuation_refused).


optional guidance?: FcaBranchGuidance

Defined in: src/types/analysis.ts:723

Reorder-only guidance (K4): the engine’s native UCB1 bandit over the top-level branches decides which branch is walked next. Every branch is still walked to its end, so the delivered concepts, the counters and the completeness are those of the unguided stream; only the delivery order differs. The end event then carries FcaConceptStreamEnd.guidance. A fresh stream only: sent with a continuation it is a 400 (a resumed stream continues in native order).


optional minExtentSize?: number

Defined in: src/types/analysis.ts:690

Smallest admitted extent. It prunes the traversal (an iceberg lattice; the top concept is visited regardless). Absent ⇒ 0.


optional minIntentSize?: number

Defined in: src/types/analysis.ts:692

Smallest admitted intent; it filters the output only. Absent ⇒ 0.


optional pageSize?: number | null

Defined in: src/types/analysis.ts:698

Concepts after which this response ends with a continuation (a few more may arrive from workers already running). Absent or null ⇒ the whole stream in one response. 0 is a 400.


optional semantics?: DiscoverySemantics

Defined in: src/types/analysis.ts:713

How records become attributes. Absent ⇒ schema_presence (a feature being present). scaled applies the engine’s conceptual scaling to the named features’ values (odor=foul), as in sort discovery; the scaled context must be complete and unambiguous, else 400. native_predicates is refused (400).


optional sortNames?: string[]

Defined in: src/types/analysis.ts:685

Sorts whose visible records (including records of their subsorts) form the population. Absent or empty ⇒ every visible record of the tenant. An unknown name is a 400. There is no population cap.