91 references to AIAssistant
Aspire.Dashboard (86)
Components\Controls\AssistantChat.razor.cs (1)
34public required IStringLocalizer<AIAssistant> Loc { get; init; }
Components\Controls\ExplainErrorsButton.razor.cs (1)
17public required IStringLocalizer<AIAssistant> Loc { get; init; }
Components\Controls\ResourceActions.razor.cs (1)
32public required IStringLocalizer<Resources.AIAssistant> AIAssistantLoc { get; init; }
Components\Controls\SpanActions.razor.cs (2)
31public required IStringLocalizer<Resources.AIAssistant> AIAssistantLoc { get; init; } 75Text = AIAssistantLoc[nameof(AIAssistant.MenuTextAskGitHubCopilot)],
Components\Controls\StructuredLogActions.razor.cs (2)
36public required IStringLocalizer<Resources.AIAssistant> AIAssistantLoc { get; init; } 83Text = AIAssistantLoc[nameof(AIAssistant.MenuTextAskGitHubCopilot)],
Components\Controls\TraceActions.razor.cs (2)
30public required IStringLocalizer<Resources.AIAssistant> AIAssistantLoc { get; init; } 75Text = AIAssistantLoc[nameof(AIAssistant.MenuTextAskGitHubCopilot)],
Components\Layout\MainLayout.razor.cs (1)
54public required IStringLocalizer<Resources.AIAssistant> AIAssistantLoc { get; init; }
Components\Layout\MobileNavMenu.razor.cs (2)
26public required IStringLocalizer<Resources.AIAssistant> AIAssistantLoc { get; init; } 95AIAssistantLoc[nameof(Resources.AIAssistant.AIAssistantLaunchButtonText)],
Components\Pages\ConsoleLogs.razor.cs (1)
96public required IStringLocalizer<Dashboard.Resources.AIAssistant> AIAssistantLoc { get; init; }
Components\Pages\Resources.razor.cs (1)
69public required IStringLocalizer<Dashboard.Resources.AIAssistant> AIAssistantLoc { get; init; }
Components_Controls_AssistantChat_razor.g.cs (23)
386__builder.AddContent(36, Loc[nameof(AIAssistant.ChatMistakesDisclaimerText)] 399__builder.AddContent(41, string.Format(Loc[nameof(AIAssistant.ChatIDEConnectionDisclaimerText)], ChatViewModel.GetLauncherDisplayName()) 530__builder.AddContent(56, (MarkupString)Loc.GetString(nameof(AIAssistant.ChatRequestErrorReachedLimitCopilot), "https://aka.ms/dotnet/aspire/copilot-pro", limitResetDate.ToString("d", CultureInfo.CurrentCulture)).ToString() 598attributes["aria-label"] = Loc[nameof(AIAssistant.CopyMessageButtonText)]; 651Loc[nameof(AIAssistant.CopyMessageButtonText)] 763Loc[nameof(AIAssistant.LikeMessageButtonText)] 772Loc[nameof(AIAssistant.LikeMessageButtonText)] 849Loc[nameof(AIAssistant.DislikeMessageButtonText)] 858Loc[nameof(AIAssistant.DislikeMessageButtonText)] 935Loc[nameof(AIAssistant.RetryMessageButtonText)] 944Loc[nameof(AIAssistant.RetryMessageButtonText)] 1129Loc[nameof(AIAssistant.ChatRefreshFollowUpPrompts)] 1146Loc[nameof(AIAssistant.ChatRefreshFollowUpPrompts)] 1259Loc[nameof(AIAssistant.ChatTextAreaPlaceHolder)] 1341string.Format(Loc[nameof(AIAssistant.ChatModelSelectButtonTitle)], _selectedModelItem.Text) 1515Loc[nameof(AIAssistant.SidebarSendMessage)] 1532Loc[nameof(AIAssistant.SidebarSendMessage)] 1651__builder.AddContent(209, Loc[nameof(AIAssistant.ChatUnavailableText)] 1722__builder.AddContent(226, Loc[nameof(AIAssistant.ChatLoadingText)] 1759__builder2.AddContent(231, (MarkupString)Loc[nameof(AIAssistant.ChatRequestErrorForbiddenDescription)].ToString() 1781? Loc.GetString(nameof(AIAssistant.ChatRequestErrorForbiddenVisualStudio), "https://aka.ms/dotnet/aspire/copilot-vs-login") 1782: Loc.GetString(nameof(AIAssistant.ChatRequestErrorForbiddenVSCode), "https://aka.ms/dotnet/aspire/copilot-vscode-login"); 1803__builder2.AddContent(239, (MarkupString)Loc.GetString(nameof(AIAssistant.ChatRequestErrorForbiddenCopilotSubscription), "https://aka.ms/dotnet/aspire/copilot-free-signup").ToString()
Components_Controls_ExplainErrorsButton_razor.g.cs (3)
195Loc[nameof(AIAssistant.ExplainErrorsButtonText)] 204Loc[nameof(AIAssistant.ExplainErrorsButtonText)] 262__builder2.AddContent(12, Loc[nameof(AIAssistant.ExplainErrorsButtonText)]
Components_Dialogs_AssistantModalDialog_razor.g.cs (6)
302__builder3.AddContent(21, Loc[nameof(AIAssistant.DialogTitle)] 380Loc[nameof(AIAssistant.SidebarNewChat)] 397Loc[nameof(AIAssistant.SidebarNewChat)] 488Loc[nameof(AIAssistant.SidebarExpandDialog)] 505Loc[nameof(AIAssistant.SidebarExpandDialog)] 746IStringLocalizer<AIAssistant>
Components_Dialogs_AssistantSidebarDialog_razor.g.cs (6)
263__builder.AddContent(29, Loc[nameof(AIAssistant.SidebarTitle)] 330Loc[nameof(AIAssistant.SidebarNewChat)] 347Loc[nameof(AIAssistant.SidebarNewChat)] 413Loc[nameof(AIAssistant.SidebarExpandDialog)] 430Loc[nameof(AIAssistant.SidebarExpandDialog)] 627IStringLocalizer<AIAssistant>
Components_Layout_MainLayout_razor.g.cs (2)
721AIAssistantLoc[nameof(AIAssistant.AIAssistantLaunchButtonText)] 730AIAssistantLoc[nameof(AIAssistant.AIAssistantLaunchButtonText)]
Components_Pages_TraceDetail_razor.g.cs (4)
444AIAssistantLoc[nameof(AIAssistant.ExplainTraceButtonText)] 453AIAssistantLoc[nameof(AIAssistant.ExplainTraceButtonText)] 512__builder3.AddContent(48, AIAssistantLoc[nameof(AIAssistant.ExplainTraceButtonText)] 3239IStringLocalizer<AIAssistant>
Model\Assistant\AssistantChatDataContext.cs (14)
21private readonly IStringLocalizer<AIAssistant> _loc; 34IStringLocalizer<AIAssistant> loc) 60await InvokeToolCallbackAsync(nameof(GetResourceGraphAsync), _loc[nameof(AIAssistant.ToolNotificationResourceGraph)], cancellationToken).ConfigureAwait(false); 87await InvokeToolCallbackAsync(nameof(GetTraceAsync), _loc.GetString(nameof(AIAssistant.ToolNotificationTraceFailure), OtlpHelpers.ToShortenedId(traceId)), cancellationToken).ConfigureAwait(false); 91await InvokeToolCallbackAsync(nameof(GetTraceAsync), _loc.GetString(nameof(AIAssistant.ToolNotificationTrace), OtlpHelpers.ToShortenedId(traceId)), cancellationToken).ConfigureAwait(false); 108await InvokeToolCallbackAsync(nameof(GetStructuredLogsAsync), _loc.GetString(nameof(AIAssistant.ToolNotificationStructuredLogsResourceFailure), resourceName), cancellationToken).ConfigureAwait(false); 113? _loc.GetString(nameof(AIAssistant.ToolNotificationStructuredLogsResource), key.GetCompositeName()) 114: _loc[nameof(AIAssistant.ToolNotificationStructuredLogsAll)]; 151await InvokeToolCallbackAsync(nameof(GetTracesAsync), _loc.GetString(nameof(AIAssistant.ToolNotificationTracesResourceFailure), resourceName), cancellationToken).ConfigureAwait(false); 156? _loc.GetString(nameof(AIAssistant.ToolNotificationTracesResource), key.GetCompositeName()) 157: _loc[nameof(AIAssistant.ToolNotificationTracesAll)]; 204await InvokeToolCallbackAsync(nameof(GetTraceStructuredLogsAsync), _loc.GetString(nameof(AIAssistant.ToolNotificationTraceStructuredLogs), OtlpHelpers.ToShortenedId(traceId)), cancellationToken).ConfigureAwait(false); 233await InvokeToolCallbackAsync(nameof(GetConsoleLogsAsync), _loc.GetString(nameof(AIAssistant.ToolNotificationConsoleLogsFailure), resourceName), cancellationToken).ConfigureAwait(false); 237await InvokeToolCallbackAsync(nameof(GetConsoleLogsAsync), _loc.GetString(nameof(AIAssistant.ToolNotificationConsoleLogs), resourceName), cancellationToken).ConfigureAwait(false);
Model\Assistant\AssistantChatViewModel.cs (11)
107private readonly IStringLocalizer<AIAssistant> _loc; 127IStringLocalizer<AIAssistant> loc, 511_currentAssistantResponse.AppendMarkdown(_loc[nameof(AIAssistant.ChatThinkingText)], _markdownProcessor); 596_currentAssistantResponse.ErrorMessage = _loc[nameof(AIAssistant.ChatRequestErrorCanceled)]; 600responseText.Append(_loc[nameof(AIAssistant.ChatRequestErrorCanceled)]); 626_currentAssistantResponse.ErrorMessage = _loc[nameof(AIAssistant.ChatRequestErrorReachedLimit)]; 637errorMessage = _loc[nameof(AIAssistant.ChatRequestErrorUnknown)]; 660errorMessage = _loc[nameof(AIAssistant.ChatRequestErrorUnknown)]; 663errorMessage = _loc[nameof(AIAssistant.ChatRequestErrorForbidden)]; 667errorMessage = _loc.GetString(nameof(AIAssistant.ChatRequestErrorStatusCode), clientResultEx.Status); 676_currentAssistantResponse.ErrorMessage = _loc[nameof(AIAssistant.ChatRequestErrorUnknown)];
Model\ResourceMenuItems.cs (2)
38IStringLocalizer<Resources.AIAssistant> aiAssistantLoc, 73Text = aiAssistantLoc[nameof(AIAssistant.MenuTextAskGitHubCopilot)],
Resources\AIAssistant.Designer.cs (1)
42global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Aspire.Dashboard.Resources.AIAssistant", typeof(AIAssistant).Assembly);
Aspire.Dashboard.Tests (5)
Markdown\MarkdownProcessorTests.cs (1)
372new TestStringLocalizer<Dashboard.Resources.AIAssistant>());
Model\AIAssistant\AssistantChatDataContextTests.cs (1)
133new TestStringLocalizer<Dashboard.Resources.AIAssistant>());
Model\ResourceMenuItemsTests.cs (3)
42new TestStringLocalizer<Resources.AIAssistant>(), 98new TestStringLocalizer<Resources.AIAssistant>(), 154new TestStringLocalizer<Resources.AIAssistant>(),