MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / GetString

Function GetString

agentContext/auto.go:47–56  ·  view source on GitHub ↗
(m map[string]any, key string, defaultStr any)

Source from the content-addressed store, hash-verified

45}
46
47func GetString(m map[string]any, key string, defaultStr any) any {
48 if m == nil {
49 return defaultStr
50 }
51 v, ok := m[key].(string)
52 if !ok {
53 return defaultStr
54 }
55 return v
56}
57
58func buildSummaryPrompt(messages []map[string]any) string {
59 parts := []string{"Summarize this coding session:\n\n"}

Callers 6

buildAutoCompactPromptFunction · 0.85
collectRealUserRequestsFunction · 0.85
hasToolResultBlockFunction · 0.85
textFromMessageFunction · 0.85
SnipMessagesFunction · 0.85
buildSummaryPromptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected