2 writes to _currentAssistantResponse
Aspire.Dashboard (2)
Model\Assistant\AssistantChatViewModel.cs (2)
510_currentAssistantResponse = callAssistantResponse = new ChatViewModel(isUserMessage: false); 692_currentAssistantResponse = null;
24 references to _currentAssistantResponse
Aspire.Dashboard (24)
Model\Assistant\AssistantChatViewModel.cs (24)
238if (_currentAssistantResponse is not null) 511_currentAssistantResponse.AppendMarkdown(_loc[nameof(AIAssistant.ChatThinkingText)], _markdownProcessor); 513_chatState.VisibleChatMessages.Add(_currentAssistantResponse); 519await InvokeConversationChangedCallbackAsync(_currentAssistantResponse, _responseState, cancellationToken).ConfigureAwait(false); 530_currentAssistantResponse.PromptText = responseText.ToString(); 537await InvokeConversationChangedCallbackAsync(_currentAssistantResponse, _responseState, cancellationToken).ConfigureAwait(false); 554if (_currentAssistantResponse != null) 556_currentAssistantResponse.IsComplete = true; 582Debug.Assert(_currentAssistantResponse != null); 596_currentAssistantResponse.ErrorMessage = _loc[nameof(AIAssistant.ChatRequestErrorCanceled)]; 623DateTime.TryParse(_currentAssistantResponse.PromptText, CultureInfo.InvariantCulture, out var dateTime)) 625_currentAssistantResponse.Html = string.Empty; 626_currentAssistantResponse.ErrorMessage = _loc[nameof(AIAssistant.ChatRequestErrorReachedLimit)]; 627_currentAssistantResponse.LimitResetDate = dateTime; 671_currentAssistantResponse.ErrorMessage = errorMessage; 672_currentAssistantResponse.IsForbidden = isForbidden; 676_currentAssistantResponse.ErrorMessage = _loc[nameof(AIAssistant.ChatRequestErrorUnknown)]; 683Debug.Assert(_currentAssistantResponse != null); 689_currentAssistantResponse.IsComplete = true; 713_currentAssistantResponse.AddChatMessage(message); 800Debug.Assert(_currentAssistantResponse != null); 806_currentAssistantResponse.ClearMarkdown(); 812Debug.Assert(_currentAssistantResponse != null); 817_currentAssistantResponse.AppendMarkdown(responseTextChunk, _markdownProcessor, inCompleteDocument: inCompleteDocument);