2 writes to _currentAssistantResponse
Aspire.Dashboard (2)
Model\Assistant\AssistantChatViewModel.cs (2)
515_currentAssistantResponse = callAssistantResponse = new ChatViewModel(isUserMessage: false); 697_currentAssistantResponse = null;
24 references to _currentAssistantResponse
Aspire.Dashboard (24)
Model\Assistant\AssistantChatViewModel.cs (24)
243if (_currentAssistantResponse is not null) 516_currentAssistantResponse.AppendMarkdown(_loc[nameof(AIAssistant.ChatThinkingText)], _markdownProcessor); 518_chatState.VisibleChatMessages.Add(_currentAssistantResponse); 524await InvokeConversationChangedCallbackAsync(_currentAssistantResponse, _responseState, cancellationToken).ConfigureAwait(false); 535_currentAssistantResponse.PromptText = responseText.ToString(); 542await InvokeConversationChangedCallbackAsync(_currentAssistantResponse, _responseState, cancellationToken).ConfigureAwait(false); 559if (_currentAssistantResponse != null) 561_currentAssistantResponse.IsComplete = true; 587Debug.Assert(_currentAssistantResponse != null); 601_currentAssistantResponse.ErrorMessage = _loc[nameof(AIAssistant.ChatRequestErrorCanceled)]; 628DateTime.TryParse(_currentAssistantResponse.PromptText, CultureInfo.InvariantCulture, out var dateTime)) 630_currentAssistantResponse.Html = string.Empty; 631_currentAssistantResponse.ErrorMessage = _loc[nameof(AIAssistant.ChatRequestErrorReachedLimit)]; 632_currentAssistantResponse.LimitResetDate = dateTime; 676_currentAssistantResponse.ErrorMessage = errorMessage; 677_currentAssistantResponse.IsForbidden = isForbidden; 681_currentAssistantResponse.ErrorMessage = _loc[nameof(AIAssistant.ChatRequestErrorUnknown)]; 688Debug.Assert(_currentAssistantResponse != null); 694_currentAssistantResponse.IsComplete = true; 718_currentAssistantResponse.AddChatMessage(message); 805Debug.Assert(_currentAssistantResponse != null); 811_currentAssistantResponse.ClearMarkdown(); 817Debug.Assert(_currentAssistantResponse != null); 822_currentAssistantResponse.AppendMarkdown(responseTextChunk, _markdownProcessor, inCompleteDocument: inCompleteDocument);