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)
243
if (
_currentAssistantResponse
is not null)
516
_currentAssistantResponse
.AppendMarkdown(_loc[nameof(AIAssistant.ChatThinkingText)], _markdownProcessor);
518
_chatState.VisibleChatMessages.Add(
_currentAssistantResponse
);
524
await InvokeConversationChangedCallbackAsync(
_currentAssistantResponse
, _responseState, cancellationToken).ConfigureAwait(false);
535
_currentAssistantResponse
.PromptText = responseText.ToString();
542
await InvokeConversationChangedCallbackAsync(
_currentAssistantResponse
, _responseState, cancellationToken).ConfigureAwait(false);
559
if (
_currentAssistantResponse
!= null)
561
_currentAssistantResponse
.IsComplete = true;
587
Debug.Assert(
_currentAssistantResponse
!= null);
601
_currentAssistantResponse
.ErrorMessage = _loc[nameof(AIAssistant.ChatRequestErrorCanceled)];
628
DateTime.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)];
688
Debug.Assert(
_currentAssistantResponse
!= null);
694
_currentAssistantResponse
.IsComplete = true;
718
_currentAssistantResponse
.AddChatMessage(message);
805
Debug.Assert(
_currentAssistantResponse
!= null);
811
_currentAssistantResponse
.ClearMarkdown();
817
Debug.Assert(
_currentAssistantResponse
!= null);
822
_currentAssistantResponse
.AppendMarkdown(responseTextChunk, _markdownProcessor, inCompleteDocument: inCompleteDocument);