48 references to AIAssistant
Aspire.Dashboard (45)
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\Layout\MainLayout.razor.cs (1)
51public 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)
73public required IStringLocalizer<Dashboard.Resources.AIAssistant> AIAssistantLoc { get; init; }
Model\Assistant\AssistantChatDataContext.cs (14)
22private readonly IStringLocalizer<AIAssistant> _loc; 36IStringLocalizer<AIAssistant> loc, 64await InvokeToolCallbackAsync(nameof(GetResourceGraphAsync), _loc[nameof(AIAssistant.ToolNotificationResourceGraph)], cancellationToken).ConfigureAwait(false); 91await InvokeToolCallbackAsync(nameof(GetTraceAsync), _loc.GetString(nameof(AIAssistant.ToolNotificationTraceFailure), OtlpHelpers.ToShortenedId(traceId)), cancellationToken).ConfigureAwait(false); 95await 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)]; 160await InvokeToolCallbackAsync(nameof(GetTracesAsync), _loc.GetString(nameof(AIAssistant.ToolNotificationTracesResourceFailure), resourceName), cancellationToken).ConfigureAwait(false); 165? _loc.GetString(nameof(AIAssistant.ToolNotificationTracesResource), key.GetCompositeName()) 166: _loc[nameof(AIAssistant.ToolNotificationTracesAll)]; 215await InvokeToolCallbackAsync(nameof(GetTraceStructuredLogsAsync), _loc.GetString(nameof(AIAssistant.ToolNotificationTraceStructuredLogs), OtlpHelpers.ToShortenedId(traceId)), cancellationToken).ConfigureAwait(false); 246await InvokeToolCallbackAsync(nameof(GetConsoleLogsAsync), _loc.GetString(nameof(AIAssistant.ToolNotificationConsoleLogsFailure), resourceName), cancellationToken).ConfigureAwait(false); 250await InvokeToolCallbackAsync(nameof(GetConsoleLogsAsync), _loc.GetString(nameof(AIAssistant.ToolNotificationConsoleLogs), resourceName), cancellationToken).ConfigureAwait(false);
Model\Assistant\AssistantChatViewModel.cs (11)
109private readonly IStringLocalizer<AIAssistant> _loc; 130IStringLocalizer<AIAssistant> loc, 516_currentAssistantResponse.AppendMarkdown(_loc[nameof(AIAssistant.ChatThinkingText)], _markdownProcessor); 601_currentAssistantResponse.ErrorMessage = _loc[nameof(AIAssistant.ChatRequestErrorCanceled)]; 605responseText.Append(_loc[nameof(AIAssistant.ChatRequestErrorCanceled)]); 631_currentAssistantResponse.ErrorMessage = _loc[nameof(AIAssistant.ChatRequestErrorReachedLimit)]; 642errorMessage = _loc[nameof(AIAssistant.ChatRequestErrorUnknown)]; 665errorMessage = _loc[nameof(AIAssistant.ChatRequestErrorUnknown)]; 668errorMessage = _loc[nameof(AIAssistant.ChatRequestErrorForbidden)]; 672errorMessage = _loc.GetString(nameof(AIAssistant.ChatRequestErrorStatusCode), clientResultEx.Status); 681_currentAssistantResponse.ErrorMessage = _loc[nameof(AIAssistant.ChatRequestErrorUnknown)];
Model\ResourceMenuBuilder.cs (3)
40private readonly IStringLocalizer<Resources.AIAssistant> _aiAssistantLoc; 54IStringLocalizer<Resources.AIAssistant> aiAssistantLoc, 153Text = _aiAssistantLoc[nameof(AIAssistant.MenuTextAskGitHubCopilot)],
Model\SpanMenuBuilder.cs (3)
32private readonly IStringLocalizer<AIAssistant> _aiAssistantLoc; 45IStringLocalizer<AIAssistant> aiAssistantLoc, 131Text = _aiAssistantLoc[nameof(AIAssistant.MenuTextAskGitHubCopilot)],
Model\StructuredLogMenuBuilder.cs (3)
30private readonly IStringLocalizer<AIAssistant> _aiAssistantLoc; 41IStringLocalizer<AIAssistant> aiAssistantLoc, 115Text = _aiAssistantLoc[nameof(AIAssistant.MenuTextAskGitHubCopilot)],
Model\TraceMenuBuilder.cs (3)
30private readonly IStringLocalizer<AIAssistant> _aiAssistantLoc; 43IStringLocalizer<AIAssistant> aiAssistantLoc, 119Text = _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 (3)
Markdown\MarkdownProcessorTests.cs (1)
374new TestStringLocalizer<Dashboard.Resources.AIAssistant>(),
Model\AIAssistant\AssistantChatDataContextTests.cs (1)
144new TestStringLocalizer<Dashboard.Resources.AIAssistant>(),
Model\ResourceMenuBuilderTests.cs (1)
45new TestStringLocalizer<Resources.AIAssistant>(),