Function: candidatesFrom()
candidatesFrom(
ranked,lines):MemoryRecallCandidate[]
Defined in: packages/agentos/src/cognition/memory/retrieval/recall/capture.ts:257
The candidates' outcomes from the assembler's line report.
A ranked candidate the dedupe dropped (duplicateOf) is left out for
dedupe, with 0 tokens, unless the block shows it through another line (an
association in Related Context): then it takes that line's outcome, tokens
and section, and keeps its duplicateOf. Each other ranked candidate takes
its line's outcome, reason, tokens and section; one the assembler gave no
line is left out for budget, with 0 tokens. A
line for a memory no leg returned (an association's trace, the involuntary
memory) is added after the ranked candidates, with empty ranks and a
fusedScore of 0, so the included candidates are every memory the block
shows.
Parameters
ranked
readonly RankedRecallCandidate[]
The candidates in the order recall ranked them.
lines
readonly AssembledLineOutcome[]
The assembler's lineOutcomes.