reason
Draw inferences from an observation, with both the supporting and the contradicting evidence.
reason(input: ReasonInput): Promise<ReasonResult>reason(request: ReasonRequest): Promise<InferenceStep[]>
reasonFrames(request: ReasonRequest): Promise<ReasonResponseFrame[]>Parameters
observationEndpointrequiredWhat was observed, as { text } or { memoryId }. An ObservationInput on the wire.
depthintegeroptionalHow many inference hops.
confidenceThresholdfloatoptionalDrop inferences below this confidence.
maxInferencesintegeroptionalCap on returned inferences.
budgetWallTimeMsintegeroptionalWall-clock budget.
Returns
inferencesInferenceStep[]alwaysWhat Brain concluded.
inferences[].claimstringalwaysThe inferred claim, in words.
inferences[].supportingMemoriesstring[]alwaysMemories backing it.
inferences[].contradictingMemoriesstring[]alwaysMemories arguing against it.
inferences[].confidencefloatalwaysConfidence in the inference.
inferences[].inferenceKindstringalwaysWhat sort of inference produced it.
inferences[].stepIndexintegeralwaysPosition in the chain.
Read contradictingMemories
An inference can arrive with both supporting and contradicting evidence.
Brain reports both rather than resolving the conflict — a high-confidence
claim with a non-empty contradictingMemories is exactly the case worth
surfacing to a human rather than acting on.
The wire request adds a sessionFilter and a trace flag, and has a
frame-level form.
Was this page helpful?