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)
219
var currentFollowUpPrompts =
_chatState
.FollowUpPrompts
226
_chatState
.VisibleChatMessages.ToList(),
513
_chatState
.VisibleChatMessages.Add(_currentAssistantResponse);
514
_chatState
.FollowUpPrompts.Clear();
516
chatMessages =
_chatState
.VisibleChatMessages.SelectMany(m => m.GetChatMessages()).ToList();
568
followUpMessages =
_chatState
.VisibleChatMessages.SelectMany(m => m.GetChatMessages()).ToList();
740
addInitialPrompts = (inProgressFollowUpPrompts.Count >= 2 &&
_chatState
.FollowUpPrompts.Count == 0);
764
_chatState
.FollowUpPrompts.Clear();
784
_chatState
.FollowUpPrompts.Add(promptToDisplay);
845
AddUserPrompt(vm, promptText,
_chatState
.VisibleChatMessages.Count == 0);
846
_chatState
.VisibleChatMessages.Add(vm);
857
AddUserPrompt(chatViewModel, chatViewModel.PromptText,
_chatState
.VisibleChatMessages.Count == 0);
858
_chatState
.VisibleChatMessages.Add(chatViewModel);
916
_aiContextProvider.ChatState =
_chatState
;
937
currentChatViewModel =
_chatState
.VisibleChatMessages.LastOrDefault();
960
_chatState
.VisibleChatMessages.Remove(chat);
984
messageCount =
_chatState
.VisibleChatMessages.Sum(m => m.ChatMessageCount);