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