MCPcopy Create free account
hub / github.com/diillson/chatcli / GetMemoryContext

Method GetMemoryContext

cli/workspace/memory.go:105–107  ·  view source on GitHub ↗

GetMemoryContext builds the memory section for the system prompt. Uses smart retrieval when no hints are provided.

()

Source from the content-addressed store, hash-verified

103// GetMemoryContext builds the memory section for the system prompt.
104// Uses smart retrieval when no hints are provided.
105func (ms *MemoryStore) GetMemoryContext() string {
106 return ms.sanitizeForPrompt(ms.manager.GetMemoryContext())
107}
108
109// GetRelevantContext returns memory tailored to conversation hints.
110func (ms *MemoryStore) GetRelevantContext(hints []string) string {

Callers 4

TestGetMemoryContextFunction · 0.95
RecallMethod · 0.45

Calls 1

sanitizeForPromptMethod · 0.95

Tested by 2

TestGetMemoryContextFunction · 0.76