Interface: BackwardChainRequest
@kortexya/reasoninglayer / Inference / BackwardChainRequest
Interface: BackwardChainRequest
Defined in: src/types/inference.ts:160
Request for backward chaining inference.
Remarks
Dual input mode: Provide EITHER goal (inline goal) OR goal_id (reference to a saved goal),
but not both.
Serialization format: Request uses untagged TermInputDto / FeatureInputValueDto. Response uses PsiTermDto / SolutionDto.
Properties
constraints?
optionalconstraints:ConstraintInputDto[]
Defined in: src/types/inference.ts:178
Additional constraints (deprecated — prefer ConstrainedVariable in goal).
goal?
optionalgoal:TermInputDto|null
Defined in: src/types/inference.ts:162
Inline goal as a TermInputDto. Mutually exclusive with goal_id.
goalId?
optionalgoalId:string|null
Defined in: src/types/inference.ts:164
Reference to a saved goal by UUID. Mutually exclusive with goal.
maxDepth?
optionalmaxDepth:number
Defined in: src/types/inference.ts:170
Maximum proof depth to prevent infinite recursion. Default: 100.
maxSolutions?
optionalmaxSolutions:number
Defined in: src/types/inference.ts:172
Maximum number of solutions.
minCertainty?
optionalminCertainty:number
Defined in: src/types/inference.ts:174
Minimum certainty threshold.
openWorld?
optionalopenWorld:boolean
Defined in: src/types/inference.ts:168
Whether to use open-world reasoning (evidence-based instead of closed-world).
saveGoal?
optionalsaveGoal:boolean
Defined in: src/types/inference.ts:166
Whether to persist the goal for later reuse.
timeoutMs?
optionaltimeoutMs:number|null
Defined in: src/types/inference.ts:176
Wall-clock timeout in milliseconds (default: 30000). Returns partial results on timeout.