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

Function stateHasConsecutiveUserPrompt

agent/query_engine.go:390–399  ·  view source on GitHub ↗
(state *AgentState, normalizedPrompt string)

Source from the content-addressed store, hash-verified

388 if q.CoreEngine != nil {
389 q.CoreEngine.LastState = state
390 }
391 return
392 }
393 state.LastQuery = normalizedPrompt
394 state.UserTurnCount++
395 state.MemoryWritesSinceExtraction = false
396 msg := map[string]any{
397 "role": "user",
398 "content": []map[string]any{{"type": "text", "text": normalizedPrompt}},
399 "metadata": map[string]any{
400 "session_user_turn": state.UserTurnCount,
401 "timestamp": state.MemoryQueryTime.Format(time.RFC3339Nano),
402 },

Callers 1

commitUserTurnMethod · 0.85

Calls 2

userMessagePlainTextFunction · 0.85
stringFromAnyFunction · 0.70

Tested by

no test coverage detected