1 write to _chatState
Aspire.Dashboard (1)
Model\Assistant\AssistantChatViewModel.cs (1)
302_chatState = state;
17 references to _chatState
Aspire.Dashboard (17)
Model\Assistant\AssistantChatViewModel.cs (17)
224var currentFollowUpPrompts = _chatState.FollowUpPrompts 231_chatState.VisibleChatMessages.ToList(), 518_chatState.VisibleChatMessages.Add(_currentAssistantResponse); 519_chatState.FollowUpPrompts.Clear(); 521chatMessages = _chatState.VisibleChatMessages.SelectMany(m => m.GetChatMessages()).ToList(); 573followUpMessages = _chatState.VisibleChatMessages.SelectMany(m => m.GetChatMessages()).ToList(); 745addInitialPrompts = (inProgressFollowUpPrompts.Count >= 2 && _chatState.FollowUpPrompts.Count == 0); 769_chatState.FollowUpPrompts.Clear(); 789_chatState.FollowUpPrompts.Add(promptToDisplay); 850AddUserPrompt(vm, promptText, _chatState.VisibleChatMessages.Count == 0); 851_chatState.VisibleChatMessages.Add(vm); 862AddUserPrompt(chatViewModel, chatViewModel.PromptText, _chatState.VisibleChatMessages.Count == 0); 863_chatState.VisibleChatMessages.Add(chatViewModel); 921_aiContextProvider.ChatState = _chatState; 942currentChatViewModel = _chatState.VisibleChatMessages.LastOrDefault(); 965_chatState.VisibleChatMessages.Remove(chat); 989messageCount = _chatState.VisibleChatMessages.Sum(m => m.ChatMessageCount);