epistemic_recall

Query the memory store using natural language. Returns ranked results with confidence scores.

QUERY
epistemic_recall

Description

Performs hybrid search combining vector similarity (cosine) and keyword matching. Results are ranked by relevance and filtered by tier visibility rules. Access timestamps are refreshed on recall (decay reset).

Parameters

NameTypeRequiredDescription
querystringYesNatural language query (e.g., "What food does the user like?").
limitnumberNoMaximum results to return. Default: 10.
minConfidencenumberNoMinimum confidence threshold. Default: 0.0.
tierstringNoFilter by tier: FACT, WORKING, CANDIDATE, QUARANTINE, CHALLENGED.
kindstringNoFilter by claim kind: identity, preference, behavioral, etc.
subjectstringNoFilter by subject (e.g., "user", "Lan").

Example

Request
{
  "tool": "epistemic_recall",
  "input": {
    "query": "user food preferences",
    "limit": 5
  }
}
Response
{
  "results": [
    {
      "id": "mem_f8a2b1c3",
      "claim": "Tôi thích ăn phở bò Hà Nội",
      "subject": "user",
      "confidence": 0.741,
      "tier": "WORKING",
      "kind": "preference",
      "relevance": 0.923,
      "storedAt": "2026-01-15T10:30:00Z"
    }
  ],
  "total": 1,
  "searchType": "hybrid"
}

Notes

  • Each recall refreshes lastAccessed, resetting the decay timer
  • Channel isolation rules apply — non-owner users only see memories from their channel
  • QUARANTINE tier memories are excluded by default unless explicitly filtered