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)
52public 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)
380__builder.AddContent(36, Loc[nameof(AIAssistant.ChatMistakesDisclaimerText)] 393__builder.AddContent(41, string.Format(Loc[nameof(AIAssistant.ChatIDEConnectionDisclaimerText)], ChatViewModel.GetLauncherDisplayName()) 524__builder.AddContent(56, (MarkupString)Loc.GetString(nameof(AIAssistant.ChatRequestErrorReachedLimitCopilot), "https://aka.ms/dotnet/aspire/copilot-pro", limitResetDate.ToString("d", CultureInfo.CurrentCulture)).ToString() 592attributes["aria-label"] = Loc[nameof(AIAssistant.CopyMessageButtonText)]; 645Loc[nameof(AIAssistant.CopyMessageButtonText)] 757Loc[nameof(AIAssistant.LikeMessageButtonText)] 766Loc[nameof(AIAssistant.LikeMessageButtonText)] 843Loc[nameof(AIAssistant.DislikeMessageButtonText)] 852Loc[nameof(AIAssistant.DislikeMessageButtonText)] 929Loc[nameof(AIAssistant.RetryMessageButtonText)] 938Loc[nameof(AIAssistant.RetryMessageButtonText)] 1123Loc[nameof(AIAssistant.ChatRefreshFollowUpPrompts)] 1140Loc[nameof(AIAssistant.ChatRefreshFollowUpPrompts)] 1253Loc[nameof(AIAssistant.ChatTextAreaPlaceHolder)] 1335string.Format(Loc[nameof(AIAssistant.ChatModelSelectButtonTitle)], _selectedModelItem.Text) 1509Loc[nameof(AIAssistant.SidebarSendMessage)] 1526Loc[nameof(AIAssistant.SidebarSendMessage)] 1645__builder.AddContent(209, Loc[nameof(AIAssistant.ChatUnavailableText)] 1716__builder.AddContent(226, Loc[nameof(AIAssistant.ChatLoadingText)] 1753__builder2.AddContent(231, (MarkupString)Loc[nameof(AIAssistant.ChatRequestErrorForbiddenDescription)].ToString() 1775? Loc.GetString(nameof(AIAssistant.ChatRequestErrorForbiddenVisualStudio), "https://aka.ms/dotnet/aspire/copilot-vs-login") 1776: Loc.GetString(nameof(AIAssistant.ChatRequestErrorForbiddenVSCode), "https://aka.ms/dotnet/aspire/copilot-vscode-login"); 1797__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)
189Loc[nameof(AIAssistant.ExplainErrorsButtonText)] 198Loc[nameof(AIAssistant.ExplainErrorsButtonText)] 256__builder2.AddContent(12, Loc[nameof(AIAssistant.ExplainErrorsButtonText)]
Components_Dialogs_AssistantModalDialog_razor.g.cs (6)
296__builder3.AddContent(21, Loc[nameof(AIAssistant.DialogTitle)] 374Loc[nameof(AIAssistant.SidebarNewChat)] 391Loc[nameof(AIAssistant.SidebarNewChat)] 482Loc[nameof(AIAssistant.SidebarExpandDialog)] 499Loc[nameof(AIAssistant.SidebarExpandDialog)] 740IStringLocalizer<AIAssistant>
Components_Dialogs_AssistantSidebarDialog_razor.g.cs (6)
257__builder.AddContent(29, Loc[nameof(AIAssistant.SidebarTitle)] 324Loc[nameof(AIAssistant.SidebarNewChat)] 341Loc[nameof(AIAssistant.SidebarNewChat)] 407Loc[nameof(AIAssistant.SidebarExpandDialog)] 424Loc[nameof(AIAssistant.SidebarExpandDialog)] 621IStringLocalizer<AIAssistant>
Components_Layout_MainLayout_razor.g.cs (2)
609AIAssistantLoc[nameof(AIAssistant.AIAssistantLaunchButtonText)] 618AIAssistantLoc[nameof(AIAssistant.AIAssistantLaunchButtonText)]
Components_Pages_TraceDetail_razor.g.cs (4)
438AIAssistantLoc[nameof(AIAssistant.ExplainTraceButtonText)] 447AIAssistantLoc[nameof(AIAssistant.ExplainTraceButtonText)] 506__builder3.AddContent(48, AIAssistantLoc[nameof(AIAssistant.ExplainTraceButtonText)] 3233IStringLocalizer<AIAssistant>
Model\Assistant\AssistantChatDataContext.cs (14)
28private readonly IStringLocalizer<AIAssistant> _loc; 41IStringLocalizer<AIAssistant> loc) 67await InvokeToolCallbackAsync(nameof(GetResourceGraphAsync), _loc[nameof(AIAssistant.ToolNotificationResourceGraph)], cancellationToken).ConfigureAwait(false); 94await InvokeToolCallbackAsync(nameof(GetTraceAsync), _loc.GetString(nameof(AIAssistant.ToolNotificationTraceFailure), OtlpHelpers.ToShortenedId(traceId)), cancellationToken).ConfigureAwait(false); 98await InvokeToolCallbackAsync(nameof(GetTraceAsync), _loc.GetString(nameof(AIAssistant.ToolNotificationTrace), OtlpHelpers.ToShortenedId(traceId)), cancellationToken).ConfigureAwait(false); 115await InvokeToolCallbackAsync(nameof(GetStructuredLogsAsync), _loc.GetString(nameof(AIAssistant.ToolNotificationStructuredLogsResourceFailure), resourceName), cancellationToken).ConfigureAwait(false); 120? _loc.GetString(nameof(AIAssistant.ToolNotificationStructuredLogsResource), key.GetCompositeName()) 121: _loc[nameof(AIAssistant.ToolNotificationStructuredLogsAll)]; 158await InvokeToolCallbackAsync(nameof(GetTracesAsync), _loc.GetString(nameof(AIAssistant.ToolNotificationTracesResourceFailure), resourceName), cancellationToken).ConfigureAwait(false); 163? _loc.GetString(nameof(AIAssistant.ToolNotificationTracesResource), key.GetCompositeName()) 164: _loc[nameof(AIAssistant.ToolNotificationTracesAll)]; 211await InvokeToolCallbackAsync(nameof(GetTraceStructuredLogsAsync), _loc.GetString(nameof(AIAssistant.ToolNotificationTraceStructuredLogs), OtlpHelpers.ToShortenedId(traceId)), cancellationToken).ConfigureAwait(false); 240await InvokeToolCallbackAsync(nameof(GetConsoleLogsAsync), _loc.GetString(nameof(AIAssistant.ToolNotificationConsoleLogsFailure), resourceName), cancellationToken).ConfigureAwait(false); 244await 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)
216new TestStringLocalizer<Dashboard.Resources.AIAssistant>());
Model\ResourceMenuItemsTests.cs (3)
42new TestStringLocalizer<Resources.AIAssistant>(), 98new TestStringLocalizer<Resources.AIAssistant>(), 154new TestStringLocalizer<Resources.AIAssistant>(),