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)
224
var currentFollowUpPrompts =
_chatState
.FollowUpPrompts
231
_chatState
.VisibleChatMessages.ToList(),
518
_chatState
.VisibleChatMessages.Add(_currentAssistantResponse);
519
_chatState
.FollowUpPrompts.Clear();
521
chatMessages =
_chatState
.VisibleChatMessages.SelectMany(m => m.GetChatMessages()).ToList();
573
followUpMessages =
_chatState
.VisibleChatMessages.SelectMany(m => m.GetChatMessages()).ToList();
745
addInitialPrompts = (inProgressFollowUpPrompts.Count >= 2 &&
_chatState
.FollowUpPrompts.Count == 0);
769
_chatState
.FollowUpPrompts.Clear();
789
_chatState
.FollowUpPrompts.Add(promptToDisplay);
850
AddUserPrompt(vm, promptText,
_chatState
.VisibleChatMessages.Count == 0);
851
_chatState
.VisibleChatMessages.Add(vm);
862
AddUserPrompt(chatViewModel, chatViewModel.PromptText,
_chatState
.VisibleChatMessages.Count == 0);
863
_chatState
.VisibleChatMessages.Add(chatViewModel);
921
_aiContextProvider.ChatState =
_chatState
;
942
currentChatViewModel =
_chatState
.VisibleChatMessages.LastOrDefault();
965
_chatState
.VisibleChatMessages.Remove(chat);
989
messageCount =
_chatState
.VisibleChatMessages.Sum(m => m.ChatMessageCount);