1 write to _chatState
Aspire.Dashboard (1)
Model\Assistant\AssistantChatViewModel.cs (1)
297_chatState = state;
17 references to _chatState
Aspire.Dashboard (17)
Model\Assistant\AssistantChatViewModel.cs (17)
219var currentFollowUpPrompts = _chatState.FollowUpPrompts 226_chatState.VisibleChatMessages.ToList(), 513_chatState.VisibleChatMessages.Add(_currentAssistantResponse); 514_chatState.FollowUpPrompts.Clear(); 516chatMessages = _chatState.VisibleChatMessages.SelectMany(m => m.GetChatMessages()).ToList(); 568followUpMessages = _chatState.VisibleChatMessages.SelectMany(m => m.GetChatMessages()).ToList(); 740addInitialPrompts = (inProgressFollowUpPrompts.Count >= 2 && _chatState.FollowUpPrompts.Count == 0); 764_chatState.FollowUpPrompts.Clear(); 784_chatState.FollowUpPrompts.Add(promptToDisplay); 845AddUserPrompt(vm, promptText, _chatState.VisibleChatMessages.Count == 0); 846_chatState.VisibleChatMessages.Add(vm); 857AddUserPrompt(chatViewModel, chatViewModel.PromptText, _chatState.VisibleChatMessages.Count == 0); 858_chatState.VisibleChatMessages.Add(chatViewModel); 916_aiContextProvider.ChatState = _chatState; 937currentChatViewModel = _chatState.VisibleChatMessages.LastOrDefault(); 960_chatState.VisibleChatMessages.Remove(chat); 984messageCount = _chatState.VisibleChatMessages.Sum(m => m.ChatMessageCount);