Brain

Context recall

GET /v1/brain/context fuses search hits, entity facts, and timeline events into one prompt-ready contextMd block - with mode selection and the weakEvidence abstention flag.

unison-brain

GET /v1/brain/context is the primary read: one call that fuses search hits, entity facts, and timeline events into a single prompt-ready contextMd block. The brain does no answer generation - your model composes the answer from the returned memory.

curl 'https://brain.unisonlabs.ai/v1/brain/context?q=auth%20decisions&mode=auto&k=10' \
  -H "Authorization: Bearer $UNISON_TOKEN"

Parameters

ParamValuesNotes
qstringrequired
modeauto / deep / standarddefault auto
k1-50result count, default 10
maxEntities0-10entities to expand with facts + timeline, default 3
pathPrefixbrain pathscope recall to a subtree, e.g. /workspace/teams/platform/
includeBodiesbooleaninline clipped document bodies - for single-shot readers that won't make follow-up doc calls

Response

{
  "query": "auth decisions",
  "mode": "auto",
  "generatedAt": "2026-06-12T12:00:00Z",
  "topScore": 0.92,
  "weakEvidence": false,
  "hits": [{ "doc": {  }, "score": 0.9, "highlight": "…", "sources": ["bm25", "vector"] }],
  "entities": [{ "entity": { "id", "kind", "slug", "displayName" }, "facts": [  ], "timeline": [  ] }],
  "contextMd": "## Memory\n\n…"
}

weakEvidence - the abstention flag

weakEvidence: true means topScore < 0.5: the brain has little relevant content for this query. Callers should caveat their answer or proceed with less confidence instead of treating thin memory as fact. This is deliberate - a memory layer that never abstains teaches your agents to hallucinate provenance.

From each surface

SurfaceCall
CLIunison context "<q>" [--deep --k --max-entities --path-prefix --include-bodies --json]
TypeScript SDKbrain.context()
MCPbrain_context tool

Time-travel note: search, doc, and factsAbout accept asOf for "what did the brain know as of then"; context recall always answers from current memory.

On this page