Skip to content

Graphorin API reference v0.7.0


Graphorin API reference / @graphorin/memory / / ReanchorRecentResultsOptions

Interface: ReanchorRecentResultsOptions

Defined in: packages/memory/src/context-engine/compaction/hooks/reanchor-recent-results.ts:27

Options for reanchorRecentResults.

Properties

PropertyModifierTypeDescriptionDefined in
maxChars?readonlynumberCharacter budget for the whole injected block. Default 4000.packages/memory/src/context-engine/compaction/hooks/reanchor-recent-results.ts:31
maxResults?readonlynumberMost-recent distinct handles re-anchored. Default 3.packages/memory/src/context-engine/compaction/hooks/reanchor-recent-results.ts:29
readPreview?readonly(uri) => Promise<string | null>Optional preview resolver - wire it to the runtime's result reader (e.g. an adapter over the agent's spill reader). Returns the preview text or null when the handle cannot be read; failures are treated as null. Without it the hook lists the handles alone, which is still enough for the model to read_result them on demand.packages/memory/src/context-engine/compaction/hooks/reanchor-recent-results.ts:39