reason
Draw inferences from an observation, with both the supporting and the contradicting evidence.
reason(observation: dict, depth=None, confidence_threshold=None, max_inferences=None, budget_wall_time_ms=None) -> ReasonResultreason(request: ReasonRequest) -> list[InferenceStep]
reason_frames(request: ReasonRequest) -> list[ReasonResponseFrame]Parameters
observationEndpointrequiredWhat was observed, as { text } or { memoryId }. An ObservationInput on the wire.
depthintegeroptionalHow many inference hops.
confidence_thresholdfloatoptionalDrop inferences below this confidence.
max_inferencesintegeroptionalCap on returned inferences.
budget_wall_time_msintegeroptionalWall-clock budget.
Returns
inferencesInferenceStep[]alwaysWhat Brain concluded.
inferences[].claimstringalwaysThe inferred claim, in words.
inferences[].supporting_memoriesstring[]alwaysMemories backing it.
inferences[].contradicting_memoriesstring[]alwaysMemories arguing against it.
inferences[].confidencefloatalwaysConfidence in the inference.
inferences[].inference_kindstringalwaysWhat sort of inference produced it.
inferences[].step_indexintegeralwaysPosition 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?