MCPcopy Create free account
hub / github.com/Noumena-Network/code / withMemoryCorrectionHint

Function withMemoryCorrectionHint

src/utils/messages.ts:186–194  ·  view source on GitHub ↗
(message: string)

Source from the content-addressed store, hash-verified

184 * when auto-memory is enabled and the GrowthBook flag is on.
185 */
186export function withMemoryCorrectionHint(message: string): string {
187 if (
188 isAutoMemoryEnabled() &&
189 getFeatureValue_CACHED_MAY_BE_STALE('ncode_amber_prism', false)
190 ) {
191 return message + MEMORY_CORRECTION_HINT
192 }
193 return message
194}
195
196/**
197 * Derive a short stable message ID (6-char base36 string) from a UUID.

Callers 3

runToolUseFunction · 0.85
cancelAndAbortFunction · 0.85

Calls 2

isAutoMemoryEnabledFunction · 0.85

Tested by

no test coverage detected