38 references to ChatViewModel
Aspire.Dashboard (38)
Components\Controls\AssistantChat.razor.cs (25)
74ChatViewModel.SetSelectedModel(model); 79await ChatViewModel.UpdateSettingsAsync(); 92if (ChatViewModel != _chatViewModel) 102_chatViewModel = ChatViewModel; 104ChatViewModel.OnToolInvokedCallback = SetStatusAsync; 105ChatViewModel.OnConversationChangedCallback = ConversationChangedAsync; 106ChatViewModel.OnContextChangedCallback = ContextChangedAsync; 107ChatViewModel.OnInitializeCallback = InitializedAsync; 111await ChatViewModel.ComponentInitialize(); 118foreach (var model in ChatViewModel.Models) 122_selectedModelItem = _modelMenuItems.FirstOrDefault(i => i.Text == ChatViewModel.SelectedModel?.DisplayName) ?? _modelMenuItems.LastOrDefault(); 205if (ChatViewModel.ResponseInProgress) 219if (ChatViewModel.ResponseInProgress) 227return !string.IsNullOrEmpty(ChatViewModel.UserMessage); 233if (!ChatViewModel.ResponseInProgress) 235if (!string.IsNullOrWhiteSpace(ChatViewModel.UserMessage)) 237var message = ChatViewModel.UserMessage.Trim(); 243ChatViewModel.CancelResponseInProgress(); 306var task = ChatViewModel.InitialPromptSelectedAsync(item); 336await ChatViewModel.AddFollowUpPromptAsync(displayText, promptText, fromFollowUpPrompt); 338await ChatViewModel.CallServiceAsync(); 343await ChatViewModel.DisconnectAsync(); 357ChatViewModel.PostFeedback(FeedbackType.ThumbsUp); 368ChatViewModel.PostFeedback(FeedbackType.ThumbsDown); 374await ChatViewModel.RetryChatMessageAsync(chat);
Components_Controls_AssistantChat_razor.g.cs (11)
207_renderDisplayState = ChatViewModel.DisplayState; 217var chatMessages = ChatViewModel.GetChatMessages(); 341__builder2.AddContent(27, (MarkupString)ChatViewModel.MarkdownProcessor.ToHtml(initialPrompt.ButtonTitle, suppressSurroundingParagraph: true) 355__builder2.AddContent(32, (MarkupString)ChatViewModel.MarkdownProcessor.ToHtml(initialPrompt.ButtonDescription, suppressSurroundingParagraph: true) 393__builder.AddContent(41, string.Format(Loc[nameof(AIAssistant.ChatIDEConnectionDisclaimerText)], ChatViewModel.GetLauncherDisplayName()) 1092if (ChatViewModel.FollowUpPromptsHasPages) 1244ChatViewModel.ResponseInProgress.ToString().ToLowerInvariant() 1263ChatViewModel.UserMessage 1269__builder2.AddAttribute(159, "onchange", global::Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => ChatViewModel.UserMessage = __value, ChatViewModel.UserMessage)); 1774var helpText = (ChatViewModel.Launcher == KnownLaunchers.VisualStudio)
Components_Dialogs_AssistantModalDialog_razor.g.cs (1)
679ChatViewModel
Components_Dialogs_AssistantSidebarDialog_razor.g.cs (1)
561ChatViewModel