Skip to content

Reflect

Generate a synthesized, disposition-aware answer from a bank's memories and consolidated observations. Unlike recall (which returns raw memories), reflect returns a written answer.

POST /v1/me/banks/{bank}/reflect
bash
curl https://api.cognimemo.com/v1/me/banks/jane%40acme.com/reflect \
  -H "Authorization: Bearer cmk_live_…" -H "Content-Type: application/json" \
  -d '{ "query": "What is Jane'\''s release cadence?" }'

Body

FieldTypeDescription
querystringRequired. The question to answer.
contextstringExtra context to steer the answer.
budgetstringRetrieval thoroughness: low · mid · high.
tags / tags_matchRestrict which memories are considered.
fact_typesstring[]Restrict which fact types feed the answer.
response_schemaobjectOptional JSON schema for structured output.

Response

json
{ "response": "Jane ships releases on Fridays…", "usage": { "tokens_used": 640 } }

Reflect is shaped by the bank's disposition (skepticism / literalism / empathy, 1–5) and any directives (hard rules) configured on the bank.

SDK

python
answer = cm.reflect(bank_id="jane@acme.com", query="What is Jane's release cadence?")
typescript
const answer = await cm.reflect("jane@acme.com", "What is Jane's release cadence?");