Skip to main content

Interface: MemoryRecallReranker

Defined in: packages/agentos/src/cognition/memory/retrieval/recall/capture.ts:90

The reranker that scored a turn's candidates, or why none did.

provider is 'local' for the in-process cross-encoder (recall.rerank { kind: 'local' }), 'llm' for the LLM judge over the host's own model call ({ kind: 'llm' }), and 'none' when no rerank scores were applied: reason then says why (none_configured with no recall.rerank; loading until the local model has loaded; unavailable after its load failed, with Transformers.js missing, or for a rerank whose reranker was stopped while it ran; timeout, error, or backoff after three failures in a row). A manager's memory recall records no other provider. 'other' is what rerankerRecordOf names a provider id that is neither, for a host that records a rerank of its own.

Properties​

candidates?​

optional candidates: number

Defined in: packages/agentos/src/cognition/memory/retrieval/recall/capture.ts:99

How many candidates the reranker was sent: the recall's best, at most recall.rerank.maxCandidates (20).


model?​

optional model: string

Defined in: packages/agentos/src/cognition/memory/retrieval/recall/capture.ts:93

The model recall.rerank names.


ms?​

optional ms: number

Defined in: packages/agentos/src/cognition/memory/retrieval/recall/capture.ts:101

How long the rerank took, in milliseconds.


provider​

provider: "llm" | "none" | "local" | "other"

Defined in: packages/agentos/src/cognition/memory/retrieval/recall/capture.ts:91


reason?​

optional reason: RerankSkipReason

Defined in: packages/agentos/src/cognition/memory/retrieval/recall/capture.ts:97

With provider: 'none': why no rerank scores were applied.


revision?​

optional revision: string

Defined in: packages/agentos/src/cognition/memory/retrieval/recall/capture.ts:95

The local model's pinned revision.