(state *AgentState, normalizedPrompt string)
| 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 | }, |
no test coverage detected