Skip to content

Interface: EngineStatsResponse

@kortexya/reasoninglayer


@kortexya/reasoninglayer / EngineStatsResponse

Defined in: src/types/engine.ts:26

The caller’s tenant’s term, rule and sort counts, from one request.

Each count equals the total of the listing it summarises, so a dashboard no longer sums substrate listings itself:

  • termCount — the total of GET /api/v1/terms: asserted terms and the rule conclusions this process has materialised, without rule scaffolding.
  • ruleCount — the count of GET /api/v1/inference/rules/{tenant_id}: the tenant’s own rules and those of system-wide plugins.
  • tenantSortCount + sharedSortCount — the total of GET /api/v1/sorts/tenant/{tenant_id}?include_system=true.
const stats: EngineStatsResponse = await client.engine.getStats();
const sorts = stats.tenantSortCount + stats.sharedSortCount;

ruleCount: number

Defined in: src/types/engine.ts:32

The rules GET /api/v1/inference/rules/{tenant_id} lists.


sharedSortCount: number

Defined in: src/types/engine.ts:39

The shared sorts the tenant can see: the engine’s built-in lattice and system-wide plugin sorts.


tenantId: string

Defined in: src/types/engine.ts:28

The tenant these counts belong to: the authenticated principal (UUID).


tenantSortCount: number

Defined in: src/types/engine.ts:34

The sorts the tenant owns.


termCount: number

Defined in: src/types/engine.ts:30

The terms GET /api/v1/terms lists.