Answer with brain conditioning
Generate a written answer from retrieved content, optionally conditioned by ExoBrain signals.
arm set to baseline the answer comes from cosine retrieval and the persona prompt alone. With arm set to brain the forward pass runs first: omit tercile_boundaries and the call returns the raw signals and skips generation (answer is an empty string), so a caller can collect signals across a batch of questions before computing boundaries; supply tercile_boundaries and those signals are rendered into the prompt before the answer is generated.
Reads the API key owner’s own content, so the X-Exo-Subject selector is not accepted here.
Authorization
This route requires theread scope.
A missing or invalid credential returns 401 authentication_error. A valid credential without the scope returns 403 permission_denied, and the problem body names the exact scope required.
Headers
These are request conventions the contract does not declare as parameters, so they do not appear in the schema tables below.Success responses
Errors
application/problem+json body carrying a stable code, a requestId, and a suggestedAction where Exo has one. See Errors.Authorizations
An Exo API key (exo_...) sent as the X-Exo-API-Key header.
Body
Request for /v1/brain/answer.
baseline, brain 31 <= x <= 50Corpus-relative cut points that turn raw ExoBrain signals into prose.
Confidence and drift saturate in absolute terms, so /v1/brain/answer bands
them against the caller's own corpus instead of fixed thresholds. Collect
the raw signals first (call /v1/brain/answer with arm set to brain and
no boundaries), compute the terciles across that batch, then send them back
on the generating call.
Doc-only note: each field is a fixed-length pair, which Pydantic renders as
JSON Schema 2020-12 prefixItems. The json_schema_extra sibling items
is a documentation aid for OpenAPI tooling that predates prefixItems
(Spectral's array-items rule); it is accurate (every element is a number)
and has no effect on validation.
Response
The generated answer, the prompt that produced it, and the brain signals when the brain arm ran.