Skip to content

Interface: FuzzyProveRequest

@kortexya/reasoninglayer


@kortexya/reasoninglayer / FuzzyProveRequest

Defined in: src/types/inference.ts:1048

Request for fuzzy proof search.

Dual input mode: Provide EITHER goal OR goal_id, same as backward chaining.

optional askedSorts?: string[]

Defined in: src/types/inference.ts:1109

Sorts already put to the patient (answered or skipped), excluded from the proposed questions. Witnessed findings are excluded automatically; this is for questions whose answer was no or unknown.


optional goal?: TermInputDto | null

Defined in: src/types/inference.ts:1050

Inline goal. Mutually exclusive with goal_id.


optional goalId?: string | null

Defined in: src/types/inference.ts:1052

Saved goal reference. Mutually exclusive with goal.


optional headMatching?: HeadMatching

Defined in: src/types/inference.ts:1064

How the goal meets rule heads; absent is native resolution.


optional kbDataVersion?: string | null

Defined in: src/types/inference.ts:1096

Caller-attested identity of the ontology data release the rules were counted from (for example "hpo-2026-06-01"), sealed verbatim.

The engine cannot know which upstream release its rules encode, so this half of the knowledge identity is the caller’s attestation; the engine computes the rule-program half from the rules that actually proved. Defaults to "unattested" on the engine.


optional maxSolutions?: number

Defined in: src/types/inference.ts:1056

Maximum number of solutions.


optional minDegree?: number

Defined in: src/types/inference.ts:1054

Minimum degree threshold (0.0 to 1.0).


optional nextQuestions?: number

Defined in: src/types/inference.ts:1103

Ask the engine what to ask next: how many questions to return, ranked by expected information gain over the differential this query produced (open-world log-odds only; 0 or absent ⇒ none). See FuzzyProveResponse.nextQuestions.


optional openWorld?: boolean

Defined in: src/types/inference.ts:1058

Whether to use open-world semantics.


optional requireScopeFeatures?: boolean

Defined in: src/types/inference.ts:1115

Restrict the witness universe to observations explicitly carrying every scoped feature, so global KB metadata is neither evidence nor part of the observation count. Missing observations still residuate. Default false.


optional saveGoal?: boolean

Defined in: src/types/inference.ts:1060

Whether to persist the goal for later reuse.


optional scope?: Record<string, string>

Defined in: src/types/inference.ts:1076

Open-world reasoning scope: ground feature constraints every witnessing fact must satisfy, as feature → value (string values).

Safety-relevant. For patient-scoped clinical reasoning send { patient_id: '<id>' } so only that patient’s observations witness a diagnosis — another patient’s fact of the same sort never does. A fact lacking the feature is unconstrained (open world). Empty or absent ⇒ tenant-wide (legacy) behavior, where any tenant fact may witness the goal.


optional seal?: boolean

Defined in: src/types/inference.ts:1085

Seal the returned open-world differential into a deterministic, re-verifiable diagnosis certificate (see FuzzyProveResponse.certificate).

Opt-in. Only meaningful with openWorld: true; the engine ignores it otherwise. Default false.


optional tnorm?: string

Defined in: src/types/inference.ts:1062

T-norm strategy: “min”, “product”, or “lukasiewicz”.